[Ipopt] Compiling Ipopt with pgCC
Stefan Vigerske
stefan at math.hu-berlin.de
Sat Jun 6 06:59:04 EDT 2009
Hi,
you can try building also Ipopt as static library.
You would need to add --enable-static to the configure flags as well (or
was it --disable-shared ?)
Stefan
Dl schrieb:
> Dear all,
>
>
>
> I need to compile Ipopt with the pgCC compiler and I'm having problems which I don't know how to work it around.
>
>
>
> When I do the ../configure command I add the options for the compiler and I also provide the path for the Blas library:
>
>
>
> ../configure CXX="pgCC" CFLAGS="-fPIC" --with-blas="-L/opt/pgi/linux86-64/7.0-7/lib -lblas"
>
>
>
> Configuration ends succesfully, but during the make it find errors such as:
>
>
>
>
>
>
>
> "../../../../../Ipopt/src/contrib/CGPenalty/../../Algorithm/IpBacktrackingLSAcceptor.hpp", line 145: warning:
> statement is unreachable
> return -1.;
> ^
> "../../../../Ipopt/src/Interfaces/IpTNLPAdapter.cpp", line 300: warning:
> statement is unreachable
> if (!dependency_detector_->ReducedInitialize(*jnlst_, options, prefix)) {
> ^
> /usr/bin/ld: /opt/pgi/linux86-64/7.0-7/lib/libblas.a(xerbla.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> /opt/pgi/linux86-64/7.0-7/lib/libblas.a: could not read symbols: Bad value
> make[2]: *** [libipopt.la] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
>
>
>
> Has anyone gone through this before? Any suggestion will be highly appreciated.
>
> Adela
>
>
>
> _________________________________________________________________
> Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
>
> http://www.microsoft.com/windows/windowslive/products/photos.aspx
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
More information about the Ipopt
mailing list