[Llvm-bgq-discuss] Exec format error

Biddiscombe, John A. biddisco at cscs.ch
Fri Sep 20 03:09:53 CDT 2013


I resolved the problem this morning when I got back to the machine. I had been setting TOOLCHAIN_FILE instead of CMAKE_TOOLCHAIN_FILE and messed up my builds. the executables are now running.

Apologies for the noise

JB


From: llvm-bgq-discuss-bounces at lists.alcf.anl.gov [mailto:llvm-bgq-discuss-bounces at lists.alcf.anl.gov] On Behalf Of Biddiscombe, John A.
Sent: 18 September 2013 22:44
To: llvm-bgq-discuss at lists.alcf.anl.gov
Subject: [Llvm-bgq-discuss] Exec format error

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/20130920/68f583b8/attachment.html>


More information about the llvm-bgq-discuss mailing list