Bootstrap fails with revision 157799 on trunk: /bin/sh ./libtool --tag=CC --mode=compile /home/ig25/Gcc/trunk-bin/./gcc/xgcc -B/home/ig25/Gcc/trunk-bin/./gcc/ -B/home/ig25/x86_64-unknown-linux-gnu/bin/ -B/home/ig25/x86_64-unknown-linux-gnu/lib/ -isystem /home/ig25/x86_64-unknown-linux-gnu/include -isystem /home/ig25/x86_64-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../../trunk/libgomp -I../../../../trunk/libgomp/config/linux/x86 -I../../../../trunk/libgomp/config/linux -I../../../../trunk/libgomp/config/posix -I../../../../trunk/libgomp -Wall -Werror -ftls-model=initial-exec -march=i486 -mtune=i686 -Wc,-pthread -g -O2 -m32 -MT parallel.lo -MD -MP -MF .deps/parallel.Tpo -c -o parallel.lo ../../../../trunk/libgomp/parallel.c libtool: compile: /home/ig25/Gcc/trunk-bin/./gcc/xgcc -B/home/ig25/Gcc/trunk-bin/./gcc/ -B/home/ig25/x86_64-unknown-linux-gnu/bin/ -B/home/ig25/x86_64-unknown-linux-gnu/lib/ -isystem /home/ig25/x86_64-unknown-linux-gnu/include -isystem /home/ig25/x86_64-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../../trunk/libgomp -I../../../../trunk/libgomp/config/linux/x86 -I../../../../trunk/libgomp/config/linux -I../../../../trunk/libgomp/config/posix -I../../../../trunk/libgomp -Wall -Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -g -O2 -m32 -MT parallel.lo -MD -MP -MF .deps/parallel.Tpo -c ../../../../trunk/libgomp/parallel.c -fPIC -DPIC -o .libs/parallel.o cc1: warnings being treated as errors ../../../../trunk/libgomp/parallel.c: In function 'GOMP_parallel_end': ../../../../trunk/libgomp/parallel.c:121:4: error: value computed is not used make[9]: *** [parallel.lo] Error 1 make[9]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' make[8]: *** [all-recursive] Error 1 make[8]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' make[7]: *** [all] Error 2 make[7]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' make[6]: *** [multi-do] Error 1 make[6]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[5]: *** [all-multi] Error 2 make[5]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[2]: *** [all-stage1-target-libgomp] Error 2 make[2]: Leaving directory `/home/ig25/Gcc/trunk-bin' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/ig25/Gcc/trunk-bin' make: *** [all] Error 2 configure command was ../trunk/configure --prefix=$HOME --enable-languages=all,ada --with-mpc=/usr/local
Created attachment 20253 [details] config.log in the libgomp directory
Trying to get this onto the regression radar..
... which of course works better if I get the "Known to work" and "Known to fail" fields correct.
__sync_fetch_and_add (&gomp_remaining_threads_count, 1UL - team->nthreads); This should not cause a warning to happen. Can you provide the preprocessed source? This works for me with: LAST_UPDATED: Fri Mar 26 18:56:25 UTC 2010 (revision 157759)
Created attachment 20254 [details] Preprocessed source This is from ~/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp the 32 bit subdirectory
Created attachment 20255 [details] Preprocessed source where the problem occurs for the first time team.c also shows the problem, this is just the source corresponding to the original error.
I just was about to bootstrap with [trunk revision 157804].
It doesn't warn for me. Please provide -v output of the command that warns for team.i or parallel.i. tmp> /abuild/rguenther/trunk-g/gcc/cc1 -quiet -o /dev/null -Wall -O2 parallel.i -m32 -g -march=i486 -ftls-model=initial-exec -mtune=i686 -Werror tmp>
Created attachment 20257 [details] Output obtained from adding '-v" to the 32/libgomp Makefile Here's the output of "make", just after having added "-v" to the options of the relevant Makefile.
Err, cc1: error: unrecognized command line option "-fsave-temps" but - still works for me. How did you configure?
(In reply to comment #10) > Err, > > cc1: error: unrecognized command line option "-fsave-temps" > > but - still works for me. How did you configure? Sorry, that should have been -save-temps. I added this to the Makefile in x86_64-unknown-linux-gnu/32/libgomp by hand and messed up that particular option. This is better: make[9]: Entering directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' /bin/sh ./libtool --tag=CC --mode=compile /home/ig25/Gcc/trunk-bin/./gcc/xgcc -B/home/ig25/Gcc/trunk-bin/./gcc/ -B/home/ig25/x86_64-unknown-linux-gnu/bin/ -B/home/ig25/x86_64-unknown-linux-gnu/lib/ -isystem /home/ig25/x86_64-unknown-linux-gnu/include -isystem /home/ig25/x86_64-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../../trunk/libgomp -I../../../../trunk/libgomp/config/linux/x86 -I../../../../trunk/libgomp/config/linux -I../../../../trunk/libgomp/config/posix -I../../../../trunk/libgomp -Wall -Werror -v -save-temps -ftls-model=initial-exec -march=i486 -mtune=i686 -Wc,-pthread -g -O2 -m32 -MT parallel.lo -MD -MP -MF .deps/parallel.Tpo -c -o parallel.lo ../../../../trunk/libgomp/parallel.c libtool: compile: /home/ig25/Gcc/trunk-bin/./gcc/xgcc -B/home/ig25/Gcc/trunk-bin/./gcc/ -B/home/ig25/x86_64-unknown-linux-gnu/bin/ -B/home/ig25/x86_64-unknown-linux-gnu/lib/ -isystem /home/ig25/x86_64-unknown-linux-gnu/include -isystem /home/ig25/x86_64-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../../trunk/libgomp -I../../../../trunk/libgomp/config/linux/x86 -I../../../../trunk/libgomp/config/linux -I../../../../trunk/libgomp/config/posix -I../../../../trunk/libgomp -Wall -Werror -v -save-temps -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -g -O2 -m32 -MT parallel.lo -MD -MP -MF .deps/parallel.Tpo -c ../../../../trunk/libgomp/parallel.c -fPIC -DPIC -o .libs/parallel.o Reading specs from /home/ig25/Gcc/trunk-bin/./gcc/specs COLLECT_GCC=/home/ig25/Gcc/trunk-bin/./gcc/xgcc COLLECT_LTO_WRAPPER=/home/ig25/Gcc/trunk-bin/./gcc/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../trunk/configure --prefix=/home/ig25 --enable-languages=all,ada --with-mpc=/usr/local : (reconfigured) ../trunk/configure --prefix=/home/ig25 --enable-languages=all,ada --with-mpc=/usr/local Thread model: posix gcc version 4.5.0 20100330 (experimental) (GCC) COLLECT_GCC_OPTIONS='-B/home/ig25/Gcc/trunk-bin/./gcc/' '-B/home/ig25/x86_64-unknown-linux-gnu/bin/' '-B/home/ig25/x86_64-unknown-linux-gnu/lib/' '-isystem' '/home/ig25/x86_64-unknown-linux-gnu/include' '-isystem' '/home/ig25/x86_64-unknown-linux-gnu/sys-include' '-DHAVE_CONFIG_H' '-I.' '-I../../../../trunk/libgomp' '-I../../../../trunk/libgomp/config/linux/x86' '-I../../../../trunk/libgomp/config/linux' '-I../../../../trunk/libgomp/config/posix' '-I../../../../trunk/libgomp' '-Wall' '-Werror' '-v' '-save-temps' '-ftls-model=initial-exec' '-march=i486' '-pthread' '-mtune=i686' '-g' '-O2' '-m32' '-MT' 'parallel.lo' '-MD' '-MP' '-MF' '.deps/parallel.Tpo' '-c' '-fPIC' '-DPIC' '-o' '.libs/parallel.o' /home/ig25/Gcc/trunk-bin/./gcc/cc1 -E -quiet -v -I. -I../../../../trunk/libgomp -I../../../../trunk/libgomp/config/linux/x86 -I../../../../trunk/libgomp/config/linux -I../../../../trunk/libgomp/config/posix -I../../../../trunk/libgomp -imultilib 32 -iprefix /home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/ -isystem /home/ig25/Gcc/trunk-bin/./gcc/include -isystem /home/ig25/Gcc/trunk-bin/./gcc/include-fixed -MD .libs/parallel.d -MF .deps/parallel.Tpo -MP -MT parallel.lo -D_REENTRANT -DHAVE_CONFIG_H -DPIC -isystem /home/ig25/x86_64-unknown-linux-gnu/include -isystem /home/ig25/x86_64-unknown-linux-gnu/sys-include ../../../../trunk/libgomp/parallel.c -march=i486 -mtune=i686 -m32 -Wall -Werror -ftls-model=initial-exec -fPIC -g -fworking-directory -O2 -fpch-preprocess -o parallel.i ignoring nonexistent directory "/home/ig25/x86_64-unknown-linux-gnu/include" ignoring nonexistent directory "/home/ig25/x86_64-unknown-linux-gnu/sys-include" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/../../include" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed" ignoring nonexistent directory "/home/ig25/Gcc/trunk-bin/gcc/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include" ignoring duplicate directory "../../../../trunk/libgomp" #include "..." search starts here: #include <...> search starts here: . ../../../../trunk/libgomp ../../../../trunk/libgomp/config/linux/x86 ../../../../trunk/libgomp/config/linux ../../../../trunk/libgomp/config/posix /home/ig25/Gcc/trunk-bin/./gcc/include /home/ig25/Gcc/trunk-bin/./gcc/include-fixed /usr/local/include /usr/include End of search list. COLLECT_GCC_OPTIONS='-B/home/ig25/Gcc/trunk-bin/./gcc/' '-B/home/ig25/x86_64-unknown-linux-gnu/bin/' '-B/home/ig25/x86_64-unknown-linux-gnu/lib/' '-isystem' '/home/ig25/x86_64-unknown-linux-gnu/include' '-isystem' '/home/ig25/x86_64-unknown-linux-gnu/sys-include' '-DHAVE_CONFIG_H' '-I.' '-I../../../../trunk/libgomp' '-I../../../../trunk/libgomp/config/linux/x86' '-I../../../../trunk/libgomp/config/linux' '-I../../../../trunk/libgomp/config/posix' '-I../../../../trunk/libgomp' '-Wall' '-Werror' '-v' '-save-temps' '-ftls-model=initial-exec' '-march=i486' '-pthread' '-mtune=i686' '-g' '-O2' '-m32' '-MT' 'parallel.lo' '-MD' '-MP' '-MF' '.deps/parallel.Tpo' '-c' '-fPIC' '-DPIC' '-o' '.libs/parallel.o' /home/ig25/Gcc/trunk-bin/./gcc/cc1 -fpreprocessed parallel.i -quiet -dumpbase parallel.c -march=i486 -mtune=i686 -m32 -auxbase-strip .libs/parallel.o -g -O2 -Wall -Werror -version -ftls-model=initial-exec -fPIC -o parallel.s GNU C (GCC) version 4.5.0 20100330 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.1 [gcc-4_4-branch revision 150839], GMP version 4.3.1, MPFR version 2.4.1-p5, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.5.0 20100330 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.1 [gcc-4_4-branch revision 150839], GMP version 4.3.1, MPFR version 2.4.1-p5, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 3348d511f9258850cd8213c19029c579 cc1: warnings being treated as errors ../../../../trunk/libgomp/parallel.c: In function 'GOMP_parallel_end': ../../../../trunk/libgomp/parallel.c:121:4: error: value computed is not used make[9]: *** [parallel.lo] Error 1 make[9]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' make[8]: *** [all-recursive] Error 1 make[8]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' make[7]: *** [all] Error 2 make[7]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/32/libgomp' make[6]: *** [multi-do] Error 1 make[6]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[5]: *** [all-multi] Error 2 make[5]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/ig25/Gcc/trunk-bin/x86_64-unknown-linux-gnu/libgomp' make[2]: *** [all-stage1-target-libgomp] Error 2 make[2]: Leaving directory `/home/ig25/Gcc/trunk-bin' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/ig25/Gcc/trunk-bin' make: *** [all] Error 2 And here is the output of manually running the cross-compiler: ig25@linux-fd1f:~/Gcc/trunk-bin> gcc/xgcc -O2 -Wall -m32 -g -march=i486 -ftls-model=initial-exec -mtune=i686 -Werror -v x86_64-unknown-linux-gnu/32/libgomp/parallel.i Using built-in specs. COLLECT_GCC=gcc/xgcc Target: x86_64-unknown-linux-gnu Configured with: ../trunk/configure --prefix=/home/ig25 --enable-languages=all,ada --with-mpc=/usr/local : (reconfigured) ../trunk/configure --prefix=/home/ig25 --enable-languages=all,ada --with-mpc=/usr/local Thread model: posix gcc version 4.5.0 20100330 (experimental) (GCC) COLLECT_GCC_OPTIONS='-O2' '-Wall' '-m32' '-g' '-march=i486' '-ftls-model=initial-exec' '-mtune=i686' '-Werror' '-v' cc1 -fpreprocessed x86_64-unknown-linux-gnu/32/libgomp/parallel.i -quiet -dumpbase parallel.i -m32 -march=i486 -mtune=i686 -auxbase parallel -g -O2 -Wall -Werror -version -ftls-model=initial-exec -o /tmp/ccv0LXie.s xgcc: error trying to exec 'cc1': execvp: No such file or directory ig25@linux-fd1f:~/Gcc/trunk-bin> gcc/cc1 -quiet -o /dev/null -O2 -Wall -m32 -g -march=i486 -ftls-model=initial-exec -mtune=i686 -Werror -v x86_64-unknown-linux-gnu/32/libgomp/parallel.i ignoring nonexistent directory "/home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /home/ig25/include /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed /usr/include End of search list. cc1: warnings being treated as errors ../../../../trunk/libgomp/parallel.c: In function 'GOMP_parallel_end': ../../../../trunk/libgomp/parallel.c:121:4: error: value computed is not used
Please forget the second half of my previous comment (I copied / pasted the wrong part). Here's the actual output, probably not very useful: ig25@linux-fd1f:~/Gcc/trunk-bin> gcc/cc1 -quiet -o /dev/null -O2 -Wall -m32 -g -march=i486 -ftls-model=initial-exec -mtune=i686 -Werror -v x86_64-unknown-linux-gnu/32/libgomp/parallel.i ignoring nonexistent directory "/home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /home/ig25/include /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed /usr/include End of search list. cc1: warnings being treated as errors ../../../../trunk/libgomp/parallel.c: In function 'GOMP_parallel_end': ../../../../trunk/libgomp/parallel.c:121:4: error: value computed is not used
(In reply to comment #12) > Please forget the second half of my previous comment > (I copied / pasted the wrong part). Here's the actual > output, probably not very useful: > > ig25@linux-fd1f:~/Gcc/trunk-bin> gcc/cc1 -quiet -o /dev/null -O2 -Wall -m32 -g > -march=i486 -ftls-model=initial-exec -mtune=i686 -Werror -v > x86_64-unknown-linux-gnu/32/libgomp/parallel.i > ignoring nonexistent directory > "/home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include" > #include "..." search starts here: > #include <...> search starts here: > /usr/local/include > /home/ig25/include > /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include > /home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed > /usr/include > End of search list. > cc1: warnings being treated as errors > ../../../../trunk/libgomp/parallel.c: In function 'GOMP_parallel_end': > ../../../../trunk/libgomp/parallel.c:121:4: error: value computed is not used > /tmp> /abuild/rguenther/trunk-g/gcc/xgcc -B /abuild/rguenther/trunk-g/gcc -S -o /dev/null -O2 -Wall -m32 -g -march=i486 -ftls-model=initial-exec -mtune=i686 -Werror team.i -v Reading specs from /abuild/rguenther/trunk-g/gcc/specs COLLECT_GCC=/abuild/rguenther/trunk-g/gcc/xgcc COLLECT_LTO_WRAPPER=/abuild/rguenther/trunk-g/gcc/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /space/rguenther/src/svn/trunk/configure --disable-bootstrap --disable-nls --disable-libstdcxx-pch --enable-lto --enable-languages=c,ada,c++,fortran,java,lto,objc,obj-c++ --enable-gold --with-plugin-ld=/usr/bin/gold : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) /space/rguenther/src/svn/trunk/configure --disable-bootstrap --disable-nls --disable-libstdcxx-pch --enable-lto --enable-gold --with-plugin-ld=/usr/bin/gold CFLAGS=-g --enable-languages=c,ada,c++,fortran,java,lto,objc,obj-c++ --no-create --no-recursion : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured) Thread model: posix gcc version 4.5.0 20100316 (experimental) (GCC) COLLECT_GCC_OPTIONS='-B' '/abuild/rguenther/trunk-g/gcc' '-S' '-o' '/dev/null' '-O2' '-Wall' '-m32' '-g' '-march=i486' '-ftls-model=initial-exec' '-mtune=i686' '-Werror' '-v' /abuild/rguenther/trunk-g/gcc/cc1 -fpreprocessed team.i -quiet -dumpbase team.i -m32 -march=i486 -mtune=i686 -auxbase-strip /dev/null -g -O2 -Wall -Werror -version -ftls-model=initial-exec -o /dev/null GNU C (GCC) version 4.5.0 20100330 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.3.4 [gcc-4_3-branch revision 152973], GMP version 4.3.1, MPFR version 2.3.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.5.0 20100330 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.3.4 [gcc-4_3-branch revision 152973], GMP version 4.3.1, MPFR version 2.3.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: d120cdac577033febb1405d25e77a328 COMPILER_PATH=/abuild/rguenther/trunk-g/gcc/ LIBRARY_PATH=/abuild/rguenther/trunk-g/gcc/32/:/lib/../lib/:/usr/lib/../lib/:/abuild/rguenther/trunk-g/gcc/:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-B' '/abuild/rguenther/trunk-g/gcc' '-S' '-o' '/dev/null' '-O2' '-Wall' '-m32' '-g' '-march=i486' '-ftls-model=initial-exec' '-mtune=i686' '-Werror' '-v' /tmp> that's with revision 157820. Thus, I can't reproduce it.
I can't reproduce this iether.
This was caused by a local modification on my tree. Sorry for the noise :-( Closing as invalid.