On Wed, 7 Jan 2004, YoungHui Amend wrote:
> I'm compiling my application code against the LAM 7.0.3 which I just
> built.
>
> I'm getting
>
> /usr/bin/ld: .../libmpi.a(abort.o): relocation R_X86_64_32 can not be
> used when making a shared object; recompile with -fPIC
I have honestly never seen this error before. :-)
> How do I specify this -fPIC option. Do I need to do this at the
> configure step?
You should not need to, no.
> In previous version of LAM (6.3.2), we specified this option as "SCFLAGS
> = -fPIC" How do I do this with 7.0.3 version.
>
> Also, .so files are not getting created. What option do I need to
> specify where?
If you want to build shared libraries, use the:
--disable-static --enable-shared
switches to configure. However, since there seems to be something wrong
with your current tree, you might want to remove the entire thing and
extract a fresh tarball, just to ensure that you aren't tainting new
builds with the results of previous broken builds.
If this doesn't help, please send all the data (compressed!) as listed on
the support web page (http://www.lam-mpi.org/using/support/).
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|