Subject: | |
From: | |
Reply To: | |
Date: | Fri, 12 Apr 2013 11:39:13 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Dear experts,
on the scientific linux server (Linux login 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 11:16:02 CDT 2012 x86_64 x86_64 x86_64 GNU/Linux; Scientific Linux release 6.3 (Carbon)
I am trying to compile/link statically OpenMPI 1.6.4 with Intel compilers, getting this error below.
Elementary test program
int main(int argc, char **argv)
{
return 0;
}
gcc -static -Wl,--export-dynamic test.c
gives the same kind of error
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie
collect2: ld returned 1 exit status
icc -static -Wl,--export-dynamic test.c
ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie
Upon searching the net I found that this problem is related to package 'binutils', on my Debian/Ubuntu the solution is in installing the "binutils-gold" package.
Please do you have clue about package name for this scientific linux ?
Yours, Miro
--------------------------
/home/milias/bin/openmpi_intel_static/openmpi-1.6.4/opal/util/if.c:1042: warning: Using 'gethostbyname' in statically linked applications requir es at runtime the shared libraries from the glibc version used for linking
../../../opal/.libs/libopen-pal.a(dlopen.o): In function `vm_open':
/home/milias/bin/openmpi_intel_static/openmpi-1.6.4/opal/libltdl/loaders/dlopen.c:194: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libc.a(strcmp.o)' c an not be used when making an executable; recompile with -fPIE and relink with -pie
make[2]: *** [opal_wrapper] Error 1
make[2]: Leaving directory `/home/milias/bin/openmpi_intel_static/openmpi-1.6.4/opal/tools/wrappers'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/milias/bin/openmpi_intel_static/openmpi-1.6.4/opal'
make: *** [install-recursive] Error 1
Miro
|
|
|