[Ipopt] Compiling Ipopt with pgCC

Dl pages25300 at hotmail.com
Fri Jun 5 04:27:31 EDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20090605/45a03178/attachment.html 


More information about the Ipopt mailing list