[Llvm-bgq-discuss] compilation + core dump question
Biddiscombe, John A.
biddisco at cscs.ch
Wed Sep 11 02:57:25 CDT 2013
I've just experimented with clang on the new BGQ at CSCS, I followed the instructions for installing the relocatable rpms and am building hdf5 using cmake.
things compile ok (but note that the code so far is all C, not C++) after I setup various paths to libs/includes etc,
when I try h5dump, I get
[biddisco at bbpbg1 hdf5_1_8_cmake]$ bin/h5dump -H /bbpfs/bgq/biddisco/build/hdftests/testing/hdf5-N0256-n64-t16384.sph
/bgsys/source/srcV1R2M0.14091/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h:102:
/bgsys/source/srcV1R2M0.14091/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h<102>
Aborted (core dumped)
now my suspicion is that I've linked to gcc versions of mpi and this is causing some trouble - the link line looks like this ...
/tmp/bgclang/bin/clang
-L/bgsys/drivers/ppcfloor/spi/lib
-L/bgsys/drivers/ppcfloor/comm/gcc/lib
-L/bgsys/drivers/ppcfloor/comm/sys/lib
-g CMakeFiles/h5dump.dir/h5dump.c.o CMakeFiles/h5dump.dir/h5dump_ddl.c.o CMakeFiles/h5dump.dir/h5dump_xml.c.o -o ../../bin/h5dump ../../bin/libhdf5_tools_debug.a ../../bin/libhdf5_debug.a -lm -ldl -lrt -lmpich -lmpl -lopa -lpami -lSPI -lSPI_cnk -lpthread -ldl -lrt -lmpich -lmpl -lopa -lpami -lSPI -lSPI_cnk -lpthread
the include path contains
-I/bgsys/drivers/ppcfloor/comm/gcc/include
apart from the duplication of several libraries on the link line. Does anything look wrong? Meanwhile - I will try setting everything up using the xl paths and see I that changes anything. (Do I need to compile mpich myself using clang?)
Thanks hopefully.
JB
--
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/20130911/6963da2c/attachment.html>
More information about the llvm-bgq-discuss
mailing list