6 Replies Latest reply on Feb 10, 2011 10:12 AM by bamarker

    Build a statically-linked Elemental


      Hi all,


      I am trying to build a statically-linked Elemental in rcce_application. The compilation option is -i-static which cannot make the binary as a statically-linked one. I tried to change -i-static to -static but there is an error as follows:


      /opt/i386-unknown-linux-gnu/i386-unknown-linux-gnu/lib/libc.a(strtol.o)(.text+0x31): In function `strtol':
      : multiple definition of `strtol'
      /opt/icc-8.1.038/lib/libcprts.a(strtol.o)(.text+0xea): first defined here
      ld: Warning: size of symbol `strtol' changed from 24 in /opt/icc-8.1.038/lib/libcprts.a(strtol.o) to 48 in /opt/icc-8.1.038/lib/libcprts.a(strtol.o)
      make: *** [bin/pure/release/DistMatrix] Error 1


      It seems there is a conflict between libc.a and libcprts.a. Does anyone have any ideas to solve this problem?