PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Error when compiling example code

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



Joined: 31 Jan 2012
Posts: 2

PostPosted: Thu Feb 16, 2012 3:49 am    Post subject: Error when compiling example code Reply with quote

I've just installed v11.10 of the 64-bit linux accelerator compilers, when compiling a simple test program (which I've successfully compiled on other machines) I receive the following error:

Code:
/usr/bin/ld: error: /opt/pgi/linux86-64/11.10/lib/pgi.ld: SECTIONS seen after other input files; try -T/--script
/usr/bin/ld: internal error in input_sections_begin, at ../../gold/merge.h:269


The error is the same whether I use the C or Fortran compiler, any ideas?
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Feb 16, 2012 12:50 pm    Post subject: Reply with quote

Hi Mark,

From what little I can find about this on the web, it seems to be an issue with the binutils-gold ld.

What OS are you using?
Is binutils-gold the default on this system or was it installed separately?
Can you try installing (if not already there) the standard binutils? (http://ftp.gnu.org/gnu/binutils/)

- Mat
Back to top
View user's profile
MarkMawson



Joined: 31 Jan 2012
Posts: 2

PostPosted: Fri Feb 17, 2012 6:27 am    Post subject: Reply with quote

That worked nicely. Thanks.
Back to top
View user's profile
JohnCSYZ



Joined: 17 Jan 2013
Posts: 5

PostPosted: Tue Feb 12, 2013 6:05 pm    Post subject: Reply with quote

MarkMawson wrote:
That worked nicely. Thanks.



I met the same problem, but the problem still there after I installed binutils lib.

But actually I get some confuse on the installed binutils, since I didn't see any gold dir or merge.h file in it.

Would you please show me how did you installed?

Thanks
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