Hi,
I've built LAM on OSX10.4 with the GNU compilers and the PBSPro tm boot
mechanism. It worked fine, and I've compiled and run a few of my c++ MPI
codes without a hitch. But now I am trying to build a big application,
petsc-2.3.0, and am having a lot of trouble which I interpret to be link
errors. I wonder if anyone has had success with this or has a comment?
The version details are:
PBSPro version ?
OSX 10.4 (gcc 4.0.1)
PETSc 2.3.0
lam-7.1.1, or
lam-7.1.2b31 (both these versions of lam produce the same errors)
With LAMHOME=/usr/local/lam-7.1.2b31, the offending command and its errors
(from the petsc configure.log file) are appended below. To its credit, the
petsc configurator is doing its very best to find the libraries properly.
Does anybody have any pointers or have a successful build story?
I know your probably all quite busy with SIAM coming up, but any comments or
help would be greatly appreciated,
Thanks,
Sean Dettrick
offending command/error output:
sh: /usr/local/lam-7.1.2b31/bin/mpicc -o conftest -Wall -g3 conftest.o
-L/usr/local/lam-7.1.2b31/lib -L/usr/local/lam-7.1.2b31/lib -llammpi++
-L/usr/local/lam-7.1.2b31/lib -L/usr/local/lam-7.1.2b31/lib -lmpi
-L/usr/local/lam-7.1.2b31/lib -L/usr/local/lam-7.1.2b31/lib -llam
Executing: /usr/local/lam-7.1.2b31/bin/mpicc -o conftest -Wall -g3
conftest.o -L/usr/local/lam-7.1.2b31/lib -L/usr/local/lam-7.1.2b31/lib
-llammpi++ -L/usr/local/lam-7.1.2b31/lib -L/usr/local/lam-7.1.2b31/lib -lmpi
-L/usr/local/lam-7.1.2b31/lib -L/usr/local/lam-7.1.2b31/lib -llam
sh:
Possible ERROR while running linker: /usr/bin/ld: Undefined symbols:
_lam_mpi_comm_world
_lam_myproc
_lam_mpi_2dblprec
_lam_mpi_2int
_lam_mpi_2integer
_lam_mpi_2real
_lam_mpi_byte
etc etc
_lam_mpi_unsigned_long_long
_lam_mpi_unsigned_short
_lam_mpi_wchar
collect2: ld returned 1 exit status
/usr/local/lam-7.1.2b31/bin/mpicc: No such file or directory
output: ret = 256
error message = {/usr/bin/ld: Undefined symbols:
_lam_mpi_comm_world
_lam_myproc
_lam_mpi_2dblprec
_lam_mpi_2int
_lam_mpi_2integer
_lam_mpi_2real
_lam_mpi_byte
:
etc etc
_lam_mpi_unsigned_char
_lam_mpi_unsigned_long
_lam_mpi_unsigned_long_long
_lam_mpi_unsigned_short
_lam_mpi_wchar
collect2: ld returned 1 exit status
/usr/local/lam-7.1.2b31/bin/mpicc: No such file or directory
}
|