[Users] cactus compilation problem on mac

Erik Schnetter schnetter at cct.lsu.edu
Fri May 23 07:18:19 CDT 2008


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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://www.cactuscode.org/pipermail/users/attachments/20080523/20994696/attachment.bin 


More information about the Users mailing list