Fedora Linux Support Community & Resources Center
  #1  
Old 6th January 2007, 05:57 PM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
Exclamation gcc compilation problems on fc6 64bit

I'm not able to compile C or C++ programs using gcc or g++. My gcc version is 4.1.1-30. The error message is as follows:
[root@digjam tmp]# gcc test.c
/usr/bin/ld: skipping incompatible /usr/lib/libc.so 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

I tried installing older versions of gcc but that did not help one bit. I also tried using the -march option; but even that didn't help. Also tried installing glibc and glibc-devel - didn't work.

Can you help me out?
ThanQ!
DigJaM

Last edited by digjam; 6th January 2007 at 06:05 PM.
Reply With Quote
  #2  
Old 7th January 2007, 02:27 AM
rappermas Offline
Registered User
 
Join Date: Oct 2005
Location: Colorado
Age: 26
Posts: 1,281
This might be of help:

http://www.linuxquestions.org/questi...d.php?t=362507
__________________
PRECISION:
Dell Precision 380, Intel Pentium D, 3.00 GHz, 2 GB (4 x 512 MB) DDR2, ATi FireGL v3100 (128 MB), SB X-Fi, Sony 16X DVD-ROM, Optiarc 16X DVD+/-RW

VALOR:
HP Pavilion, Intel Pentium IV 3.2 GHz HT, 1 GB Corsair, nVIDIA Quadro FX 1100 (128 MB), SB Live!, HP 16X DVD-Writer 400i, 16X DVD-ROM

HPPAV:
HP Pavilion 8766C, Intel Pentium III 900 MHz, 640 MB PC-100 SDRAM (3 DIMMs), nVIDIA GeForce FX5200 (256 MB), ESS Maestro 2E, HP CD-Writer Plus (CD-RW 4X), Hitachi 8X DVD-ROM
Reply With Quote
  #3  
Old 28th January 2007, 10:21 AM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
Had to scrap FC6 64bit :-(

I couldn't find any workaround for that problem, and finally i had to scrap FC6 64bit. Everything else was working perfectly fine, twas only gcc that gave me problems. Even my friends are facing the same trouble. Hope some1 comes up with a solution soon...
Reply With Quote
  #4  
Old 30th January 2007, 03:53 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
Quote:
Originally Posted by digjam
[root@digjam tmp]# gcc test.c
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
Why is it searching /usr/lib on a x86_64 install? What does test.c contain?
Reply With Quote
  #5  
Old 30th January 2007, 09:30 AM
digjam Offline
Registered User
 
Join Date: Jan 2007
Posts: 11
Contents of test.c

test.c is a simple Hello world C program:

#include <stdio.h>

main(){
printf("Hello world!\n");
return 0;
}
Reply With Quote
  #6  
Old 2nd February 2007, 03:01 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 28
Posts: 7,909
Works just fine for me.

gcc.x86_64 4.1.1-51.fc6
Reply With Quote
Reply

Tags
64bit, compilation, fc6, gcc, problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compilation problems digjam Using Fedora 7 6th January 2007 06:38 PM
Kdevelop compilation problems joshua197 Using Fedora 0 13th February 2006 10:52 AM
32bit compilation of application on 64bit machine ica1107 Using Fedora 0 10th October 2005 06:02 PM


Current GMT-time: 10:19 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Gressier Photos on Instagram - Castel Maggiore Travel Photos on Instagram - Singosari Travel Photos on Instagram