[Llvm-bgq-discuss] ELF header contains invalid value, errno 8 Exec format error

Jozsef Bakosi jbakosi at lanl.gov
Fri Jan 27 14:31:05 CST 2017


On 01.27.2017 13:45, Hal Finkel wrote:
> 
> On 01/27/2017 01:40 PM, Jozsef Bakosi wrote:
> > Hi folks,
> > 
> > I think I am missing something very simple here. Here is what I do:
> > 
> > $ soft add +mpiwrapper-gcc
> > $ soft add +mpiwrapper-bgclang
> > $ echo -e "#include <iostream>\nint main() { std::cout << \"hello\" << std::endl; };" > hello.C
> > $ bgclang++11 -c hello.C -o hello
> > $ qsub -A Quinoa -t 30 -n 1 hello
> > 
> > and I get:
> > 
> > 2017-01-27 19:20:36.200 (FATAL) [0x4000122bde0] CET-42000-53331-128:46908:ibm.runjob.client.Job: Load failed on Q04-I6-J00: Application executable ELF header contains invalid value, errno 8 Exec format error
> > 
> > It seems like I'm not compiling for the compute nodes.
> > 
> > Could someone explain what I'm doing wrong and how I build a correct executable?
> 
> You're passing "-c" to the compiler, so it is creating an object file
> (instead of linking an executable).
> 
>  -Hal

Yep, as I suspected, the mistake was pretty stupid. It works now.

Thanks,
Jozsef


More information about the llvm-bgq-discuss mailing list