[Trilinos-Users] Error Compiling Trilinos on Ubuntu 11.04

Kurtis Nusbaum klnusbaum at gmail.com
Wed Jul 20 18:28:13 MDT 2011


Try adding this to the cmake configure script

-DCMAKE_CXX_FLAGS="-fPIC"

On Wed, Jul 20, 2011 at 6:22 PM, Matt Bockman <mdbockma at ucsd.edu> wrote:

> Hi,
>
> I took the steps Nuno and Matthew Goodman suggested, namely:
>
> 1) installing necessary libraries
> 2) installing atlas using Goodman's script
> 3) Using Nuno's config script to do the configuration
> 4) Run make
>
> However, during the build I get an error which Google can't seem to find
> any information on:
>
> /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
> collect2: ld returned 1 exit status
> make[2]: *** [packages/teuchos/src/libteuchos.so] Error 1
> make[1]: *** [packages/teuchos/src/CMakeFiles/teuchos.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Anyone ever seen this before or knows what it means? I'm very confused.
>
> Thanks,
> Matt
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>


-- 
Peace, Love, and Source Code
-Kurtis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110720/af8dad3d/attachment.html 


More information about the Trilinos-Users mailing list