Boost logo

Boost-Build :

Subject: Re: [Boost-build] Compiling Boost.MPI and mpich2 under Suse Linux
From: Michael1984 (m.auli_at_[hidden])
Date: 2010-05-28 13:02:02


I tried building mpich2 with and without -fPIC again and it turns out that
the error message changes very slightly:

without -fPIC:
gcc.link.dll
bin.v2/libs/mpi/build/gcc-4.3/release/threading-multi/libboost_mpi.so.1.43.0
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
/mnt/thor2/michael/tools/mpich2/lib/libmpich.a(attr_get.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/mnt/thor2/michael/tools/mpich2/lib/libmpich.a: could not read symbols: Bad
value
collect2: ld returned 1 exit status

with -fPIC:
gcc.link.dll
bin.v2/libs/mpi/build/gcc-4.3/release/threading-multi/libboost_mpi.so.1.43.0
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
/mnt/thor2/michael/tools/mpich2/lib/libmpich.a(setbotf.o): relocation
R_X86_64_32 against `mpipriv1_' can not be used when making a shared object;
recompile with -fPIC
/mnt/thor2/michael/tools/mpich2/lib/libmpich.a: could not read symbols: Bad
value
collect2: ld returned 1 exit status

Belcourt, Kenneth wrote:
>
>
> On May 27, 2010, at 10:47 AM, Michael1984 wrote:
>
>> I am trying to compile Boost.MPI with Mpich2 under Suse Linux 10.x.
>> After having built Mpich2, involing ./bjam install I am presented
>> with the
>> following error below, however, recompiling mpich2 with -fPIC does
>> not help
>> either.
>>
>> mpich2$ ./configure CXXFLAGS=-fPIC; make; make install
>
> Go back to your static build of MPICH2 and drop your CXXFLAGS.
>
>> mpich2$ ./configure CXXFLAGS=-fPIC; make; make install
>
> mpich2$ ./configure ; make; make install
>
> Does that work any better or a different error message?
>
> -- Noel
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>

-- 
View this message in context: http://old.nabble.com/Compiling-Boost.MPI-and-mpich2-under-Suse-Linux-tp28696953p28709365.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk