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

Hal Finkel hfinkel at anl.gov
Fri Jan 27 13:45:52 CST 2017


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

>
> Thanks,
> Jozsef
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-bgq-discuss mailing list