[Llvm-bgq-discuss] Exec format error

Biddiscombe, John A. biddisco at cscs.ch
Wed Sep 18 15:43:34 CDT 2013


Hello,

our machine is up and running again and I tried a new compile using the rpms from a couple of days ago.
Compile went ok, I used cmake and didn't use mpi wrappers from clang, but instead invoked cmake with the following cache vars (at end of email) to hopefully give the same result.

When executing a test job, I get an unexpected error

[biddisco at bbpbg1 testing]$ salloc -N 1
salloc: Granted job allocation 2120
salloc: Block RMP18Se222856626 is ready for job
[biddisco at bbpbg1 testing]$ srun -n 1 /scratch5_256_1/bgq/biddisco/build/hdftests/bin/TestHDF5Compound
2013-09-18 22:35:31.802 (FATAL) [0xfffb6688cd0] 20651:ibm.runjob.client.Job: could not start job: job failed to start
2013-09-18 22:35:31.803 (FATAL) [0xfffb6688cd0] 20651:ibm.runjob.client.Job: Load failed on Q04-I2-J01: Application executable ELF header contains invalid value, errno 8 Exec format error

Looks as though I've somehow compiled for the wrong architecture. Is there an easy fix like some missing compile flag/option?

many thanks

JB

using
export CC=~/bgclang/bin/clang
export CXX=~/bgclang/bin/clang++

cmake cache vars ....

set(ppcflr /bgsys/drivers/ppcfloor)

set(BUILD_SHARED_LIBS 0 CACHE BOOL "")

set(CMAKE_CXX_FLAGS " -I${ppcflr}/comm/lib/gnu  -I${ppcflr} -I${ppcflr}/comm/sys/include -I${ppcflr}/spi/include -I${ppcflr}/spi/include/kernel/cnk" CACHE STRING "")
set(CMAKE_C_FLAGS " -I${ppcflr}/comm/lib/gnu  -I${ppcflr} -I${ppcflr}/comm/sys/include -I${ppcflr}/spi/include -I${ppcflr}/spi/include/kernel/cnk" CACHE STRING "")
set(CMAKE_EXE_LINKER_FLAGS " -L${ppcflr}/comm/lib -L${ppcflr}/comm/lib -L${ppcflr}/comm/lib64 -L${ppcflr}/comm/lib -L${ppcflr}/spi/lib -L${ppcflr}/comm/sys/lib -L${ppcflr}/spi/l
ib -L${ppcflr}/comm/sys/lib   -L${ppcflr}/comm/lib64 -L${ppcflr}/comm/lib -L${ppcflr}/spi/lib"  CACHE STRING "")

set(MPI_C_INCLUDE_PATH /bgsys/drivers/ppcfloor/comm/include CACHE STRING "")
set(MPI_CXX_INCLUDE_PATH /bgsys/drivers/ppcfloor/comm/include CACHE STRING "")
set(MPI_EXTRA_LIBRARY mpi-gcc;opa-gcc;mpl-gcc;pami-gcc;SPI;SPI_cnk;rt;pthread;stdc++;pthread CACHE STRING "")
set(MPI_LIBRARY mpi-gcc CACHE STRING "")
set(MPI_CXX_LIBRARIES "mpich-gcc;opa-gcc;mpl-gcc;pami-gcc;SPI;SPI_cnk;rt;pthread;stdc++;pthread" CACHE STRING "")
set(MPI_C_LIBRARIES "mpich-gcc;opa-gcc;mpl-gcc;pami-gcc;SPI;SPI_cnk;rt;pthread;stdc++;pthread" CACHE STRING "")


--
John Biddiscombe,                        email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20130918/a3a62612/attachment.html>


More information about the llvm-bgq-discuss mailing list