Hi Avi,
I can think of no reason why LAM cannot be built with xlC. xlC is 100%
compatible with gcc, so it should be possible, although the the current
beta of xlC has a number of bugs that might cause a problem.
>> xlc -O -o .libs/lamclean lamclean.o ../../share/.libs/liblam.dylib
It looks like this should be
xlc -O -o .libs/lamclean lamclean.o -llam -L../../share/.libs
Here are some other ideas...
- There is no need to rebuild LAM for OSX unless you need to call LAM
from FORTRAN. Just use the LAM installer package. An xlC compiled main
program will have no problems calling the LAM API as xlC is 100% call
and almost 100% source level compatible with gcc
- I assume a possible motivation for rebuilding LAM with xlC is to
gain performance. I agree that xlC generates code that is much,much
more optimized than gcc, but I am not sure that would make much
difference at the LAM level which would surely be dominated by MPI
communication bottlenecks and implementation.
- If you do have to rebuild LAM with FORTRAN support, I would
"configure" it with CC=gcc, and F77=xlf. That is, use gcc for the C++
bits of LAM, and xlf for the fortran bits.
The xlC/xlc/xlf compilers are beta quality, though from my experience
the fortran compilers are much more robust than the C/C++ compilers at
the moment. I've submitted a dozen or so C/C++ bugs, but no FORTRAN
ones.
Andrew
>
>
> Hi Avi,
>
> Shared libraries using XL compilers on OS X is not supported in LAM. We
> need to add this in the release notes. Thanks for pointing this out.
>
> --
> Shashwat Srivastav
> LAM/MPI Developer
> Indiana University
> ssrivast_at_[hidden]
>
> On Tue, 7 Oct 2003, Avi Purkayastha wrote:
>
>> Hi,
>> I am installing lam-mpi on a ppc-970 based Apple system on Mac OS X
>> 10.2.7
>> using IBM compilers (xlc, xlC, xlf). After `configure', the `make'
>> step
>> failed with the lines
>> xlc -O -o .libs/lamclean lamclean.o ../../share/.libs/liblam.dylib
>> xlc: 1501-218 file ../../share/.libs/liblam.dylib contains an
>> incorrect file
>> suffix
>> xlc: 1501-228 input file ../../share/.libs/liblam.dylib not found
>> make[2]: *** [lamclean] Error 252
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive] Error 1
>>
>> The output from config.log and make.LOG is attached.
>>
>> Thanks for the help.
>>
>> -- Avi
----------------------
Andrew Cunningham
ESI Group NA.
andrew.cunningham_at_[hidden]
(858) 350 0057 x105
Intl: +1-858-350 0057
|