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

Jozsef Bakosi jbakosi at lanl.gov
Fri Jan 27 13:40:52 CST 2017


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?

Thanks,
Jozsef


More information about the llvm-bgq-discuss mailing list