[Trilinos-Users] Error Compiling Trilinos on Ubuntu 11.04

Doug Reeder dlr1 at cox.net
Wed Jul 20 18:29:09 MDT 2011


Matt,

Try adding the "-fPIC" argument to the compiler command line.

Doug Reeder
On Jul 20, 2011, at 5:22 PM, Matt Bockman 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110720/527abcec/attachment.html 


More information about the Trilinos-Users mailing list