This thread is locked.Only browsing is available.
Top Page > Browsing
A compilation problem of OpenMx 3.4.4 in Centos5.3
Date: 2009/08/24 16:48
Name: wangdb   <wdaobin@yahoo.com>

Dear Professor:

I am trying to install OpenMx 3.4.4 on my laptop with an AMD Turion 64 dual core processor. The OS is Centos5 UPDATE3.
As shown in the following, the CC and LIB lines in the makefile have been configured.
-----------------------------------------------------------------------------------------
CC = gcc -O3 -Dfftw2 -Dnompi -Dnoomp -I/usr/local/include -I/home/wangdb/include
LIB = -L/usr/local/lib -fftw -llapack -lblas -lg2c &#8211;static
-----------------------------------------------------------------------------------------
After ‘make install’, I get the following error message:
----------------------------------------------------------------------------------------
/usr/bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
make: *** [openmx] Error 1
----------------------------------------------------------------------------------------
The package compat-libf2c-34 has been installed.
Any help to solve this installation problem will be highly appreciated.

Thank you!

wangdb
メンテ
Page: [1]

Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.1 )
Date: 2009/08/24 16:50
Name: wangdb  <wdaobin@yahoo.com>

The CC and LIB lines is:
-----------------------------------------------------------------------------------------
CC = gcc -O3 -Dfftw2 -Dnompi -Dnoomp -I/usr/local/include -I/home/wangdb/include
LIB = -L/usr/local/lib -fftw -llapack -lblas -lg2c -static
-----------------------------------------------------------------------------------------
メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.2 )
Date: 2009/08/28 00:44
Name: Phil

try with '-lgfortran' in place of '-lg2c'.
メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.3 )
Date: 2009/08/28 10:40
Name: wangdb  <wdaobin@yahoo.com>

I have tried with '-lgfortran' in place of '-lg2c', but I get the following message:
Poisson.o: In function `FFT_Poisson':
Poisson.c:(.text+0x80): undefined reference to `fftw_create_plan'
Poisson.c:(.text+0x11f): undefined reference to `fftw_one'
Poisson.c:(.text+0x1af): undefined reference to `fftw_destroy_plan'
Poisson.c:(.text+0x1c0): undefined reference to `fftw_create_plan'
Poisson.c:(.text+0x257): undefined reference to `fftw_one'
Poisson.c:(.text+0x2e5): undefined reference to `fftw_destroy_plan'
Poisson.c:(.text+0x744): undefined reference to `fftw_create_plan'
Poisson.c:(.text+0x7d8): undefined reference to `fftw_one'
Poisson.c:(.text+0x85c): undefined reference to `fftw_destroy_plan'
Poisson.c:(.text+0x8e0): undefined reference to `fftw_one'
Poisson.c:(.text+0x926): undefined reference to `fftw_one'
Poisson.c:(.text+0x94f): undefined reference to `fftw_one'
Poisson.c:(.text+0xc88): undefined reference to `fftw_destroy_plan'
Poisson.c:(.text+0xc99): undefined reference to `fftw_create_plan'
TRAN_FFT_interpolation3c.o: In function `zfft1':
/home/wangdb/openmx3.4/source/TRAN_FFT_interpolation3c.c:117: undefined reference to `fftw_create_plan'
/home/wangdb/openmx3.4/source/TRAN_FFT_interpolation3c.c:118: undefined reference to `fftw_one'
/home/wangdb/openmx3.4/source/TRAN_FFT_interpolation3c.c:154: undefined reference to `fftw_destroy_plan'
TRAN_Set_Electrode_Grid.o: In function `TRAN_FFT_Electrode_Grid':
/home/wangdb/openmx3.4/source/TRAN_Set_Electrode_Grid.c:486: undefined reference to `fftw2d_create_plan'
/home/wangdb/openmx3.4/source/TRAN_Set_Electrode_Grid.c:518: undefined reference to `fftwnd_one'
/home/wangdb/openmx3.4/source/TRAN_Set_Electrode_Grid.c:571: undefined reference to `fftwnd_one'
/home/wangdb/openmx3.4/source/TRAN_Set_Electrode_Grid.c:602: undefined reference to `fftwnd_destroy_plan'
TRAN_Poisson.o: In function `TRAN_Poisson':
/home/wangdb/openmx3.4/source/TRAN_Poisson.c:191: undefined reference to `fftw_create_plan'
/home/wangdb/openmx3.4/source/TRAN_Poisson.c:218: undefined reference to `fftw_one'
/home/wangdb/openmx3.4/source/TRAN_Poisson.c:237: undefined reference to `fftw_destroy_plan'
/home/wangdb/openmx3.4/source/TRAN_Poisson.c:351: undefined reference to `fftw_create_plan'
/home/wangdb/openmx3.4/source/TRAN_Poisson.c:382: undefined reference to `fftw_one'
/home/wangdb/openmx3.4/source/TRAN_Poisson.c:408: undefined reference to `fftw_destroy_plan'
collect2: ld returned 1 exit status
make: *** [openmx] Error 1
メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.4 )
Date: 2009/08/29 06:33
Name: Phil

That's some progress. Are the fftw-2 libraries under /usr/local/lib?
メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.5 )
Date: 2009/08/30 10:43
Name: wangdb  <wdaobin@yahoo.com>

The fftw2 libraries aren't under /usr/local/lib! They are under the following directory:

/usr/lib64/libfftw.so.2
/usr/lib64/libfftw.so.2.0.7
/usr/lib64/libfftw_threads.so.2
/usr/lib64/libfftw_threads.so.2.0.7
/usr/lib64/librfftw.so.2
/usr/lib64/librfftw.so.2.0.7
/usr/lib64/librfftw_threads.so.2
/usr/lib64/librfftw_threads.so.2.0.7
/usr/lib64/libsfftw.so.2
/usr/lib64/libsfftw.so.2.0.7
/usr/lib64/libsfftw_threads.so.2
/usr/lib64/libsfftw_threads.so.2.0.7
/usr/lib64/libsrfftw.so.2
/usr/lib64/libsrfftw.so.2.0.7
/usr/lib64/libsrfftw_threads.so.2
/usr/lib64/libsrfftw_threads.so.2.0.7
/usr/share/doc/fftw2-2.1.5
/usr/share/doc/fftw2-2.1.5/AUTHORS
/usr/share/doc/fftw2-2.1.5/COPYING
/usr/share/doc/fftw2-2.1.5/COPYRIGHT
/usr/share/doc/fftw2-2.1.5/ChangeLog
/usr/share/doc/fftw2-2.1.5/NEWS
/usr/share/doc/fftw2-2.1.5/README
/usr/share/doc/fftw2-2.1.5/README.hacks
/usr/share/doc/fftw2-2.1.5/TODO




メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.6 )
Date: 2009/08/30 18:18
Name: javan  <ma_be750@stu-mail.um.ac.ir>

try fftw3
and use
LIB = -L/usr/local/lib -fftw3 -llapack -lblas -lg2c -static
メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.7 )
Date: 2009/08/30 18:24
Name: javan  <ma_be750@stu-mail.um.ac.ir>

if you have any problem try:
LIB = -L/usr/local/lib -fftw3 -llapack -lblas -lgfortarn -lpthread -static
メンテ
Re: A compilation problem of OpenMx 3.4.4 in Centos5.3 ( No.8 )
Date: 2009/09/01 02:38
Name: Phil

You need the statically linked fftw libraries. Download them from the web and compile it.
Your "LIB" variable should have the location of the libraries, for example:

LIB = -/usr/local/lib -L/path/to/fftw -fftw3 etc.....
メンテ

Page: [1]