https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88633
Bug ID: 88633 Summary: stage2 failure due to undefined reference to libintl_dgettext on armv7l-linux-gnueabihf Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dclarke at blastwave dot org Target Milestone: --- This has been repeatable and while configure and stage 1 seems fine the process fails in stage 2 thus : arm7$ uname -a Linux arm7 4.4.132+ #1 SMP Tue Oct 23 18:03:49 CST 2018 armv7l GNU/Linux arm7$ cat /etc/debian_version 9.6 arm7$ date -u Fri Dec 28 12:42:15 UTC 2018 A set of essential tools and libs are already built, tested and installed into the path /opt/bw and that includes libiconv and gettext. arm7$ LD_RUN_PATH=/opt/bw/lib LD_FLAGS=\-L/opt/bw/lib \ > RUNPATH=/opt/bw/lib \ > ../gcc-8.2.0/configure \ > --build=armv7l-linux-gnueabihf \ > --target=armv7l-linux-gnueabihf \ > --host=armv7l-linux-gnueabihf \ > --prefix=/opt/intermediate/gcc8 \ > --disable-nls --enable-threads=posix --enable-shared --enable-bootstrap \ > --enable-linker-build-id --libexecdir=/opt/bw/lib --libdir=/opt/bw/lib \ > --with-system-zlib --with-target-system-zlib \ > --enable-multiarch --with-arch=armv7-a --with-fpu=vfpv4-d16 \ > --with-float=hard --with-mode=thumb --enable-checking=release \ > --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-__cxa_atexit \ > --with-long-double-128 --enable-stage1-languages=c,c++ \ > --enable-stage1-checking=misc --with-as=/usr/bin/as --with-ld=/usr/bin/ld \ > --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ \ > --with-pkgversion='genunix intermediate Fri Dec 28 12:42:15 UTC 2018' checking build system type... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking target system type... armv7l-unknown-linux-gnueabihf checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /bin/sed checking for gawk... no checking for mawk... mawk checking for libatomic support... yes checking for libitm support... yes checking for libsanitizer support... yes checking for libvtv support... yes checking for libmpx support... no checking for libhsail-rt support... no checking for armv7l-linux-gnueabihf-gcc... /usr/bin/gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... yes checking whether /usr/bin/g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... yes checking for armv7l-linux-gnueabihf-gnatbind... no checking for gnatbind... no checking for armv7l-linux-gnueabihf-gnatmake... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs configure: WARNING: using in-tree isl, disabling version check *** This configuration is not supported in the following subdirectories: zlib target-libmpx gnattools target-libada target-libhsail-rt target-liboffloadmic (Any other directories should still work fine.) checking for default BUILD_CONFIG... bootstrap-debug checking for --enable-vtable-verify... no checking for bison... bison -y checking for bison... bison checking for gm4... /opt/bw/bin/m4 checking for flex... no checking for lex... no checking for flex... no checking for makeinfo... no /opt/bw/build/gcc-8.2.0/missing: 81: /opt/bw/build/gcc-8.2.0/missing: makeinfo: not found checking for expect... no checking for runtest... no checking for ar... (cached) /usr/bin/ar checking for armv7l-linux-gnueabihf-ar... (cached) /usr/bin/ar checking for as... (cached) /usr/bin/as checking for armv7l-linux-gnueabihf-as... (cached) /usr/bin/as checking for armv7l-linux-gnueabihf-dlltool... no checking for dlltool... no checking for ld... (cached) /usr/bin/ld checking for armv7l-linux-gnueabihf-ld... (cached) /usr/bin/ld checking for armv7l-linux-gnueabihf-lipo... no checking for lipo... no checking for armv7l-linux-gnueabihf-nm... no checking for nm... nm checking for ranlib... (cached) /usr/bin/ranlib checking for armv7l-linux-gnueabihf-ranlib... (cached) /usr/bin/ranlib checking for strip... (cached) /usr/bin/strip checking for armv7l-linux-gnueabihf-strip... (cached) /usr/bin/strip checking for armv7l-linux-gnueabihf-windres... no checking for windres... no checking for armv7l-linux-gnueabihf-windmc... no checking for windmc... no checking for objcopy... (cached) /usr/bin/objcopy checking for armv7l-linux-gnueabihf-objcopy... (cached) /usr/bin/objcopy checking for objdump... (cached) /usr/bin/objdump checking for armv7l-linux-gnueabihf-objdump... (cached) /usr/bin/objdump checking for readelf... (cached) /usr/bin/readelf checking for armv7l-linux-gnueabihf-readelf... (cached) /usr/bin/readelf checking for armv7l-linux-gnueabihf-cc... no checking for cc... cc checking for armv7l-linux-gnueabihf-c++... no checking for c++... c++ checking for armv7l-linux-gnueabihf-gcc... no checking for gcc... gcc checking for armv7l-linux-gnueabihf-gfortran... no checking for gfortran... no checking for armv7l-linux-gnueabihf-gccgo... no checking for gccgo... no checking for ar... no checking for armv7l-linux-gnueabihf-ar... no checking for ar... ar checking for as... no checking for armv7l-linux-gnueabihf-as... no checking for as... as checking for dlltool... no checking for armv7l-linux-gnueabihf-dlltool... no checking for dlltool... no checking for ld... no checking for armv7l-linux-gnueabihf-ld... no checking for ld... ld checking for lipo... no checking for armv7l-linux-gnueabihf-lipo... no checking for lipo... no checking for nm... no checking for armv7l-linux-gnueabihf-nm... no checking for nm... nm checking for objcopy... no checking for armv7l-linux-gnueabihf-objcopy... no checking for objcopy... objcopy checking for objdump... no checking for armv7l-linux-gnueabihf-objdump... no checking for objdump... objdump checking for ranlib... no checking for armv7l-linux-gnueabihf-ranlib... no checking for ranlib... ranlib checking for readelf... no checking for armv7l-linux-gnueabihf-readelf... no checking for readelf... readelf checking for strip... no checking for armv7l-linux-gnueabihf-strip... no checking for strip... strip checking for windres... no checking for armv7l-linux-gnueabihf-windres... no checking for windres... no checking for windmc... no checking for armv7l-linux-gnueabihf-windmc... no checking for windmc... no checking where to find the target ar... host tool checking where to find the target as... host tool checking where to find the target cc... just compiled checking where to find the target c++... just compiled checking where to find the target c++ for libstdc++... just compiled checking where to find the target dlltool... host tool checking where to find the target gcc... just compiled checking where to find the target gfortran... just compiled checking where to find the target gccgo... just compiled checking where to find the target ld... host tool checking where to find the target lipo... host tool checking where to find the target nm... host tool checking where to find the target objcopy... host tool checking where to find the target objdump... host tool checking where to find the target ranlib... host tool checking where to find the target readelf... host tool checking where to find the target strip... host tool checking where to find the target windres... host tool checking where to find the target windmc... host tool checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile arm7$ Bootstrap is run thus : arm7$ /usr/bin/time -p /usr/bin/nice -n +19 /opt/bw/bin/gmake BOOT_CFLAGS='-g -O0' bootstrap . . . /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/./prev-gcc/xg++ -B/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/./prev-gcc/ -B/opt/intermediate/gcc8/armv7l-linux-gnueabihf/bin/ -nostdinc++ -B/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs -B/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -I/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/include/armv7l-linux-gnueabihf -I/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/include -I/opt/bw/build/gcc-8.2.0/libstdc++-v3/libsupc++ -L/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs -L/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -no-pie -g -O0 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o go1 \ go/ast-dump.o go/escape.o go/export.o go/expressions.o go/go-backend.o go/go-diagnostics.o go/go-encode-id.o go/go-dump.o go/go-gcc.o go/go-gcc-diagnostics.o go/go-lang.o go/go-linemap.o go/go-optimize.o go/go-sha1.o go/go.o go/gogo.o go/import.o go/import-archive.o go/lex.o go/names.o go/parse.o go/runtime.o go/statements.o go/types.o go/unsafe.o go/wb.o attribs.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a /opt/bw/lib/libiconv.so -L/opt/bw/lib -Wl,-rpath -Wl,/opt/bw/lib ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/./isl/.libs -lisl -L/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/./gmp/.libs -L/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/./mpfr/src/.libs -L/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl -lz /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(cxx11-wlocale-inst.o): In function `std::__cxx11::messages<wchar_t>::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&, char const*) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/include/armv7l-linux-gnueabihf/bits/messages_members.h:73: undefined reference to `libintl_bindtextdomain' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(locale-inst.o): In function `std::messages<char>::open(std::string const&, std::locale const&, char const*) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/include/armv7l-linux-gnueabihf/bits/messages_members.h:73: undefined reference to `libintl_bindtextdomain' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(wlocale-inst.o): In function `std::messages<wchar_t>::open(std::string const&, std::locale const&, char const*) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/include/armv7l-linux-gnueabihf/bits/messages_members.h:73: undefined reference to `libintl_bindtextdomain' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(cxx11-locale-inst.o): In function `std::__cxx11::messages<char>::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&, char const*) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/include/armv7l-linux-gnueabihf/bits/messages_members.h:73: undefined reference to `libintl_bindtextdomain' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members_cow.o): In function `std::messages<char>::do_open(std::string const&, std::locale const&) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members_cow.cc:79: undefined reference to `libintl_bind_textdomain_codeset' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members_cow.o): In function `get_glibc_msg': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members_cow.cc:49: undefined reference to `libintl_dgettext' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members_cow.o): In function `std::messages<wchar_t>::do_open(std::string const&, std::locale const&) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members_cow.cc:116: undefined reference to `libintl_bind_textdomain_codeset' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members_cow.o): In function `get_glibc_msg': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members_cow.cc:49: undefined reference to `libintl_dgettext' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members.o): In function `std::__cxx11::messages<char>::do_open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members.cc:79: undefined reference to `libintl_bind_textdomain_codeset' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members.o): In function `get_glibc_msg': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members.cc:49: undefined reference to `libintl_dgettext' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members.o): In function `std::__cxx11::messages<wchar_t>::do_open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::locale const&) const': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members.cc:116: undefined reference to `libintl_bind_textdomain_codeset' /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/prev-armv7l-linux-gnueabihf/libstdc++-v3/src/.libs/libstdc++.a(messages_members.o): In function `get_glibc_msg': /opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/armv7l-linux-gnueabihf/libstdc++-v3/src/c++98/messages_members.cc:49: undefined reference to `libintl_dgettext' collect2: error: ld returned 1 exit status gmake[3]: *** [../../gcc-8.2.0/gcc/go/Make-lang.in:82: go1] Error 1 gmake[3]: Leaving directory '/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005/gcc' gmake[2]: *** [Makefile:4665: all-stage2-gcc] Error 2 gmake[2]: Leaving directory '/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005' gmake[1]: *** [Makefile:27827: stage2-bubble] Error 2 gmake[1]: Leaving directory '/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.005' gmake: *** [Makefile:28063: bootstrap] Error 2 Command exited with non-zero status 2 real 18409.75 user 16794.12 sys 643.62 arm7$ Strange undefined references to multiple libintl_XXX names.