| View previous topic :: View next topic |
| Author |
Message |
JohnCSYZ
Joined: 17 Jan 2013 Posts: 5
|
Posted: Tue Feb 12, 2013 5:09 am Post subject: SECTIONS seen after other input files; |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
|
| Back to top |
|
 |
JohnCSYZ
Joined: 17 Jan 2013 Posts: 5
|
Posted: Tue Feb 12, 2013 3:32 pm Post subject: |
|
|
Thanks Mat, I will give it a try now |
|
| Back to top |
|
 |
JohnCSYZ
Joined: 17 Jan 2013 Posts: 5
|
Posted: Tue Feb 12, 2013 6:11 pm Post subject: |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Wed Feb 13, 2013 11:06 am Post subject: |
|
|
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 |
|
 |
|