https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69506
Bug ID: 69506 Summary: check-in 232454 seems to cause problems with cygwin builds Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: rogero at howzatt dot demon.co.uk Target Milestone: --- A complete build of gcc on cygwin, with change 232071 backed out (see pr66655), works with revision 232453 but fails with revision 232454. The stage-1 build of libstdc++-v3 fails with undefined symbols: '_ITM_RU1' 'transaction clone for operator new[](unsigned long)' '_ITM_memcpyRnWt' '_ITM_RU8' -- Using cygwin, with bison 2.7 installed: This completes stage1, stage2 and stage3 of the build: svn co -r 232453 svn://gcc.gnu.org/svn/gcc/trunk gcc-trunk-232453 cd gcc-trunk-232453 # see pr66655 svn up -r 232070 gcc/config/i386/cygming.h ./contrib/download_prerequisites mkdir ../build-232453 cd ../build-232453 ../gcc-trunk-232453/configure --enable-languages=c,c++ --prefix=/usr/share/gcc-trunk make -j4 Changing the revision from 232453 to 232454 the make command fails. Failing command: libtool: link: /cygdrive/c/projects/gcc/build-232454/./gcc/xgcc -shared-libgcc -B/cygdrive/c/projects/gcc/build-232454/./gcc -nostdinc++ -L/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src -L/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/.libs -L/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/libsupc++/.libs -B/usr/share/gcc-trunk-232454/x86_64-unknown-cygwin/bin/ -B/usr/share/gcc-trunk-232454/x86_64-unknown-cygwin/lib/ -isystem /usr/share/gcc-trunk-232454/x86_64-unknown-cygwin/include -isystem /usr/share/gcc-trunk-232454/x86_64-unknown-cygwin/sys-include -shared -nostdlib /cygdrive/c/projects/gcc/build-232454/./gcc/crtbeginS.o .libs/compatibility.o .libs/compatibility-debug_list.o .libs/compatibility-debug_list-2.o .libs/compatibility-c++0x.o .libs/compatibility-atomic-c++0x.o .libs/compatibility-thread-c++0x.o .libs/compatibility-chrono.o .libs/compatibility-condvar.o -Wl,--whole-archive ../libsupc++/.libs/libsupc++convenience.a ../src/c++98/.libs/libc++98convenience.a ../src/c++11/.libs/libc++11convenience.a -Wl,--no-whole-archive -L/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/libsupc++/.libs -L/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src -L/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/.libs -L/usr/lib/w32api -L/cygdrive/c/projects/gcc/build-232454/./gcc -L/lib/../lib -L/usr/lib/../lib -lgcc_s -lgcc -lcygwin -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /cygdrive/c/projects/gcc/build-232454/./gcc/crtend.o -Wl,-O1 -Wl,--gc-sections -Wl,--version-script=libstdc++-symbols.ver -o .libs/cygstdc++-6.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libstdc++.dll.a Errors reported: ../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `_txnal_cow_string_C1_for_exceptions(void*, char const*, void*)': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:242:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU1' /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:254:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x39): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `transaction clone for operator new[](unsigned long)' /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:273:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x5d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_memcpyRtWn' ../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `txnal_read_ptr': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:284:(.text$_Z23_txnal_cow_string_c_strPKv+0x1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8' /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:284:(.text$_Z23_txnal_sso_string_c_strPKv+0x1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8' /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:284:(.text$_Z20_txnal_cow_string_D1Pv+0x5): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8' ../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `_txnal_cow_string_D1(void*)': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:330:(.text$_Z20_txnal_cow_string_D1Pv+0x1e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_addUserCommitAction' ../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `transaction clone for std::logic_error::logic_error(char const*)': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:414:(.text$_ZGTtNSt11logic_errorC1EPKc+0x2e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_memcpyRnWt' ../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `transaction clone for std::logic_error::logic_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:414:(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_memcpyRnWt'../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `txnal_read_ptr': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:284:(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x36): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8' ../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function `transaction clone for std::logic_error::~logic_error()': /cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src/c++11/../../../../../gcc-trunk-232454/libstdc++-v3/src/c++11/cow-stdexcept.cc:414:(.text$_ZGTtNSt11logic_errorD0Ev+0x1a): additional relocation overflows omitted from the output collect2: error: ld returned 1 exit status Context: Makefile:606: recipe for target 'libstdc++.la' failed make[6]: *** [libstdc++.la] Error 1 make[6]: Leaving directory '/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src' Makefile:638: recipe for target 'all-recursive' failed make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory '/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3/src' Makefile:507: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3' Makefile:414: recipe for target 'all' failed make[3]: *** [all] Error 2 make[3]: Leaving directory '/cygdrive/c/projects/gcc/build-232454/x86_64-unknown-cygwin/libstdc++-v3' Makefile:16346: recipe for target 'all-stage1-target-libstdc++-v3' failed make[2]: *** [all-stage1-target-libstdc++-v3] Error 2 make[2]: Leaving directory '/cygdrive/c/projects/gcc/build-232454' Makefile:21374: recipe for target 'stage1-bubble' failed make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory '/cygdrive/c/projects/gcc/build-232454' Makefile:916: recipe for target 'all' failed make: *** [all] Error 2