This thread is locked.Only browsing is available.
Top Page > Browsing
LAM/MPI compilation error
Date: 2006/04/05 12:56
Name: Jeason   <biomedphy@gmail.com>

Hi,

Could you help me to imply my proble.

I compile with LAM/MPI 7.1.1, with makefile:
CC =/opt/lam-7.1.1/gnu/bin/mpicc -O2 -m64 -march=opteron -mcpu=opteron -I/nfs/fs/users/g30/lib/include \
-I/nfs/fs/users/g30/opt/acml300/gnu64/include
LIB =-L/nfs/fs/users/g30/lib/lib/ -lfftw3 \
-L/nfs/fs/users/g30/opt/acml300/gnu64/lib -lacml -lacml_mv \
-L/usr/lib64 -lg2c -static


Then, at the linking setp, the error show as follw:
/usr/lib64/liblam.a(ltdl.o)(.text+0x46a): In function `sys_dl_open':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/liblam.a(kill.o)(.text+0x545): In function `lam_tmpdir_init_opt':
: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/liblam.a(lam_gethostby.o)(.text+0x11): In function `lam_gethostbyaddr':
: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/liblam.a(lam_gethostby.o)(.text+0x1): In function `lam_gethostbyname':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libc.a(malloc.o)(.text+0x1880): In function `free':
: multiple definition of `free'
/usr/lib64/libmpi.a(malloc.o)(.text+0x3270): first defined here
/usr/bin/ld: Warning: size of symbol `free' changed from 167 in /usr/lib64/libmpi.a(malloc.o) to 255 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x38d0): In function `malloc':
: multiple definition of `malloc'
/usr/lib64/libmpi.a(malloc.o)(.text+0x2a60): first defined here
/usr/bin/ld: Warning: size of symbol `malloc' changed from 298 in /usr/lib64/libmpi.a(malloc.o) to 461 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x3fb0): In function `realloc':
: multiple definition of `realloc'
/usr/lib64/libmpi.a(malloc.o)(.text+0x3320): first defined here
/usr/bin/ld: Warning: size of symbol `realloc' changed from 401 in /usr/lib64/libmpi.a(malloc.o) to 783 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x4c0): In function `_int_new_arena':
: multiple definition of `_int_new_arena'
/usr/lib64/libmpi.a(malloc.o)(.text+0x490): first defined here
/usr/bin/ld: Warning: size of symbol `_int_new_arena' changed from 177 in /usr/lib64/libmpi.a(malloc.o) to 224 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0xff0): In function `_int_free':
: multiple definition of `_int_free'
/usr/lib64/libmpi.a(malloc.o)(.text+0x13f0): first defined here
/usr/bin/ld: Warning: size of symbol `_int_free' changed from 859 in /usr/lib64/libmpi.a(malloc.o) to 1897 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x1980): In function `_int_malloc':
: multiple definition of `_int_malloc'
/usr/lib64/libmpi.a(malloc.o)(.text+0x1840): first defined here
/usr/bin/ld: Warning: size of symbol `_int_malloc' changed from 2871 in /usr/lib64/libmpi.a(malloc.o) to 3548 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x2840): In function `_int_memalign':
: multiple definition of `_int_memalign'
/usr/lib64/libmpi.a(malloc.o)(.text+0x23f0): first defined here
/usr/bin/ld: Warning: size of symbol `_int_memalign' changed from 517 in /usr/lib64/libmpi.a(malloc.o) to 524 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x2a50): In function `_int_valloc':
: multiple definition of `_int_valloc'
/usr/lib64/libmpi.a(malloc.o)(.text+0x3510): first defined here
/usr/lib64/libc.a(malloc.o)(.text+0x2c10): In function `_int_realloc':
: multiple definition of `_int_realloc'
/usr/lib64/libmpi.a(malloc.o)(.text+0x26f0): first defined here
/usr/bin/ld: Warning: size of symbol `_int_realloc' changed from 870 in /usr/lib64/libmpi.a(malloc.o) to 1273 in /usr/lib64/libc.a(malloc.o)
/usr/lib64/libc.a(malloc.o)(.text+0x42c0): In function `__malloc_check_init':
: multiple definition of `__malloc_check_init'
/usr/lib64/libmpi.a(malloc.o)(.text+0x660): first defined here
/usr/bin/ld: Warning: size of symbol `__malloc_check_init' changed from 144 in /usr/lib64/libmpi.a(malloc.o) to 164 in /usr/lib64/libc.a(malloc.o)
collect2: ld returned 1 exit status
/opt/lam-7.1.1/gnu/bin/mpicc: No such file or directory
make: *** [openmx] Error 1


I don't know how to deal with it.


Thanks is advance
メンテ
Page: [1]

Re: LAM/MPI compilation error ( No.1 )
Date: 2006/04/06 11:47
Name: T.Ozaki

Hi,

What happens if '-static' is removed
and what is libacml_mv.a ?

Regards,

TO
メンテ

Page: [1]