Mingw-packages: GCC v7.1

Created on 9 May 2017  路  11Comments  路  Source: msys2/MINGW-packages

GCC v7.1 have been released now and im wondering if it's being looked into and will be added.

https://gcc.gnu.org/ml/gcc/2017-05/msg00017.html

Most helpful comment

I don't want to build GCC 7 soon as need first to see if we have ABI compatibility issues. If issues present then we need rebuild nearly all C++ package with GCC7. I don't have time to do it now

All 11 comments

I successfully built it using the PKGBUILD script here in this repository: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-gcc-git

Im assuming this means we'll see a binary package being made available shortly.

I don't want to build GCC 7 soon as need first to see if we have ABI compatibility issues. If issues present then we need rebuild nearly all C++ package with GCC7. I don't have time to do it now

It's not building for me because of #2463. And I really need to build it, because C++17.
Any tips?

/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/./prev-gcc/xg++ -B/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/./prev-gcc/ -B/mingw64/x86_64-w64-mingw32/bin/ -nostdinc++ -B/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs -B/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -I/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include -I/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/gcc/libstdc++-v3/libsupc++ -L/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -fno-PIE -c -DIN_GCC_FRONTEND -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc/gcc -I../../gcc/gcc/ada -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/mingw64/include -I/mingw64/include -I/mingw64/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace -I/mingw64/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -I/mingw64/include -o ada/decl.o -MT ada/decl.o -MMD -MP -MF ada/.deps/decl.TPo ../../gcc/gcc/ada/gcc-interface/decl.c
In file included from ../../gcc/gcc/system.h:237:0,
from ../../gcc/gcc/ada/seh_init.c:50:
C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/utility: In function 'constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)':
C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/utility:235:57: error: no matching function for call to 'move()'
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^
In file included from C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/bits/nested_exception.h:40:0,
from C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/gcc/libstdc++-v3/libsupc++/exception:143,
from C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/gcc/libstdc++-v3/libsupc++/new:40,
from ../../gcc/gcc/system.h:236,
from ../../gcc/gcc/ada/seh_init.c:50:
C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/bits/move.h:98:5: note: candidate: template constexpr typename std::remove_reference< >::type&& std::move(_Tp&&)
move(_Tp&& __t) noexcept
^~~~
C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/bits/move.h:98:5: note: template argument deduction/substitution failed:
In file included from ../../gcc/gcc/system.h:237:0,
from ../../gcc/gcc/ada/seh_init.c:50:
C:/msys2/home/Danilo/MINGW-packages/mingw-w64-gcc-git/src/build-x86_64-w64-mingw32/prev-x86_64-w64-mingw32/libstdc++-v3/include/utility:235:57: note: candidate expects 1 argument, 0 provided
{ return __pair_get<_Int>::__move_get(std::move(__in)); }
^

It really doesnt work using the PKGBUILD script? As mentioned earlier in the thread, about 10 days ago I got it to build using that script and makepkg-mingw.

Patches for the __in and __out issue:

  1. This for gcc-5-branch.
  2. This for gcc-6-branch.
  3. And this for gcc-7-branch.

I applied the patch from #2464 and it seems to be working now.
Via sed in PKGBUILD.

2139 also applies to mingw-w64-gcc-git

Any news/info regarding the new GCC 7.x

@ArekPiekarz Thnx for the info. Seems like it's getting closer :)

This issue can be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WilliamKappler picture WilliamKappler  路  4Comments

dimztimz picture dimztimz  路  9Comments

gbschenkel picture gbschenkel  路  5Comments

HolyBlackCat picture HolyBlackCat  路  4Comments

jagannatharjun picture jagannatharjun  路  3Comments