When trying to install the newest GCC (gcc-4.3.0_alpha20070126) the build process dies during configuration. This is due to a test that makes the compiler do an internal error (segfault). Reproducible: Always Steps to Reproduce: 1. Create an ebuild that uses gcc-4.3.0_alpha20070126 2. Try to ebuild it with the use flags: "fortran gcj gtk nls (-altivec) -bootstrap -build -doc (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 3. Watch and wait, the error takes place when we are to build libgcc. Actual Results: configure:2364: $? = 0 configure:2366: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/ bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -v </dev/null >&5 Reading specs from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/specs Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/gcc-4.3-20070126/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.0-alpha20070126 --includedi r=/usr/lib/gcc/i686-pc-linux-gnu/4.3.0-alpha20070126/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.0-alpha20070126 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.0-alp ha20070126/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.0-alpha20070126/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.0-alpha20070126/include/g++-v4 --host=i 686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable- libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java,fortran --enable-shared --enable-threads=posix --enable -bootstrap --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.3.0-alpha20070126 (experimental) (Gentoo 4.3.0_alpha20070126) configure:2369: $? = 0 configure:2371: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/ bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -V </dev/null >&5 xgcc: '-V' must come at the start of the command line configure:2374: $? = 1 configure:2393: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/ bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -o conftest -O2 -march=pentium3 -pipe -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:12: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. configure:2396: $? = 1 configure:2562: checking for suffix of object files configure:2583: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/ bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -O2 -march=pentium3 -pipe -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:12: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. configure:2586: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2600: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Expected Results: Successfull compilation and installation of GCC. I tried to run the test program that result in the segfault with the xgcc binary: ------------------------ conftest.c ------------------------ /* confdefs.h. */ #define PACKAGE_NAME "GNU C Runtime Library" #define PACKAGE_TARNAME "libgcc" #define PACKAGE_VERSION "1.0" #define PACKAGE_STRING "GNU C Runtime Library 1.0" #define PACKAGE_BUGREPORT "" /* end confdefs.h. */ int main () { ; return 0; } ------------------------ conftest.c ------------------------ with this command: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -c -O2 -march=pentium3 -pipe -O2 /tmp/conftest.c This did result in segfault, so I guess the xgcc that is build during compilation of GCC has errors.
Created attachment 108851 [details] gcc-4.3.0_alpha20070126.ebuild This is the ebuild I used.
Created attachment 108853 [details] xgcc (executable) This is the executable that configure tries to use, it came from: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/./gcc/xgcc
Created attachment 108854 [details] config.log (libgcc) This is the log file from configure. It came from: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070126/work/build/i686-pc -linux-gnu/libgcc/config.log
Not a bug in anything provided by Gentoo, so closing INVALID.