Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267247 (PR40105) - sys-devel/gcc-4.3* fails to rebuild itself on SH
Summary: sys-devel/gcc-4.3* fails to rebuild itself on SH
Status: RESOLVED FIXED
Alias: PR40105
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: sh Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR40105
Whiteboard:
Keywords:
Depends on:
Blocks: 264121
  Show dependency tree
 
Reported: 2009-04-23 17:04 UTC by Raúl Porcel (RETIRED)
Modified: 2009-05-24 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (gcc-4.3.3-r2_build.log,484.70 KB, text/plain)
2009-04-23 17:05 UTC, Raúl Porcel (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl Porcel (RETIRED) gentoo-dev 2009-04-23 17:04:18 UTC
$subj, i'll attach the log.
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2009-04-23 17:05:23 UTC
Created attachment 189246 [details]
build.log

The relevant part:
sh4-unknown-linux-gnu-gcc -c   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber/dpd -I../libdecnumber    -o gcc-options.o -DGCC_DRIVER options.c
(SHLIB_LINK='/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./gcc/ -B/usr/sh4-unknown-linux-gnu/bin/ -B/usr/sh4-unknown-linux-gnu/lib/ -isystem /usr/sh4-unknown-linux-gnu/include -isystem /usr/sh4-unknown-linux-gnu/sys-include -O2  -O2 -g -O2 -pipe   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=@shlib_base_name@.so.1 -Wl,--version-script=@shlib_map_file@ -o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ @shlib_objs@ -lc && rm -f @multilib_dir@/@shlib_base_name@.so && if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then mv -f @multilib_dir@/@shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so.1.backup; else true; fi && mv @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_dir@/@shlib_base_name@.so.1 && ln -s @shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so'; \
	sh4-unknown-linux-gnu-gcc   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber/dpd -I../libdecnumber    \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.3.3\" -DDEFAULT_TARGET_MACHINE=\"sh4-unknown-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/usr/sh4-unknown-linux-gnu/gcc-bin/4.3.3/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \
  -c /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/gccspec.c -o gccspec.o)
sh4-unknown-linux-gnu-gcc   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -Wl,-O1 -o xgcc gcc.o opts-common.o gcc-options.o gccspec.o \
	  intl.o prefix.o version.o  ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./gcc/ -B/usr/sh4-unknown-linux-gnu/bin/ -B/usr/sh4-unknown-linux-gnu/lib/ -isystem /usr/sh4-unknown-linux-gnu/include -isystem /usr/sh4-unknown-linux-gnu/sys-include -dumpspecs > tmp-specs
/bin/sh: line 1:  9859 Segmentation fault      /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./gcc/ -B/usr/sh4-unknown-linux-gnu/bin/ -B/usr/sh4-unknown-linux-gnu/lib/ -isystem /usr/sh4-unknown-linux-gnu/include -isystem /usr/sh4-unknown-linux-gnu/sys-include -dumpspecs > tmp-specs
make[3]: *** [specs] Error 139
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make: *** [bootstrap-lean] Error 2
 [31;01m*[0m
Comment 2 SpanKY gentoo-dev 2009-04-24 18:20:18 UTC
i'd mentioned this a while ago but hadnt figured out what was going on
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2009-05-03 18:29:18 UTC
Some updates, i've tried building it manually. I've tried gcc trunk, and gcc 4.3 branch, all of them fail(this was using gcc-4.3.3 as the compiler).
It fails with this command:
make -j3 LDFLAGS=-Wl,-O1 STAGE1_CFLAGS=-O 'BOOT_CFLAGS= -O2 -pipe' bootstrap-lean
However, using
make -j3 bootstrap-lean
passes from that point.

Will keep investigating, i'll try to find out what part of that command is breaking it, then i'll try building gcc-4.3 using a gcc-4.3 branch snapshot with gcc-4.1.2, and then try to rebuild that snapshot with the resulting compiler.
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2009-05-05 19:16:38 UTC
Fun, with:
make -j3 LDFLAGS=-Wl,-O1 STAGE1_CFLAGS=-O2 'BOOT_CFLAGS= -O2 -pipe' bootstrap-lean
WORKS
with
make -j3 LDFLAGS=-Wl,-O1 STAGE1_CFLAGS=-O 'BOOT_CFLAGS= -O2 -pipe' bootstrap-lean
FAILS

Interesting
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2009-05-07 16:02:21 UTC
(In reply to comment #3)
> Will keep investigating, i'll try to find out what part of that command is
> breaking it, then i'll try building gcc-4.3 using a gcc-4.3 branch snapshot
> with gcc-4.1.2, and then try to rebuild that snapshot with the resulting
> compiler.
> 

Same result, so i understand this is not fixed.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2009-05-22 05:24:00 UTC
The problem was found and fixed: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147781
Please add the patch if its possible :)
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2009-05-24 23:17:07 UTC
In the tree for 4.3.3 and 4.4.0.