On Aug 13, 2004, at 1:16 PM, Jeff Squyres wrote:
>> I don't see a problem with this.
>>>
>>> I just put a 7.1b16 Mac OS X package on the beta page. Can you give
>>> it a whirl?
>>>
>>> http://www.lam-mpi.org/beta/
>>
>> Well it seems that it broke how I was doing things. Here are some of
>> my flags:
>>
>> ldflags := -dynamiclibe -single_module \
>> -L/usr/local/lib -L/usr/local/lib/lam
>>
>> ldlibs := -lmpi -llam_totalview
>
> Yikes -- this doesn't seem right.
>
> What are you using as your compiler -- are you using mpicc? If you
> use mpicc, all the "right" flags will be added automatically.
> Specifically, the -L's and -l's that you need will be added -- there's
> not even a need to add "-lmpi".
>
> You can run "mpicc -showme" to show you the Right flags.
% mpicc -showme
gcc -I/usr/local/include -D_REENTRANT -u _lam_darwin_malloc_linker_hack
-Wl,-multiply_defined,suppress -force_flat_namespace -flat_namespace
-Wl,-multiply_defined -Wl,suppress -L/usr/local/lib -llammpio -lmpi
-llam -ldl
>
> Specifically -- you should *NOT* be linking to the totalview library.
> That is a separate shared library that is only loaded by the totalview
> compiler (it is not linked into MPI executables).
>
I had to include lam_totalview to get rid of some error (probably
missing symbols). My ldflags and ldlibs for linux didn't include that
stuff, but I didn't need to make a dynamic library (it was static).
After removing the two libraries I still am getting the following for
-bundle:
ld: Undefined symbols:
_environ
And for -dynamic I get:
ld: Undefined symbols:
_main
Marc
|