Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-22-2006, 06:20 AM   #1
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Error compiling gcc 3.3.6 with 64bit gcc 4.0.3

I'm trying to build and install gcc 3 along side gcc 4 but I'm running into trouble and Google hasn't seemed to tell me much. Here is the compiler error:
/home/cam/Packages/gcc3/src/gcc-3.3.6/gcc/xgcc -B/home/cam/Packages/gcc3/src/gcc-3.3.6/gcc/ -B/opt/gcc3/x86_64-pc-linux-gnu/bin/ -B/opt/gcc3/x86_64-pc-linux-gnu/lib/ -isystem /opt/gcc3/x86_64-pc-linux-gnu/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, -Wl,--version-script=libgcc/32/ -o 32/  -m32  libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_exit.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o  libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/unwind-c.o -lc && rm -f && ln -s 32/
/usr/bin/ld: skipping incompatible /usr/lib/../lib/ when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/ when searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/ when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [32/] Error 1
make[2]: Leaving directory `/home/cam/Packages/gcc3/src/gcc-3.3.6/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/cam/Packages/gcc3/src/gcc-3.3.6/gcc'
make: *** [all-gcc] Error 2
...and here is my configure line:
./configure --host="${CHOST}" --build="${CHOST}" --prefix=/opt/gcc3 --enable-shared \
     --enable-languages=c,c++ --enable-threads=posix --enable-__cxa_atexit
From looking around, it looks like a 32bit compat lib or something, it only seems to be mentioned in the various 64bit builds (sparc64, ppc64, x86_64) and if this is right, I don't have any other 32bit libs installed on my system and probably don't need this one.

Any suggestions would be appreciated as ./configure --help wasn't very uhh..helpful :/



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 01:15 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
error compiling kernel 2.6.2 (GCC too old??) Dancingsalad Linux - Newbie 5 02-07-2004 05:05 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 07:16 AM
gcc error while compiling gawk iceman47 Linux From Scratch 2 03-04-2003 01:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration