$subj, i'll attach the log.
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
i'd mentioned this a while ago but hadnt figured out what was going on
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.
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
(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.
The problem was found and fixed: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147781 Please add the patch if its possible :)
In the tree for 4.3.3 and 4.4.0.