gcc 4.1.2 bootstrap error

Arsène Dernière gigotdagneau at gmail.com
Sun Sep 30 09:20:14 PDT 2007


On 30/09/2007, Chris Staub <chris at beaker67.com> wrote:
> Arsène Dernière wrote:
> > Hi, every one,
> >
> > I searched the previous posts in the mailing list with "gcc bootstrap
> > error" search keys before sending this message. WWW google search
> > didn't help neither.
> >
> > I tried to compile and bootstrap GCC  4.1.2 like written in the 6.3 stable book.
> >
> > First I got this final output before quiting:
> >
> > /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible
> > /usr/lib/../lib/libc.so when searching for -lc
> >  /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible
> > /usr/lib/../lib/libc.a when searching for -lc
> >  /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible
> > /usr/lib/libc.so when searching for -lc
> > /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible
> >  /usr/lib/libc.a when searching for -lc
> > /tools/x86_64-unknown-linux-gnu/bin/ld: cannot find -lc
> > collect2: ld returned 1 exit status
> >  make[3]: *** [32/libgcc_s.so] Error 1
> > make[3]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc'
> >  make[2]: *** [stmp-multilib] Error 2
> > make[2]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc'
> > make[1]: *** [stage1_build] Error 2
> >  make[1]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc'
> > make: *** [bootstrap] Error 2
> >
> > Then I searched the mailing list. Someone already had reported this
> > error. The proposed solution would be to
> > re-compile after cleaning the gcc-build/ directory with the
> > --disable-shared option instead of the --enable-shared.
> > I give it a try but now I have this output before quiting:
> >
> >  checking whether make sets $(MAKE)... yes
> > checking for --enable-version-specific-runtime-libs... no
> > checking whether to enable maintainer-specific portions of Makefiles...
> >  no
> > checking for x86_64-unknown-linux-gnu-gcc...
> >  /mnt/LFS/sources/gcc-build/./gcc/xgcc
> > -B/mnt/LFS/sources/gcc-build/./gcc/
> > -B/tools/x86_64-unknown-linux-gnu/bin/
> >  -B/tools/x86_64-unknown-linux-gnu/lib/ -isystem
> > /tools/x86_64-unknown-linux-gnu/include -isystem
> >  /tools/x86_64-unknown-linux-gnu/sys-include  -m32
> > checking for C compiler default output file name... configure: error: C
> > compiler cannot create executables
> >  See `config.log' for more details.
> > make[2]: *** [configure-target-libmudflap] Error 1
> >  make[2]: Leaving directory `/mnt/LFS/sources/gcc-build'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/mnt/LFS/sources/gcc-build'
> >  make: *** [bootstrap] Error 2
> >
> > I checked every step in the book twice, everything seems to be ok.
> >
> > Can someone help me, please?
> >
> You can't build LFS on a 64-bit system. There is a work-in-progress
> 64-bit LFS book that comes on the 64-bit livecd, or you can use
> cross-lfs at http://trac.cross-lfs.org.
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>

It seems I am about to restart with CLFS. Thanks a lot

AD

-- 
Eat meat!



More information about the lfs-support mailing list