LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2015, 01:20 PM   #1
cgnick26
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Rep: Reputation: Disabled
Compiling Xoopic make error fftw libraries


I cannot seem to find anything regarding drfftw.h on redhat. I believe it is causing tremendous amounts of errors simply because it is not there. Xoopic is a software from PTSG's website.

bash-4.1$ make
make all-recursive
make[1]: Entering directory `/home/helios/a/mlovele/Documents/xoopic'
Making all in otools
make[2]: Entering directory `/home/helios/a/mlovele/Documents/xoopic/otools'
g++ -DHAVE_CONFIG_H -I. -I../. -I../advisor -I../physics -I../otools -I../otools -I../config -I/home/helios/a/mlovele/Documents/Test/include -I//home/helios/a/mlovele/Documents/Test/include -I/usr/local/include -Wall -Wno-unused -g -O2 -pipe -g -O2 -pipe -DUNIX -DSCALAR_DOUBLE -c -o psdFieldDiag1d.o psdFieldDiag1d.cpp
In file included from psdFieldDiag1d.h:27,
from psdFieldDiag1d.cpp:7:
wrapFFTW.h:26:20: error: drfftw.h: No such file or directory
In file included from psdFieldDiag1d.h:27,
from psdFieldDiag1d.cpp:7:
wrapFFTW.h:87: error: ‘fftwnd_plan’ does not name a type
wrapFFTW.h:88: error: ‘rfftw_plan’ does not name a type
wrapFFTW.h:89: error: ‘rfftwnd_plan’ does not name a type
wrapFFTW.h:93: error: ISO C++ forbids declaration of ‘fftw_real’ with no type
wrapFFTW.h:93: error: expected ‘;’ before ‘*’ token
wrapFFTW.h:94: error: ISO C++ forbids declaration of ‘fftw_real’ with no type
wrapFFTW.h:94: error: expected ‘;’ before ‘*’ token
wrapFFTW.h: In member function ‘virtual void WrapFFTW::r1d_fft(double*, double*)’:
wrapFFTW.h:70: error: ‘p1Dr’ was not declared in this scope
wrapFFTW.h:70: error: ‘rfftw_one’ was not declared in this scope
make[2]: *** [psdFieldDiag1d.o] Error 1
make[2]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic/otools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic'
make: *** [all] Error 2
 
Old 09-19-2015, 11:32 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
If I remember correctly (and I may not), the dfftw.h and sfftw.h files are created when the --enable-type-prefix switch is passed to the configure script for FFTW. This is also only applicable to FFTW version 2. You probably have FFTW version 3 installed or version 2 that was built without the --enable-type-prefix switch. The solution is to install FFTW version 2 (2.1.5 is the latest) and pass the --enable-type-prefix switch to the configure scri+pt.
 
1 members found this post helpful.
Old 09-19-2015, 12:48 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
... Also ref. your other thread with PTSG software ....
http://www.linuxquestions.org/questi...or-4175553881/

Please specify RHEL version : What's the reply from these two commands :
Code:
$ uname -a
$ cat /etc/redhat-release
-

Last edited by knudfl; 09-19-2015 at 01:05 PM.
 
Old 09-19-2015, 01:34 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #1, #2.

``fftw2-devel'' is in the EPEL.repo https://fedoraproject.org/wiki/EPEL ,
.... and works perfectly with xoopic-2.70.2 .( RHEL/CentOS 6.7 ).

# yum install fftw2-devel

-
 
1 members found this post helpful.
Old 09-21-2015, 12:04 PM   #5
cgnick26
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
bash-4.1$ cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)
bash-4.1$ uname -a
Linux nucl120lnx01.ecn.purdue.edu 2.6.32-573.1.1.el6.x86_64 #1 SMP Tue Jul 14 02:46:51 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

That seems to be the common fix to the problem. I do not have root permissions on the computer I am using but I will try and install it to a local directory in hopes of that solving it.
 
Old 09-21-2015, 01:18 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5.

The easy solution is to unpack the #4 refereed EL6.7 packages fftw2 + fftw2-devel.
And then copy the lib64/, include/ directories to /home/helios/(( lib, include )).

The packages :
fftw2 https://dl.fedoraproject.org/pub/epe...el6.x86_64.rpm
fftw2-devel https://dl.fedoraproject.org/pub/epe...el6.x86_64.rpm

