GCC build failure, HEAD@190944 on native

GCC regression tester regress@geoffk.org
Tue Sep 4 18:45:00 GMT 2012


With your recent patch, GCC HEAD revision 190944 had problems on:
native: build (seems to have progressed further)
Attached is build output for those targets.
The previous build was of revision 190942.

Log information for changes since the last build:
------------------------------------------------------------------------
r190943 | dnovillo | 2012-09-04 11:33:29 -0700 (Tue, 04 Sep 2012) | 25 lines
Changed paths:
   M /trunk/gcc/ChangeLog
   M /trunk/gcc/vec.h

This patch works around a parsing problem with g++ 4.3.  The parser is
failing to lookup calls to the template function reserve when called
from other member functions:

vec_t<T>::reserve<A> (...)

The parser thinks that the '<' in reserve<A> is a less-than operation.
This problem does not happen after 4.3.

This code is going to change significantly, so this won't be needed
soon.

Tested on x86_64 with g++ 4.3 and g++ 4.6.

	PR bootstrap/54478
	* vec.h (vec_t::alloc): Remove explicit type specification
	in call to reserve.
	(vec_t::copy): Likewise.
	(vec_t::reserve): Likewise.
	(vec_t::reserve_exact): Likewise.
	(vec_t::safe_splice): Likewise.
	(vec_t::safe_push): Likewise.
	(vec_t::safe_grow): Likewise.
	(vec_t::safe_grow_cleared): Likewise.
	(vec_t::safe_insert): Likewise.
------------------------------------------------------------------------

For more information, see <http://glutton.geoffk.org/HEAD/>.

-------------- next part --------------
/bin/sh ../../libtool --tag CXX --tag disable-shared   --mode=compile /home/regress/tbox/native/build/./gcc/xgcc -shared-libgcc -B/home/regress/tbox/native/build/./gcc -nostdinc++ -L/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/regress/tbox/objs/i686-pc-linux-gnu/bin/ -B/home/regress/tbox/objs/i686-pc-linux-gnu/lib/ -isystem /home/regress/tbox/objs/i686-pc-linux-gnu/include -isystem /home/regress/tbox/objs/i686-pc-linux-gnu/sys-include    -I/home/regress/tbox/svn-gcc/libstdc++-v3/../libgcc -I/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/include -I/home/regress/tbox/svn-gcc/libstdc++-v3/libsupc++  -std=gnu++11 -prefer-pic -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once   -ffunction-sections -fdata-sections  -fr!
 andom-seed=fstream-inst.lo -g -O2 -D_GNU_SOURCE -c -o fstream-inst.lo /home/regress/tbox/svn-gcc/libstdc++-v3/src/c++11/fstream-inst.cc
libtool: compile:  /home/regress/tbox/native/build/./gcc/xgcc -shared-libgcc -B/home/regress/tbox/native/build/./gcc -nostdinc++ -L/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/regress/tbox/objs/i686-pc-linux-gnu/bin/ -B/home/regress/tbox/objs/i686-pc-linux-gnu/lib/ -isystem /home/regress/tbox/objs/i686-pc-linux-gnu/include -isystem /home/regress/tbox/objs/i686-pc-linux-gnu/sys-include -I/home/regress/tbox/svn-gcc/libstdc++-v3/../libgcc -I/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/include -I/home/regress/tbox/svn-gcc/libstdc++-v3/libsupc++ -std=gnu++11 -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=fstream-inst.lo -g -O2 -D_GNU_SOURCE -c /home/regress/tbox/s!
 vn-gcc/libstdc++-v3/src/c++11/fstream-inst.cc  -fPIC -DPIC -o fstream-inst.o
/tmp/ccT5zMSd.s: Assembler messages:
/tmp/ccT5zMSd.s:44: Error: no such instruction: `rdrand %eax'
make[6]: *** [random.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory `/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/src/c++11'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/regress/tbox/native/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory `/home/regress/tbox/native/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/regress/tbox/native/build'
make: *** [bootstrap] Error 2
+ '[' -s .bad_compare ']'
+ exit 1
-------------- next part --------------

-- 
Geoffrey Keating <geoffk@geoffk.org> 
(via an automated GCC regression-testing script.)


More information about the Gcc-regression mailing list