gcc compiling problem

Pablo Wolter pawn at myrealbox.com
Wed Dec 22 07:01:20 PST 2004


Matthew Burgess wrote:

> Pablo Wolter wrote:
>
>> Hi,
>>
>> I know that this issue was already discussed here, but in my searchs 
>> for a solution with the error in the compilation process of gcc at 
>> the very beginning of the book i found some solutions that involve an 
>> upgrade of binutils in the "host"machine, my problem is that my 
>> actual version of LD is the most new one because I'm usind debian sid 
>> with kernel 2.6.8. There's a solution in odifying some source files 
>> in the gcc-3.3.3 package that come's with release 5.1.1?
>>
>> Thanks in advance if somebody can point me some tips, I'm really 
>> stopped at the very beginning of all this.
>>
>> Pablo.
>>
>
> It would help immensely if you could copy and paste the exact error 
> you get when you try to compile gcc.
>
> Regards,
>
> Matt.


Sorry for the delay. I read a litle but cannot solve the problem, it 
seems that the LD version that i'm using is not compatible. I have to 
do: export CC=/usr/bin/gcc-3.0 because 3.3 and 2.95 doesn't run the 
configure part. This is the error when trying to compile gcc.

make[3]: Entering directory `/ora8/sources/gcc-build/gcc'
for d in libgcc; do \
  if [ -d $d ]; then true; else /bin/sh 
.../../gcc-3.3.3/gcc/mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
../xgcc -B./ -B/tools/i686-pc-linux-gnu/bin/ -isystem 
/tools/i686-pc-linux-gnu/include -isystem 
/tools/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
../include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs 
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o 
libgcc_s.so.1   libgcc/./_muldi3.o libgcc/./_negdi2.o 
libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o 
libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o 
libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o 
libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o 
libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o 
libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o 
libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o 
libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o 
libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o 
libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o 
libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o 
libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o 
libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o 
libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o 
libgcc/./_udivmoddi4.o  libgcc/./unwind-dw2.o 
libgcc/./unwind-dw2-fde-glibc.o libgcc/./unwind-sjlj.o 
libgcc/./unwind-c.o -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1 
libgcc_s.so
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/ora8/sources/gcc-build/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/ora8/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/ora8/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2

Thanks for any tip that can give me guys because I really don't know why 
is not compiling it with ld if this version comes from the binutils 
package used in LFS 5.1.1

-- 
 (o_   Pablo Wolter
 //\   Usuario #284649
 V_/_  Linux 2.6.8




More information about the lfs-support mailing list