[Llvm-bgq-discuss] bad elf

Geoffrey Irving irving at naml.us
Fri Feb 1 01:31:46 CST 2013


I switched to clang mpi wrapper compilers, but still get the bad elf error:

    ...
    2013-02-01 07:06:51.870 (FATAL) [0xfff829da210]
VST-02640-13751-32:22357:ibm.runjob.client.Job: could not start job:
job failed to start
    2013-02-01 07:06:51.871 (FATAL) [0xfff829da210]
VST-02640-13751-32:22357:ibm.runjob.client.Job: Load failed on
Q02-I7-J00: Application executable ELF header contains invalid value,
errno 8 Exec format error
    ...

Any ideas what might be causing this?  I put the full output files
(error, output, cobalt) and the program (though not the shared
libraries it depends on) here:

    http://naml.us/random/clang/bad-1

The program in question is indeed an elf, according to file:

    vesta:bad-1% file ~/otherlab/other/install/release/bin/endgame-mpi
    /home/irving/otherlab/other/install/release/bin/endgame-mpi: ELF
64-bit MSB shared object, 64-bit PowerPC or cisco 7500, version 1
(SYSV), dynamically linked, not stripped

The program was built via

/home/projects/llvm/mpi/clang.legacy/bin/mpiclang++ -o
build/powerpc/release/mpi/main.os -c -U__GXX_EXPERIMENTAL_CXX0X__
-mcmodel=small -O2 -Wall -Winit-self -Woverloaded-virtual
-Wsign-compare -fno-strict-aliasing -std=c++11 -Werror
-Wno-array-bounds -Wno-unknown-pragmas -Wno-invalid-offsetof -fPIC
-DUSE_MPI -DOTHER_PYTHON -DNDEBUG -DOTHER_THREAD_SAFE=1
-DBOOST_EXCEPTION_DISABLE -DBUILDING_pentago_mpi
-I/home/irving/include -I/usr/include/python2.6
-I/home/irving/.local/lib/python2.6/site-packages/numpy/core/include
-I/home/irving/include -I/usr/local/include -Ibuild/include
-Ibuild/powerpc/release -I. -I/home/irving/download/boost_1_52_0
mpi/main.cpp
/home/projects/llvm/mpi/clang.legacy/bin/mpiclang++ -o
build/powerpc/release/mpi/endgame-mpi -shared
-Wl,-rpath=/home/irving/lib
-Wl,-rpath=/gpfs/vesta_home/irving/otherlab/other/install/release/lib
build/powerpc/release/mpi/main.os -L/usr/lib64 -L/home/irving/lib
-L/usr/local/lib
-L/gpfs/vesta_home/irving/otherlab/other/install/release/lib
-lpentago_mpi -lpentago_core -lother_core -llzma -lpython2.6 -lz
-lsnappy
Install file: "build/powerpc/release/mpi/endgame-mpi" as
"/gpfs/vesta_home/irving/otherlab/other/install/release/bin/endgame-mpi"

Again, that's ignoring all the shared libraries.  Those could be the
problem, but I'd hope an error in finding or parsing shared libraries
would look different than this.

Close!  Thanks for the all the help!

Geoffrey


More information about the llvm-bgq-discuss mailing list