PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

SECTIONS seen after other input files;
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
JohnCSYZ



Joined: 17 Jan 2013
Posts: 5

PostPosted: Tue Feb 12, 2013 5:09 am    Post subject: SECTIONS seen after other input files; Reply with quote

Hi, I just run the first C example from https://www.pgroup.com/doc/openACC_gs.pdf
but I get the below error:

Code:
/usr/bin/ld: error: /home/john/.local/lib/pgi/linux86-64/13.1/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


Please tell me how to do it.
thanks.


Last edited by JohnCSYZ on Tue Feb 12, 2013 3:40 pm; edited 1 time in total
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Feb 12, 2013 11:19 am    Post subject: Reply with quote

Hi John,

I had another user get the same thing, see: http://www.pgroup.com/userforum/viewtopic.php?t=2992, and from what I could tell it's a problem with linker from the "binutils-gold" package. Can you try installing the standard binutils? (http://ftp.gnu.org/gnu/binutils/)

Thanks,
Mat
Back to top
View user's profile
JohnCSYZ



Joined: 17 Jan 2013
Posts: 5

PostPosted: Tue Feb 12, 2013 3:32 pm    Post subject: Reply with quote

mkcolg wrote:
Hi John,

I had another user get the same thing, see: http://www.pgroup.com/userforum/viewtopic.php?t=2992, and from what I could tell it's a problem with linker from the "binutils-gold" package. Can you try installing the standard binutils? (http://ftp.gnu.org/gnu/binutils/)

Thanks,
Mat


Thanks Mat, I will give it a try now
Back to top
View user's profile
JohnCSYZ



Joined: 17 Jan 2013
Posts: 5

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

Sorry the problem still there even I have installed the binutils lib.

But actually, I have some confuse on the installation, since the installed lib doesn't have any merge.h file in it.

Any ideas?
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Feb 13, 2013 11:06 am    Post subject: Reply with quote

Hi John,

I not sure but I suspect that you still have the 'gold' ld in your PATH. What's the output from "ld --version"?

If this is the case, then either set your PATH so the new ld is picked up or add "LD=/path/to/binutils/bin" to your link line.

- Mat
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
Goto page 1, 2  Next
Page 1 of 2

 
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