[Users] Compiling Cactus with PETSc
#NGUYEN CONG TRI#
NGUY0045 at ntu.edu.sg
Sat Apr 12 13:30:24 CDT 2008
Dear all,
I don't know whether it is appropriate to raise this question here. I want to compile Cactus together with MPI (LAM) and PETSc and I've got problem when linking with the PETSc fortran interface library. I received the error like this:
/usr/bin/ld: cannot find -lpetscfortran
collect2: ld returned 1 exit status
gmake[1]: *** [/home/tri/CACTUS/Cactus/exe/cactus_singlepillar] Error 1
gmake: *** [hello] Error 2
I'm using the newest version of PETSc 2.3.3. I couldn't figure a way to fix this although I tried the solution suggested from PETSc troubleshooting guides by executing command >make BOPT=g fortran (which is confusing to me as in why there is a space in between and it didn't work).
As for the compilers, I used:
CC = gcc
CXX = c++
F90 = ifort
F77 = ifort
CPP = /lib/cpp
FPP = /lib/cpp
LD = c++
AR = ar
RANLIB = ranlib
PERL = perl
Does anyone know how can I fix this problem, I really appreciate your help.
Best regards,
Tri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cactuscode.org/pipermail/users/attachments/20080413/42c29ecb/attachment-0001.html
More information about the Users
mailing list