This thread is locked.Only browsing is available.
Top Page > Browsing
Compilation problem
Date: 2005/10/28 17:37
Name: Pavel B Sorokin

Hi, all!

I have a problem with OpenMX compilation on Linux PPC64 2.6.5-7.201-pseries64
After successful compilation of Clapack, FFTW-3.0.1 libraries and serial version of OpenMX 2.3 with gcc I tried to compile parallel version of OpenMX, but I got that error when the program linked the files:


Cutoff.o setup_CPU_group.o Maketest.o Runtest.o -L/nethome/psorokin/lib -fftw3 /nethome/psorokin/lib/lapack_LINUX.a /nethome/psorokin/lib/blas_LINUX.a -lg2c -static -lm -o openmx
Poisson.o(.text+0xc0): In function `.FFT_Poisson':
: undefined reference to `.fftw_malloc'
Poisson.o(.text+0xd4): In function `.FFT_Poisson':
: undefined reference to `.fftw_malloc'
Poisson.o(.text+0xf4): In function `.FFT_Poisson':
: undefined reference to `.fftw_plan_dft_1d'
Poisson.o(.text+0x19c): In function `.FFT_Poisson':
: undefined reference to `.fftw_execute'
Poisson.o(.text+0x244): In function `.FFT_Poisson':
: undefined reference to `.fftw_destroy_plan'
Poisson.o(.text+0x260): In function `.FFT_Poisson':
: undefined reference to `.fftw_plan_dft_1d'
Poisson.o(.text+0x304): In function `.FFT_Poisson':
: undefined reference to `.fftw_execute'
Poisson.o(.text+0x3ac): In function `.FFT_Poisson':
: undefined reference to `.fftw_destroy_plan'
Poisson.o(.text+0xaf0): In function `.FFT_Poisson':
: undefined reference to `.fftw_plan_dft_1d'
Poisson.o(.text+0xba0): In function `.FFT_Poisson':
: undefined reference to `.fftw_execute'
Poisson.o(.text+0xc4c): In function `.FFT_Poisson':
: undefined reference to `.fftw_destroy_plan'
Poisson.o(.text+0xc58): In function `.FFT_Poisson':
: undefined reference to `.fftw_free'
Poisson.o(.text+0xc64): In function `.FFT_Poisson':
: undefined reference to `.fftw_free'
RecursionS_C.o(.text+0x3050): In function `.B_Lanczos':
: undefined reference to `.dgesvd_'
RecursionS_C.o(.text+0x7848): In function `.RecursionS_C':
: undefined reference to `.dsbev_'
lapack_dstedc1.o(.text+0xe4): In function `.lapack_dstedc1':
: undefined reference to `.dstedc_'
lapack_dstedc2.o(.text+0xe4): In function `.lapack_dstedc2':
: undefined reference to `.dstedc_'
lapack_dstegr1.o(.text+0x138): In function `.lapack_dstegr1':
: undefined reference to `.dstegr_'
lapack_dstegr2.o(.text+0x138): In function `.lapack_dstegr2':
: undefined reference to `.dstegr_'
lapack_dstevx1.o(.text+0x11c): In function `.lapack_dstevx1':
: undefined reference to `.dstevx_'
lapack_dstevx2.o(.text+0x11c): In function `.lapack_dstevx2':
: undefined reference to `.dstevx_'
IS_LU.o(.text+0x568): In function `.IS_LU':
: undefined reference to `.dgetrf_'
IS_LU.o(.text+0x5a8): In function `.IS_LU':
: undefined reference to `.dgetri_'
MD_pac.o(.text+0x1c60): In function `.Geometry_Opt_DIIS1':
: undefined reference to `.dsysv_'
MD_pac.o(.text+0x2b9c): In function `.Geometry_Opt_DIIS2':
: undefined reference to `.dsysv_'
collect2: ld returned 1 exit status
make: *** [openmx] Error 1

Makefile:
CC = mpicc -O3 -I/nethome/psorokin/lib -Dfftw3
LIB = -L/nethome/psorokin/lib -fftw3 $(HOME)/lib/lapack_LINUX.a $(HOME)/lib/blas_LINUX.a -lg2c –static

Please, help!
メンテ
Page: [1]

Re: Compilation problem ( No.1 )
Date: 2005/10/29 13:39
Name: T.Ozaki

Hi,

Since FFTW3 is default, "-Dfftw3" is invalid.
Also, "-fftw3" seems to be "-lfftw3".

In addition, your log shows that you failed to link
lapack routines.
Do you really have "libg2c.a" ?

Regards,

T.Ozaki

メンテ

Page: [1]