PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

gcc crtbegin.o file

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
Catherine Moroney



Joined: 05 Jun 2006
Posts: 22

PostPosted: Mon Sep 18, 2006 3:56 pm    Post subject: gcc crtbegin.o file Reply with quote

We just upgraded the version of gcc on our computers
from 4.1.0 to 4.1.1, and now the PGF90 and PGF95 compilers
don't work. I now get the following error when I try to
build even the simplest of Fortran codes:

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.0//crtbegin.o: No such file: No such file or directory

The directory "4.1.0" has been erased on our system and
replaced with "4.1.1". Are there some shared objects in the
PG compilers that link to this file?

What's the solution? Is it just to rebuild the PG compilers
from scratch?

Catherine
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Sep 18, 2006 4:34 pm    Post subject: Reply with quote

Hi Catherine,

The GCC directory the PGI compilers use is defined in a configuration file called "localrc" found in your PGI "bin" directory. Since this is a minor upgrade, the simplest solution is to edit "localrc" and change the paths of the "GCCDIR", "GCCINC", and "G77DIR" variables.

For major upgrades of GCC, you may need to instead rerun "makelocalrc" and/or re-install the PGI compilers.

Hope this helps,
Mat

Code:
% cat /usr/pgi/linux86-64/6.2-3/bin/localrc
set LFC=-lgfortran;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.0/;
set GCCINC=/usr/lib64/gcc/x86_64-suse-linux/4.1.0/include;
set G77DIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.0/;
set NUMALIBS=-lnuma ;
set LOCALRC=YES;
set THROW=__THROW=;
set EXTENSION=__extension__=;
set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);

Change to:
Code:
set LFC=-lgfortran;
set LDSO=/lib64/ld-linux-x86-64.so.2;
set GCCDIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.1/;
set GCCINC=/usr/lib64/gcc/x86_64-suse-linux/4.1.1/include;
set G77DIR=/usr/lib64/gcc/x86_64-suse-linux/4.1.1/;
set NUMALIBS=-lnuma ;
set LOCALRC=YES;
set THROW=__THROW=;
set EXTENSION=__extension__=;
set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);
Back to top
View user's profile
Catherine Moroney



Joined: 05 Jun 2006
Posts: 22

PostPosted: Tue Sep 19, 2006 4:09 pm    Post subject: Reply with quote

Worked perfectly. All we had to do was edit the file
as suggested.

Thanks,

Catherine
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation 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