[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #14 from Ralf dot Wildenhues at gmx dot de 2009-04-14 21:50 --- Subject: Re: Bootstrapping libstdc++-v3 failed * dominiq at lps dot ens dot fr wrote on Sun, Apr 12, 2009 at 10:17:24AM CEST: Is comment #11 still true? No, I cannot reproduce it any more. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #15 from dominiq at lps dot ens dot fr 2009-04-14 22:04 --- No, I cannot reproduce it any more. So I close this PR as fixed. Please reopen if the failure reappears. -- dominiq at lps dot ens dot fr changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #13 from dominiq at lps dot ens dot fr 2009-04-12 08:17 --- Is comment #11 still true? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #12 from tkoenig at gcc dot gnu dot org 2008-12-03 23:24 --- Still fails with today's trunk. Is this a regression? -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added CC||tkoenig at gcc dot gnu dot ||org Known to fail||4.4.0 Last reconfirmed|2008-07-06 09:47:31 |2008-12-03 23:24:07 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #9 from rwild at gcc dot gnu dot org 2008-07-07 18:16 --- Subject: Bug 34780 Author: rwild Date: Mon Jul 7 18:16:04 2008 New Revision: 137582 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=137582 Log: gcc/ PR target/34780 * unwind-pe.h (size_of_encoded_value): add attribute unused. Modified: trunk/gcc/ChangeLog trunk/gcc/unwind-pe.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #10 from rwild at gcc dot gnu dot org 2008-07-07 18:17 --- Subject: Bug 34780 Author: rwild Date: Mon Jul 7 18:17:08 2008 New Revision: 137583 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=137583 Log: gcc/ PR target/34780 * unwind-pe.h (size_of_encoded_value): add attribute unused. Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/unwind-pe.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #11 from rwild at gcc dot gnu dot org 2008-07-07 18:55 --- The reported failure is fixed. However, building with --enable-maintainer-mode still fails due to this error, already described in http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00452.html: bin/sh ../libtool --tag CXX --mode=compile /tmp/gcc/build/./gcc/xgcc -shared-libgcc -B/tmp/gcc/build/./gcc -nostdinc++ -L/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/gcc-test/x86_64-unknown-linux-gnu/bin/ -B/tmp/gcc-test/x86_64-unknown-linux-gnu/lib/ -isystem /tmp/gcc-test/x86_64-unknown-linux-gnu/include -isystem /tmp/gcc-test/x86_64-unknown-linux-gnu/sys-include -I/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/gcc/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE-c -o locale_init.lo ../../../../gcc/libstdc++-v3/src/locale_init.cc libtool: compile: /tmp/gcc/build/./gcc/xgcc -shared-libgcc -B/tmp/gcc/build/./gcc -nostdinc++ -L/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/tmp/gcc-test/x86_64-unknown-linux-gnu/bin/ -B/tmp/gcc-test/x86_64-unknown-linux-gnu/lib/ -isystem /tmp/gcc-test/x86_64-unknown-linux-gnu/include -isystem /tmp/gcc-test/x86_64-unknown-linux-gnu/sys-include -I/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/gcc/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -c ../../../../gcc/libstdc++-v3/src/locale_init.cc -fPIC -DPIC -o .libs/locale_init.o cc1plus: warnings being treated as errors ../../../../gcc/libstdc++-v3/src/locale_init.cc: In static member function 'static const std::locale std::locale::classic()': ../../../../gcc/libstdc++-v3/src/locale_init.cc:247: error: dereferencing type-punned pointer will break strict-aliasing rules make[2]: *** [locale_init.lo] Error 1 make[2]: Leaving directory `/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/gcc/build/x86_64-unknown-linux-gnu/libstdc++-v3' make: *** [all] Error 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #8 from rwild at gcc dot gnu dot org 2008-07-06 09:47 --- Proposed patch at http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00452.html -- rwild at gcc dot gnu dot org changed: What|Removed |Added CC||rwild at gcc dot gnu dot org Status|WAITING |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2008-07-06 09:47:31 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #7 from hunor at cs dot bme dot hu 2008-02-11 17:50 --- I got the same error on i686-pc-linux-gnu with revision 132237. The -Werror is indeed the result of --enable-maintainer-mode: libstdc++-v3/acinclude.m4: ... if test x$USE_MAINTAINER_MODE = xno; then WERROR='' else WERROR='-Werror' fi ... libstdc++-v3/fragment.am: ... WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once ... libstdc++-v3/src/Makefile.am: ... AM_CXXFLAGS = \ -fno-implicit-templates \ $(WARN_CXXFLAGS) \ $(OPTIMIZE_CXXFLAGS) \ $(CONFIG_CXXFLAGS) ... libstdc++-v3/libsupc++/Makefile.am: ... AM_CXXFLAGS = \ -fno-implicit-templates \ $(LIBSUPCXX_PICFLAGS) \ $(WARN_CXXFLAGS) \ $(OPTIMIZE_CXXFLAGS) \ $(CONFIG_CXXFLAGS) ... Otherwise, the warning is correct: gcc/unwind-pe.h: ... static unsigned int size_of_encoded_value (unsigned char encoding) ... is indeed unused in libstdc++-v3/libsupc++/eh_call.cc. It should be static inline or __attribute__((unused)), or alternatively libstdc++-v3/libsupc++/eh_call.cc could define NO_SIZE_OF_ENCODED_VALUE before including the header. -- hunor at cs dot bme dot hu changed: What|Removed |Added CC||hunor at cs dot bme dot hu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-01-14 12:13 --- I do get this warning but the build does not fail: libtool: compile: /Users/apinski/src/local/gcc/objdir/./gcc/xgcc -shared-libgcc -B/Users/apinski/src/local/gcc/objdir/./gcc -nostdinc++ -L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src -L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src/.libs -B/Users/apinski/local-gcc/i386-apple-darwin8.11.1/bin/ -B/Users/apinski/local-gcc/i386-apple-darwin8.11.1/lib/ -isystem /Users/apinski/local-gcc/i386-apple-darwin8.11.1/include -isystem /Users/apinski/local-gcc/i386-apple-darwin8.11.1/sys-include -I/Users/apinski/src/local/gcc/libstdc++-v3/../gcc -I/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/include/i386-apple-darwin8.11.1 -I/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/include -I/Users/apinski/src/local/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -O2 -g -g -O2 -c /Users/apinski/src/local/gcc/libstdc++-v3/libsupc++/eh_call.cc -fno-common -DPIC -o eh_call.o /Users/apinski/src/local/gcc/libstdc++-v3/../gcc/unwind-pe.h:74: warning: 'unsigned int size_of_encoded_value(unsigned char)' defined but not used Are you sure you don't have CXXFLAGS set to include -Werror ? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-14 12:11 --- I Just built Mon Jan 14 03:46:12 UTC 2008 (revision 131520) on i386-apple-darwin8.11.1 . -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Component|bootstrap |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #3 from dominiq at lps dot ens dot fr 2008-01-14 13:30 --- Subject: Re: Bootstrapping libstdc++-v3 failed Are you sure you don't have CXXFLAGS set to include -Werror ? I think this is the default and I have it: cc1plus: warnings being treated as errors I have seen this kind of failure in the past, but in this case I am unable to find a work around. Anyway there is something wrong somewhere. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #4 from dominiq at lps dot ens dot fr 2008-01-14 14:36 --- Just for the record I have also found the warning in the make log of rev. 129958. The only difference I had with the previous builds was the use of '--enable-maintainer-mode'. I am now tring with '--enable-maintainer-mode --disable-werror'. Now I have checked on the gcc lists that I have been hit couple time by 'cc1: warnings being treated as errors' (see for instance http://gcc.gnu.org/ml/fortran/2007-11/msg00254.html). has there been any change on the cc1plus options recently? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #5 from dominiq at lps dot ens dot fr 2008-01-14 15:42 --- Configuring gcc with: ../gcc-4.3-work/configure --prefix=/opt/gcc/gcc4.3w --mandir=/opt/gcc/gcc4.3w/share/man --infodir=/opt/gcc/gcc4.3w/share/info --build=i686-apple-darwin9 --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/usr --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-maintainer-mode --disable-werror I still get the same failure: cc1plus: warnings being treated as errors /opt/gcc/gcc-4.3-work/libstdc++-v3/../gcc/unwind-pe.h:74: error: 'unsigned int size_of_encoded_value(unsigned char)' defined but not used According the manual: --enable-werror --disable-werror --enable-werror=yes --enable-werror=no When you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don't specify it, -Werror is turned on for the main development trunk. However it defaults to off for release branches and final releases. The specific files which get -Werror are controlled by the Makefiles. Why do I have '-Werror' while building libstdc++-v3? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780
[Bug target/34780] Bootstrapping libstdc++-v3 failed
--- Comment #6 from dominiq at lps dot ens dot fr 2008-01-14 16:15 --- If I go back to my default config: ../gcc-4.3-work/configure --prefix=/opt/gcc/gcc4.3w --mandir=/opt/gcc/gcc4.3w/share/man --infodir=/opt/gcc/gcc4.3w/share/info --build=i686-apple-darwin9 --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/usr --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib the -Werror is no longer there when building libstdc++-v3 and I have been able to build it, though I stll have the warning about 'unsigned int size_of_encoded_value(unsigned char)' defined but not used. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780