This thread is locked.Only browsing is available.
Top Page > Browsing
Library error for install openmx ..
Date: 2006/12/14 18:16
Name: Liger Chen   <b89202066@ntu.edu.tw>


Dear Sir :

there is my linking library:

mpicc = /opt/mpipgi/bin/mpicc
CC = $(mpicc) -O3 -I/opt/pgi/linux86-64/6.1/include -I/usr/include/ -I/opt/fftw3/include
LIB = -L/opt/fftw3/lib -lfftw3 -L/opt/pgi/linux86-64/6.1/lib/ -llapack
-lblas -L/usr/lib/ -lg2c



I tried to complied the openmx in new cluster , but there are some error :
what should I do now ? thank your help ....




/usr/bin/ld: skipping incompatible /usr/lib//libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib//libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib//libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib//libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib//librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib//librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib//libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib//libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib//libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib//libc.a when searching for -lc
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dgesvd.o)(.text+0xdf): In function `dgesvd_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dormbr.o)(.text+0x365): In function `dormbr_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dormbr.o)(.text+0x3fd): In function `dormbr_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dormbr.o)(.text+0x49e): In function `dormbr_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dormbr.o)(.text+0x52d): In function `dormbr_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dormlq.o)(.text+0x2cf): more undefined
references to `ftn_str_copy' follow
/opt/pgi/linux86-64/6.1/lib//liblapack.a(dlamch.o)(.text+0xb43): In function `dlamc2_':

lots massage silimiar above ..




メンテ
Page: [1]

Re: Library error for install openmx .. ( No.1 )
Date: 2006/12/17 05:17
Name: Pavel  <PBSorokin@gmail.com>

Hello!

I'm not sure but...try to remove last slash from paths in CC and LIB

Sincerely yours,
Pavel Sorokin
メンテ
Re: Library error for install openmx .. ( No.2 )
Date: 2006/12/17 05:32
Name: jessK


Hi,

The nature of these errors is obvious - linking of mixed 32-bit/64-bit objects. You should link with libg2c in /usr/lib64 directory.

jk
メンテ
Re: Library error for install openmx .. ( No.3 )
Date: 2006/12/20 08:57
Name: Liger Chen  <b89202066@ntu.edu.tw>


Hi :

thank you two.

I have changed that be ( use dafault library) :

mpicc = /opt/mpipgi/bin/mpicc
CC = $(mpicc) -I/opt/fftw3/include
LIB = -L/opt/fftw3/lib -lfftw3 -llapack -lblas -lg2c

the compile was not paused yet ...what should I do now, thank you again .
those looks like the lapack error , but I dont know what make that error ....


there are:

/opt/pgi/linux86-64/6.1/lib/liblapack.a(dgesvd.o)(.text+0xdf): In function `dgesvd_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(dormbr.o)(.text+0x365): In function `dormbr_':
: undefined reference to `ftn_str_copy'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(dormbr.o)(.text+0x3fd): In function `dormbr_':
: undefined reference to `ftn_str_copy'

/opt/pgi/linux86-64/6.1/lib/liblapack.a(dlamch.o)(.text+0xb56): In function `dlamc2_':
: undefined reference to `fio_fmtw_init'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(dlamch.o)(.text+0xb6d): In function `dlamc2_':
: undefined reference to `fio_sc_fmt_write'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(dlamch.o)(.text+0xb72): In function `dlamc2_':
: undefined reference to `fio_fmtw_end'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(zlanhe.o)(.text+0x1b0): In function `zlanhe_':
: undefined reference to `__mth_i_cdabs'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(zlanhe.o)(.text+0x1d1): In function `zlanhe_':
: undefined reference to `__mth_i_cdabs'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(zlanhe.o)(.text+0x1f2): In function `zlanhe_':
: undefined reference to `__mth_i_cdabs'
/opt/pgi/linux86-64/6.1/lib/liblapack.a(zlanhe.o)(.text+0x213): In function `zlanhe_':
: undefined reference to `__mth_i_cdabs'


メンテ
Re: Library error for install openmx .. ( No.4 )
Date: 2006/12/20 09:45
Name: jessK


I think you have to load some libraries in /opt/pgi/linux86-64/6.1/lib/ . You can grep to find which one is needed. Another way, more appropriate way (because it is a really BAD idea to use lapack/blas from pgi distribution) is to use acml library, which is free and contains much efficient lapack/blas.

jk
メンテ
Re: Library error for install openmx .. ( No.5 )
Date: 2007/07/12 05:26
Name: Jonathan  <Jon4389274@aol.com>

Partial solution:

The likely problem is that it is trying to install as 32 bit (g++ -m32 ...). I am stuck on this problem myself. Apparently, you need the 32 bit libraries (for your 64 bit machine), although I do not know where to get them. The RPM package should be libc-dev-i386 or something simmilar, but I have not been able to find it. If you have /usr/lib32 on your machine, this is probably already installed, and may not be your problem. If anyone knows where to locate this package, please post a reply! Thanks.
メンテ

Page: [1]