Error when compiling example code

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:

/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?

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? (

  • Mat

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?