Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 271559

Summary: sys-devel/gcc-4.3.3-r2 failed: compilation fails with libgfortran error
Product: Gentoo Linux Reporter: Christopher Dale <chrelad>
Component: [OLD] GCC PortingAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The full log of the installation attempt

Description Christopher Dale 2009-05-28 17:49:56 UTC
While trying to install gcc-4.3.3-r2, the installation fails with an error pertaining to Fortran. The failure seemed to happen in "/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/i686-pc-linux-gnu/libgfortran" and displayed the following error message:

collect2: ld returned 1 exit status
make[3]: *** [libgfortran.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/i686-pc-linux-gnu/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/i686-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make: *** [bootstrap-lean] Error 2
 * 
 * ERROR: sys-devel/gcc-4.3.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4783:  Called toolchain_src_compile
 *             environment, line 5304:  Called gcc_src_compile
 *             environment, line 3077:  Called gcc_do_make
 *             environment, line 2868:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with bootstrap-lean

Reproducible: Always

Steps to Reproduce:
1. USE="fortran" emerge sys-devel/gcc-4.3.3-r2
2. Wait...
Actual Results:  
The emerge fails with the following error message:

collect2: ld returned 1 exit status
make[3]: *** [libgfortran.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/i686-pc-linux-gnu/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/i686-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make: *** [bootstrap-lean] Error 2
 * 
 * ERROR: sys-devel/gcc-4.3.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4783:  Called toolchain_src_compile
 *             environment, line 5304:  Called gcc_src_compile
 *             environment, line 3077:  Called gcc_do_make
 *             environment, line 2868:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with bootstrap-lean

Expected Results:  
GCC is compiled, linked and installed.
Comment 1 Christopher Dale 2009-05-28 17:52:32 UTC
Created attachment 192736 [details]
The full log of the installation attempt

This is the full log of the installation attempt
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2009-08-03 00:51:57 UTC
I can't reproduce this.  Can you post your emerge --info and verify that this is reproducible in the same spot every time?