PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Link error on FC-3

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
annxu



Joined: 02 Dec 2004
Posts: 2

PostPosted: Thu Dec 02, 2004 11:08 am    Post subject: Link error on FC-3 Reply with quote

I'm trying pgi 5.2-4 on an athlon xp machine running FC-3 to compile F77 programs. I got the following error when linking:

/usr/bin/ld: /crtbegin.o: No such file: No such file or directory

However, g77 works well for the same programs. The gcc is 3.4.2, glibc is 2.3.3. Are they compatible with pgi 5.2? Any solutions for the problem?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6211
Location: The Portland Group Inc.

PostPosted: Thu Dec 02, 2004 12:09 pm    Post subject: Reply with quote

Hello,

Fedora Core 3 is new enough that its not offically supported by 5.2-4. I your case, the "makelocalrc" script either didn't recognize or got the path to your GCCDIR wrong. The crtbegin.o file comes from glibc. Look in your bin directory's "localrc" file. It should have the following varaibles:

Code:
set LFC=-lg2c;
set LDSO=/lib/ld-linux.so.2;
set GCCDIR=/usr/lib/gcc-lib/i586-suse-linux/3.3.4;
set GCCINC=/usr/lib/gcc-lib/i586-suse-linux/3.3.4/include;
set G77DIR=/usr/lib/gcc-lib/i586-suse-linux/3.3.4;
set THROW=__THROW=;
set HAMMER=;
set X86_64=;


This is an example from a SuSE 9.2 system so your paths will be different. Make sure that you have these varaibles set and that the paths are correct. If "localrc" does not exist, then run "makelocalrc -x <path to installdir>" or create "localrc" mannually.

Hope this helps!
Mat
Back to top
View user's profile
annxu



Joined: 02 Dec 2004
Posts: 2

PostPosted: Fri Dec 03, 2004 7:01 am    Post subject: Reply with quote

Thank you VVVVVVVV much! It works!
Back to top
View user's profile
cedarzhou



Joined: 15 Dec 2004
Posts: 1

PostPosted: Thu Dec 16, 2004 6:10 am    Post subject: thanks very much Reply with quote

it works
cedarzhou
from china
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group