[Users] cactus compilation problem
Babiuc-Hamilton, Maria
babiuc at marshall.edu
Fri May 30 08:47:45 CDT 2008
Hello,
The compilation problem in bigben was solved by Roberto Gomez, by changing the line:
RCS file: /cactusdevcvs/Cactus/lib/make/known-architectures/linux,v
retrieving revision 1.126
diff -r1.126 linux
345c345
< gcc | cc)
---
> gcc )
Now it works.
The only problem that I have is with the thorn SphericalSurface:
Checking status of thorn SphericalSurface
________________________________________________________________________
/opt/xt-pe/1.5.47/bin/snos64/CC: INFO: catamount target is being used
"/opt/xt-mpt/1.5.47/mpich2-64/P2/include/mpicxx.h", line 26: catastrophic error:
#error directive: "SEEK_SET is #defined but must not be for the C++
binding of MPI"
#error "SEEK_SET is #defined but must not be for the C++ binding of MPI"
^
1 catastrophic error detected in the compilation of "/usr/users/7/babiuc/Cactus/arrangements/AEIThorns/SphericalSurface/src/setup.cc".
Compilation terminated.
gmake[3]: *** [setup.cc.d] Error 2
gmake[2]: *** [make.checked] Error 2
gmake[1]: *** [/usr/users/7/babiuc/Cactus/configs/newstest/lib/libthorn_SphericalSurface.a] Error 2
gmake: *** [newstest] Error 2
Is there any easy fix for it?
About the compilation on mac, I did not find anywhere what library shall I add explicitly, using LDFLAGS?
There are 11 routines that contain __absoft_casgn in Absoft10.1/lib and 8 in Absoft10.1/lib64.
cheers,
Maria
________________________________________
From: users-bounces at cactuscode.org [users-bounces at cactuscode.org] On Behalf Of Erik Schnetter [schnetter at cct.lsu.edu]
Sent: Friday, May 23, 2008 8:18 AM
To: Cactus users mailing list
Subject: Re: [Users] cactus compilation problem on mac
On May 22, 2008, at 16:18:16, Babiuc-Hamilton, Maria wrote:
> Hello,
>
>
> I was able to compile the wavetoy, and I do not know exactly how it
> did finally work. My guess is that a modification in the file
> make.config.rules.in was for the better.
> Now, though, I cannot compile the thorn AEIThorns/Fortran, which is
> essential for my code. I checked both the absoft and intel fortran
> compilers with a simple fortran porgram and they work fine. The
> error is:
>
>
>> Creating cactus_nulltest in /Users/mariababiuc/Cactus/exe from
>> CactusEinstein/ADMBase AEIThorns/AEILocalInterp CactusBase/Boundary
>> CactusBase/CartGrid3D CactusBase/CoordBase AEIThorns/Fortran
>> CactusBase/IOASCII CactusBase/IOBasic CactusPUGHIO/IOHDF5
>> CactusPUGHIO/IOHDF5Util CactusBase/IOUtil CactusBase/LocalInterp
>> CactusBase/LocalReduce CactusBase/MoL CactusUtils/NaNChecker
>> CactusPUGH/PUGH CactusPUGH/PUGHInterp CactusPUGH/PUGHReduce
>> CactusPUGH/PUGHSlab CactusEinstein/SpaceMask CactusEinstein/
>> StaticConformal
>> CactusBase/SymBase CactusBase/Time datetime=`/bin/date
>> +'%Y-%m-%dT%H:%M:%S%z' 2>&1` ; \
>> if [ $? != 0 ]; then datetime=`/bin/date` ; fi ; \
>> gcc -O2 -DCCTK_COMPILE_DATETIME="$datetime" -c -o
>> "/Users/mariababiuc/Cactus/configs/nulltest/datestamp.o"
>> -I"/Users/mariababiuc/Cactus/src/include"
>> -I"/Users/mariababiuc/Cactus/configs/nulltest/config-data"
>> "/Users/mariababiuc/Cactus/src/datestamp.c" if [ ! -d
>> /Users/mariababiuc/Cactus/exe ]; then mkdir -p
>> /Users/mariababiuc/Cactus/exe ; fi g++ -o
>> "/Users/mariababiuc/Cactus/exe/cactus_nulltest" -O2
>> "/Users/mariababiuc/Cactus/configs/nulltest/datestamp.o"
>> -L/Users/mariababiuc/Cactus/configs/nulltest/lib -lthorn_Cactus
>> -lthorn_CactusBindings -lthorn_IOHDF5 -lthorn_IOHDF5Util -lthorn_MoL
>> -lthorn_NaNChecker -lthorn_PUGHReduce -lthorn_PUGHInterp -
>> lthorn_IOBasic
>> -lthorn_Time -lthorn_SymBase -lthorn_LocalReduce -lthorn_LocalInterp
>> -lthorn_Fortran -lthorn_Boundary -lthorn_AEILocalInterp -
>> lthorn_IOASCII
>> -lthorn_IOUtil -lthorn_StaticConformal -lthorn_ADMBase -
>> lthorn_PUGHSlab
>> -lthorn_PUGH -lthorn_SpaceMask -lthorn_CartGrid3D -lthorn_CoordBase
>> -lthorn_Cactus -lthorn_CactusBindings -L/usr/local/hdf5/lib -lhdf5 -
>> lz -lm
>> -lm /usr/bin/ld: Undefined symbols:
>> __absoft_casgn
>> collect2: ld returned 1 exit status
>> make[1]: *** [/Users/mariababiuc/Cactus/exe/cactus_nulltest] Error 1
> ________________________________________
>
> Any ideas?
The routine absoft_casgn is not found. It is probably defined in one
of Absoft's libraries. You need to find out which library this is,
and add this library explicitly, probably using LDFLAGS. For example,
I use the setting
LDFLAGS = -lgfortran
for gcc43 on my system.
The Unix command "nm" lists the routines which are defined in a library.
-erik
--
Erik Schnetter <schnetter at cct.lsu.edu> http://www.cct.lsu.edu/~eschnett/
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from www.keyserver.net.
More information about the Users
mailing list