[Trilinos-Users] Error Compiling Trilinos on Ubuntu 11.04
Matt Bockman
mdbockma at ucsd.edu
Sat Jul 23 16:54:24 MDT 2011
Thanks Nuno,
I set that and now update-alternatives gives:
mdbockman at mdbockman:~/Documents/Research/codes/trilinosTest3/trilinos-10.6.4-Source/build2$
update-alternatives --get-selections | grep mpi
mdrun_mpi auto /usr/bin/mdrun_mpi.openmpi
mpi auto /usr/lib/openmpi/include
mpirun auto /usr/bin/mpirun.openmpi
mpy auto /usr/bin/mpy.openmpi
However, I recompile using the following sequence of commands:
rm -rf CMakeCache.txt && ./trilinos_configure-trilinos-ubuntu.sh && make
clean && make -j4
from the build directory but I still get:
/usr/bin/ld: /usr/local/lib/libmpich.a(allreduce.o): relocation R_X86_64_32
against `MPIR_ThreadSingle' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/libmpich.a: could not read symbols: Bad value
Can't I just download a know good version of mpi (any recommendations?) and
link to that? Additionally, how would I tell cmake which library to use?
Thanks,
Matt
On Fri, Jul 22, 2011 at 9:52 AM, Nuno Sucena Almeida <slug at aeminium.org>wrote:
> On 07/21/2011 11:17 PM, Matt Bockman wrote:
> > There are 5 choices for the alternative mpi (providing /usr/include/mpi).
> >
> > Selection Path Priority Status
> > ------------------------------------------------------------
> > 0 /usr/include/mpich2 40 auto mode
> > 1 /usr/include/mpich2 40 manual mode
> > 2 /usr/lib/mpich-mpd/include 10 manual mode
> > 3 /usr/lib/mpich-shmem/include 10 manual mode
> > 4 /usr/lib/mpich/include 10 manual mode
> > 5 /usr/lib/openmpi/include 40 manual mode
> >
> > This is after I installed openmpi. However, I don't know how to tell
> > cmake/trilinos how to actually use openmpi. I am going to uninstall
> mpich2
> > and see where I can go from there.
> >
> > Thanks,
> > Matt
>
> Hi Matt,
> the easiest way is to set openmpi as default for the whole system.
> With
> update-alternatives --get-selections |grep mpi
>
> I have this:
>
> mdrun_mpi auto /usr/bin/mdrun_mpi.openmpi
> mpi auto /usr/lib/openmpi/include
> mpirun auto /usr/bin/mpirun.openmpi
>
> You can copy&paste this output to a file selections.list and then run:
>
> cat selections.list | sudo update-alternatives --set-selections
>
> regards,
> Nuno
> --
> http://aeminium.org/slug/
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110723/ff7253cf/attachment.html
More information about the Trilinos-Users
mailing list