PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

libg2c
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
hhegab



Joined: 28 Jan 2005
Posts: 14

PostPosted: Thu Jan 19, 2006 5:50 am    Post subject: Reply with quote

Hi,

Thanks for the answers.
I use a script file to build the code, the script comes with the code and it uses make in its commands.
I dont know how may I send you the code, is there a way to do it?

hhegab
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jan 19, 2006 11:43 am    Post subject: Reply with quote

Hi hhegab,

You most likely need to just edit your script and remove or comment out the reference to "-lg2c". While I can look at it, I'd like you try editing your file first.

If it's small (< 100kb) you can send a gziped tar package to trs@pgroup.com and ask Dave to forward it to me.

- Mat
Back to top
View user's profile
hhegab



Joined: 28 Jan 2005
Posts: 14

PostPosted: Sat Jan 21, 2006 11:38 am    Post subject: Reply with quote

I have changed the option as you said, and again, I was given the same error.
I have changed the compiler to be pgf77 and commented the option -lg2c but had the same error.
I used the above email to send the code.
Thank you very much for walking with me through all these troubles,

hhegab
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Jan 24, 2006 7:18 pm    Post subject: Reply with quote

Hi Hakim,

I got your code and was able to get it compile and run by updating your Linux configuration section in the "makeCC" file to:
Code:

Linux) CC="pgcc -fastsse"
       F77="pgf77 -fastsse"
       lFort=-pgf77libs
       lDL="-Ddynamic -ldl"
       RANLIB=ranlib
     ;;


The issue was that your using the C compiler to link, in which case you need to link in the f77 runtime libraries, i.e. -pgf77libs (or -pgf90libs if using pgf90). Be sure to remove the "lFort" file and create a "tmp" directory.

- Mat
Back to top
View user's profile
hhegab



Joined: 28 Jan 2005
Posts: 14

PostPosted: Sun Jan 29, 2006 4:54 pm    Post subject: Reply with quote

Thank you, it compiled OK yet I still can't make it work, but I believe I have consumed good deal ot time and space.

Thanks again,

Hatim
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
Goto page Previous  1, 2, 3
Page 3 of 3

 
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