[Llvm-bgq-discuss] Error With Dynamic Linking on Mira Head Node

Derek Gaston friedmud at gmail.com
Thu Dec 29 11:27:10 CST 2016


Having trouble getting a dynamically linked executable working on
Mira/Cetus head nodes.  The executable _is_ working if I submit it to the
queue.

Compiling a static executable works both on the head node and on the
compute nodes.

Is there some special environment sauce I need that will enable me to run
these executables on the head node?  Obviously I don't want to run much on
the head node... but not even being able to test the executables without a
trip through the queue is problematic!  For instance... "configure" scripts
kind of rely on being able to compile/run simple test programs!

My .soft is:

+mpiwrapper-bgclang-mpi3.legacy.ndebug
@default

(Note: I have also tried essentially all the other bgclang options and they
all produce the same error).


I'm trying to compile a test.c:

int main()
{
  return 0;
}

My compile line is:

mpicc -o test -dynamic test.c


The error I'm seeing is:

$ ./test
ERROR: ld.so: object '/soft/buildtools/trackdeps/${LIB}/trackdeps.so' from
LD_PRELOAD cannot be preloaded: ignored.
/bgsys/source/srcV1R2M2.15270/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h:102:
/bgsys/source/srcV1R2M2.15270/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h<102>
Aborted (core dumped)


Getting a stack trace out of the core file gives:

(gdb) bt
#0  0x00000fff837fec40 in raise (sig=Unhandled dwarf expression opcode 0xf3
) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00000fff838008b8 in abort () at abort.c:90
#2  0x00000fff841a12b8 in PAMI::BgqJobPersonality::BgqJobPersonality
(this=<value optimized out>) at
/bgsys/source/srcV1R2M2.15270/comm/sys/buildtools/pami/common/bgq/BgqPersonality.h:102
#3  0x00000fff841aeff4 in PAMI::Global::Global (this=0xfff84316848) at
/bgsys/source/srcV1R2M2.15270/comm/sys/buildtools/pami/common/bgq/Global.h:110
#4  0x00000fff8419fa1c in __static_initialization_and_destruction_0 () at
/bgsys/source/srcV1R2M2.15270/comm/sys/buildtools/pami/common/bgq/BgqGlobal.cc:25
#5  global constructors keyed to BgqGlobal.cc(void) () at
/bgsys/source/srcV1R2M2.15270/comm/sys/buildtools/pami/common/bgq/BgqGlobal.cc:70
#6  0x00000fff841d2b6c in .__do_global_ctors_aux () from
/bgsys/drivers/V1R2M2/ppc64/comm/lib/libpami-gcc.so
#7  0x00000fff83f93cac in ._init () from
/bgsys/drivers/V1R2M2/ppc64/comm/lib/libpami-gcc.so
#8  0x00000fff8492493c in call_init (l=0xfff84a17138, argc=Unhandled dwarf
expression opcode 0xf3
) at dl-init.c:69
#9  call_init (l=0xfff84a17138, argc=Unhandled dwarf expression opcode 0xf3
) at dl-init.c:34
#10 0x00000fff84924acc in _dl_init (main_map=0xfff84a13610, argc=Unhandled
dwarf expression opcode 0xf3
) at dl-init.c:133
#11 0x00000fff849140bc in ._dl_start_user () from
/bgsys/drivers/V1R2M2/ppc64/gnu-linux-4.7.2/powerpc64-bgq-linux/lib/ld64.so.1


Thanks for any help!

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


More information about the llvm-bgq-discuss mailing list