Hello,
I am just trying LAM/MPI on PM/G5, Xserve/G5, and intel mac with
various Fortran compilers (absoft, XL, and intel). By some ways, I
have succeeded installation on OS10.4...., (not leopard). But, at
the first compilation by using a trivial hello program which appears
at very beginning of MPI text written by W. Gropp, I failed.
I have leaned that LAM does not work with fortran90 program. Hence,
I rewrote it to f77 form.
1) on Intel Mac (PowerMac)
lowdin:~/fss/lam koun$ mpif77 hello.f -o hello
ld: Undefined symbols:
_lam_darwin_malloc_linker_hack
The installation was made as,
lowdin:~/develop/lam-7.1.4 koun$ ./configure CC=cc CXX=c++ FC=ifort --
without-cs-fs
The resulting configuration is,
lowdin:~/fss/lam koun$ mpif77 -showme
ifort -I/usr/local/include hello.f90 -o hello -Wl,-u -
Wl,_lam_darwin_malloc_linker_hack -Wl,-multiply_defined,suppress -Wl,-
force_flat_namespace -Wl,-flat_namespace -Wl,-multiply_defined -
Wl,suppress -L/usr/local/lib -llammpio -llamf77mpi -lmpi -llam -ldl
2) on PowerPC/G5
By using Absoft
olivia 47% ./configure CC=/usr/bin/gcc-3.3 CXX=/usr/bin/g++-3.3
FC=f77 --without-cs-fs
I obtained a slightly different message,
mpif77 hello.f -o hello
ERROR: Unrecognized arguments: -Wl,-u -
Wl,_lam_darwin_malloc_linker_hack -Wl,-multiply_defined,suppress -Wl,-
force_flat_namespace -Wl,-flat_namespace -Wl,-multiply_defined -
Wl,suppress
mpif77: No such file or directory
When XL is used,
olivia 20% ./configure CC=/usr/bin/gcc-3.3 CXX=/usr/bin/g++-3.3
FC=xlf --without-cs-fs
I obtained a different message,
olivia 9% mpif77 hello.f -o hello -lm
** hello === End of Compilation 1 ===
1501-510 Compilation successful for file hello.f.
/usr/bin/ld: multiple definitions of symbol _munmap
/usr/lib/libm.dylib(munmap.So) definition of _munmap
/usr/local//lib/libopen-pal.0.dylib(single module) definition of _munmap
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding
may result in errors or different symbols being used
symbol _lt_dlloader_add used from dynamic library /usr/local//lib/
libopen-pal.0.dylib(single module) not from earlier dynamic library /
usr/local/lib/liblam.0.dylib(ltdl.o)
symbol _lt_dlloader_next used from dynamic library /usr/local//lib/
libopen-pal.0.dylib(single module) not from earlier
...
symbol _mmap used from dynamic library /usr/local//lib/libopen-pal.
0.dylib(single module) not from earlier dynamic library /usr/lib/
libSystem.B.dylib(mmap.So)
mpif77: No such file or directory
In this case, dynamic library seems problem, but I don't know how to
manage.
I am sorry to ask a couple of things, but I am very beginner and
hence the cause of problems seems to be related each other.
Best regard
-----------------------
Koun SHIRAI
Nanoscience and Nanotechnology Center
ISIR, Osaka University
8-1, Mihogaoka, Ibaraki
Osaka 567-0047, JAPAN
PH: +81-6-6879-4302
FAX: +81-6-6879-8539
|