LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Robert Latham (robl_at_[hidden])
Date: 2004-01-13 18:20:00


On Tue, Jan 13, 2004 at 02:05:06AM -0500, Jeff Squyres wrote:
> 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. :-)

Looks like he's building a shared libary on opteron (x86-64).

> > How do I specify this -fPIC option. Do I need to do this at the
> > configure step?
>
> You should not need to, no.

You would need to if building shared libraries on any platform other
than x86. Add it to the CFLAGS env. variable before running
configure.

==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Labs, IL USA                B29D F333 664A 4280 315B