Unpacking : $ sh unPack_rpm.sh fftw2-2.1.5-21.el6.x86_64.rpm
And : $ sh unPack_rpm.sh fftw2-devel-2.1.5-21.el6.x86_64.rpm
( The 530B script (by @unSpawn) unPack_rpm.sh is attached.
-
Attached Files
File Type: txt unPack_rpm.sh.txt (530 Bytes, 27 views)
 
Old 09-24-2015, 01:17 PM   #7
cgnick26
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have successfully gotten past the fftw errors but I have come accross another error involving C++. This is still in the make part.

make CPPFLAGS="-DH5_USE_16_API"make all-recursive
make[1]: Entering directory `/home/helios/a/mlovele/Documents/xoopic'
Making all in otools
make[2]: Entering directory `/home/helios/a/mlovele/Documents/xoopic/otools'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic/otools'
Making all in physics
make[2]: Entering directory `/home/helios/a/mlovele/Documents/xoopic/physics'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic/physics'
Making all in advisor
make[2]: Entering directory `/home/helios/a/mlovele/Documents/xoopic/advisor'
g++ -DHAVE_CONFIG_H -I. -I../. -I../physics -I../otools -I../otools -I../config -I/home/helios/a/mlovele/Documents/Test/include -I//home/helios/a/mlovele/Documents/Test/fftw2/include -I/usr/local/include -DH5_USE_16_API -Wall -Wno-unused -g -O2 -pipe -g -O2 -pipe -DUNIX -DSCALAR_DOUBLE -c -o spatialg.o spatialg.cpp
spatialg.cpp: In member function ‘SpatialRegion* SpatialRegionGroup::CreateCounterPart()’:
spatialg.cpp:236: error: ‘class ControlParams’ has no member named ‘getMPIpartition’
make[2]: *** [spatialg.o] Error 1
make[2]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic/advisor'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/helios/a/mlovele/Documents/xoopic'
make: *** [all] Error 2
 
Old 09-25-2015, 08:53 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #7.

Are you sure that `xoopic-2.70.2' is used ? As the above shows, I had no issues.

http://ptsg.egr.msu.edu/ >> http://ptsg.egr.msu.edu/pub/codes/xo...-2.70.2.tar.gz



-
 
Old 09-25-2015, 01:02 PM   #9
cgnick26
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes I just verified that it is indeed 2.70.2
 
Old 09-25-2015, 02:26 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #9.

OK. Which version of fftw2 are you using ?


About the `spatialg.cpp' issue :
Please try downloading xoopic-2.70.2.tar.gz again.
And start from scratch with 1) $ tar xvf xoopic-2.70.2.tar.gz
2) $ cd xoopic-2.70.2/ && sh run_conf.sh


-
 
Old 09-26-2015, 03:41 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #9.

Another question : Which gcc, g++ are you using ?
1) $ gcc --version | grep gcc
2) $ g++ --version | grep g++


`xoopic' : You can also try using my result from CentOS 6.7 - x86_64,
Xoopic-bin-2.70.2-1el6-x86_64.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... You can test the executable 'xoopic' with : $ ./xoopic | less

My configure line ( mpi failed, so no MPI is configured ) :
$ sh run_conf.sh --with-XGRAFIX-include=/usr/local/include/ --prefix=/home/knudfl/1-download/xoopic/Xoopic/ --with-sfftw-incdir=/usr/include/ --with-dfftw-incdir=/usr/include/ --with-sfftw-libdir=/usr/lib64/ --with-hdf5-incdir=/usr/include/ --with-hdf5-libdir=/usr/lib64 2>&1 | tee configure-log.txt


-
 
Old 09-29-2015, 02:14 PM   #12
cgnick26
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
I tried downloading xoopic again and it ran into the same issue.

gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)

I am using the most recent version of fftw2
 
Old 09-30-2015, 01:45 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #12.

Please read post #6 : Better use the system version, fftw2-2.1.5-21.
And no reason to build any fftw2.
Use the system files, fftw2-2.1.5-21.el6 + fftw2-devel-2.1.5-21.el6.


And no reason to build any xoopic :
Download ``Xoopic-bin-2.70.2-1el6-x86_64.tar.gz''. See post #11.


-
 
  


Reply

Tags
xoopic



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CLFS 10.89 Kmod-18 32 Bit Libraries 'make' error Xenanthropy Linux From Scratch 4 03-29-2015 02:18 PM
Error compiling a program with boost libraries -> strerror_r iteam Linux - General 3 06-29-2011 07:20 AM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - Newbie 0 12-11-2007 06:49 AM
error in make menuconfig: ncurses libraries ashlesha Linux - General 3 07-09-2006 06:59 PM
Error after urpmi: how do I make libraries compatible? KWTm Mandriva 5 07-10-2005 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration