[Bonmin] make error -fPIC

Andreas Waechter andreasw at watson.ibm.com
Tue Aug 15 13:44:32 EDT 2006


Hi Thomas,

> I made configure as
>>> ./../configure CXXFLAGS="$CFLAGS -fPIC -O3"  CFLAGS="$CFLAGS -fPIC 
-O3"
> --with-pardiso="/home/widmer/Ipopt-3.0/libpardiso_GNU_AMD64_P.so"

That looks a bit strange to me.  For one, you are using a recursive 
assingement, which doesn't really do much unless CFLAGS is set in your 
environment (is it?).  And I don't think you should include -fPIC 
explicitly in the FLAGS in general - it is set automatically by the 
libtool script whenever necessary.

Why did you decide to not use the default values for CXXFLAGS etc as 
determined by configure in the first place?

What happens if you just use

./../configure --with-pardiso="/home/widmer/Ipopt-3.0/libpardiso_GNU_AMD64_P.so -lpthread"

?

(I think you need the pthread library when you link with Pardiso...?)

Andreas

On Mon, 14 Aug 2006, Thomas Widmer wrote:

> Hi
>
> Trying to "make" BONMIN I get an error message relating "-fPIC".
> Under the output....
> **************
> Making all in src/Apps
> make[2]: Entering directory `/home/widmer/coin-Bonmin/build/Bonmin/src/Apps'
> **************
>
> I get....
> **************
> /usr/lib/gcc/x86_64-redhat-linux/4.0.0/libgfortranpreview.a(etime.o): 
> relocation R_X86_64_32 against `a local symbol' can not be used when making a 
> shared object; recompile with -fPIC
> **************
>
> I made configure as
>>> ./../configure CXXFLAGS="$CFLAGS -fPIC -O3"  CFLAGS="$CFLAGS -fPIC -O3" 
> --with-pardiso="/home/widmer/Ipopt-3.0/libpardiso_GNU_AMD64_P.so"
>
> Do you have any suggestions what might be wrong? Unfotunately, I have seen 
> nowhere what flags exactly I have to set. The configure seemed to take my 
> cflags and gave a
>>> checking if g++ PIC flag -fPIC works... yes
> back when referring to that -fPIC thing.
>
> Thanks, Thomas
>
> _______________________________________________
> Bonmin mailing list
> Bonmin at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/bonmin
>


More information about the Bonmin mailing list