[Ipopt] DPOTRF missing in Lapack

Jens Rantil jens.rantil at gmail.com
Thu Jul 30 07:24:14 EDT 2009


Hi,

I am running an application that uses Ipopt for its optimization. When
run, the program outputs:
===
[...]
Exception of type: LAPACK_NOT_INCLUDED in file "IpLapack.cpp" at line 65:
 Exception message: Ipopt has been compiled without LAPACK routine
DPOTRF, but options are chosen that require this dependency.  Abort.

EXIT: Some uncaught Ipopt exception encountered.
===

LAPACK in itself is installed, both using my Ubuntu package manager,
but also using the wget-script that resides in the ThirdParty folder
in the Ipopt source folder. It also looks like it is being identified
automatically by Ipopt's configure script (see attachment).

Anyone who can give me a hint on what to do next? Am I lacking some
secret flag somewhere throughout the build process of Ipopt?

Thanks,
Jens
-------------- next part --------------
jens at jens-desktop:~/src/Ipopt-3.5.5/build$ ../configure 
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for xlc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas  
checking for xlC_r... no
checking for aCC... no
checking for CC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: C++ compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas  
configure: Trying to determine Fortran compiler name
checking for xlf_r... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe  
checking for egrep... grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: Build is "i686-pc-linux-gnu".
checking whether code for third party package Blas is available... yes
checking whether code for third party package Lapack is available... yes
checking whether code for third party package HSL is available... yes
checking whether code for third party package ASL is available... no
checking whether code for third party package Mumps is available... yes
checking whether directory Ipopt is available... yes
checking which command should be used to link input files... ln -s
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: configuring in ThirdParty/Blas
configure: running /bin/bash '../../../ThirdParty/Blas/configure' --prefix=/home/jens/src/Ipopt-3.5.5/build  --cache-file=/dev/null --srcdir=../../../ThirdParty/Blas
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for xlc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas  
configure: Trying to determine Fortran compiler name
checking for xlf_r... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe  
checking for egrep... grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
configure: Using libtool script in directory ../..
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
checking whether -lblas has BLAS... yes
configure: The Blas sources don't need to be compiled
checking which command should be used to link input files... ln -s
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: Configuration of ThirdPartyBlas successful
configure: configuring in ThirdParty/Lapack
configure: running /bin/bash '../../../ThirdParty/Lapack/configure' --prefix=/home/jens/src/Ipopt-3.5.5/build  --cache-file=/dev/null --srcdir=../../../ThirdParty/Lapack
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for xlc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas  
configure: Trying to determine Fortran compiler name
checking for xlf_r... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe  
checking for egrep... grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
configure: Using libtool script in directory ../..
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
checking whether -lblas has BLAS... yes
checking whether LAPACK is already available with BLAS library... no
checking whether -llapack has LAPACK... yes
configure: The Lapack sources don't need to be compiled
checking which command should be used to link input files... ln -s
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: Configuration of ThirdPartyLapack successful
configure: configuring in ThirdParty/HSL
configure: running /bin/bash '../../../ThirdParty/HSL/configure' --prefix=/home/jens/src/Ipopt-3.5.5/build  --cache-file=/dev/null --srcdir=../../../ThirdParty/HSL
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for xlc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas  
configure: Trying to determine Fortran compiler name
checking for xlf_r... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe  
checking for egrep... grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
configure: Using libtool script in directory ../..
checking which command should be used to link input files... ln -s
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: Configuration of ThirdPartyHSL successful
configure: configuring in ThirdParty/Mumps
configure: running /bin/bash '../../../ThirdParty/Mumps/configure' --prefix=/home/jens/src/Ipopt-3.5.5/build  --cache-file=/dev/null --srcdir=../../../ThirdParty/Mumps
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for xlc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG   
configure: Trying to determine Fortran compiler name
checking for xlf_r... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe  
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
configure: Using libtool script in directory ../..
checking if user provides library for mumps... no
checking whether MUMPS is available... yes
checking whether we can compile Fortran 90 code... yes
checking which command should be used to link input files... ln -s
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
configure: Configuration of ThirdPartyMumps successful
configure: configuring in Ipopt
configure: running /bin/bash '../../Ipopt/configure' --prefix=/home/jens/src/Ipopt-3.5.5/build  --cache-file=/dev/null --srcdir=../../Ipopt
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for egrep... grep -E
checking whether ln -s works... yes
checking for xlc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas  
checking for xlC_r... no
checking for aCC... no
checking for CC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: C++ compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas  
configure: Assuming that CXXLIBS is "-lstdc++ -lm".
configure: Trying to determine Fortran compiler name
checking for xlf_r... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe  
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
configure: Using libtool script in directory ..
checking for COIN project Ipopt... .
checking for int *... yes
checking size of int *... 4
configure: Using CXXAR="ar cru".
checking cmath usability... yes
checking cmath presence... yes
checking for cmath... yes
checking cctype usability... yes
checking cctype presence... yes
checking for cctype... yes
checking cassert usability... yes
checking cassert presence... yes
checking for cassert... yes
checking cstdio usability... yes
checking cstdio presence... yes
checking for cstdio... yes
checking cstdlib usability... yes
checking cstdlib presence... yes
checking for cstdlib... yes
checking cstdarg usability... yes
checking cstdarg presence... yes
checking for cstdarg... yes
checking cstring usability... yes
checking cstring presence... yes
checking for cstring... yes
checking cfloat usability... yes
checking cfloat presence... yes
checking for cfloat... yes
checking ctime usability... yes
checking ctime presence... yes
checking for ctime... yes
checking cieeefp usability... no
checking cieeefp presence... no
checking for cieeefp... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking whether finite is declared... yes
checking whether va_copy is declared... yes
checking whether drand48 is declared... yes
checking whether rand is declared... yes
checking whether srand is declared... yes
checking whether -lblas has BLAS... yes
checking whether LAPACK is already available with BLAS library... no
checking whether -llapack has LAPACK... yes
configure: Checking for Harwell subroutine library
checking if user provides library for mumps... no
checking for pthread_create in -lpthread... yes
checking whether MUMPS is available... yes
configure: JAVA_HOME = /usr/lib/jvm/java-6-openjdk
checking whether this is a VPATH configuration... yes
checking whether the linear solver loader should be compiled... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for snprintf... yes
checking which command should be used to link input files... ln -s
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Common/Makefile
config.status: creating src/LinAlg/Makefile
config.status: creating src/LinAlg/TMatrices/Makefile
config.status: creating src/Interfaces/Makefile
config.status: creating src/Interfaces/ipopt_addlibs_f.txt
config.status: creating src/Interfaces/ipopt_addlibs_cpp.txt
config.status: creating src/Algorithm/Makefile
config.status: creating src/Algorithm/LinearSolvers/Makefile
config.status: creating src/Algorithm/Inexact/Makefile
config.status: creating src/contrib/CGPenalty/Makefile
config.status: creating src/contrib/LinearSolverLoader/Makefile
config.status: creating src/Apps/Makefile
config.status: creating src/Apps/AmplSolver/Makefile
config.status: creating src/Apps/CUTErInterface/Makefile
config.status: creating examples/hs071_f/Makefile
config.status: creating examples/hs071_f/hs071_f.f
config.status: creating examples/Cpp_example/Makefile
config.status: creating examples/hs071_cpp/Makefile
config.status: creating examples/hs071_c/Makefile
config.status: creating examples/ScalableProblems/Makefile
config.status: creating test/Makefile
config.status: creating test/run_unitTests
config.status: creating contrib/MatlabInterface/src/Makefile
config.status: creating contrib/JavaInterface/Makefile
config.status: creating inc/config_ipopt.h
config.status: inc/config_ipopt.h is unchanged
config.status: linking ../../Ipopt/examples/hs071_cpp/hs071_main.cpp to test/hs071_main.cpp
config.status: linking ../../Ipopt/examples/hs071_cpp/hs071_nlp.cpp to test/hs071_nlp.cpp
config.status: linking ../../Ipopt/examples/hs071_cpp/hs071_nlp.hpp to test/hs071_nlp.hpp
config.status: linking ../../Ipopt/examples/hs071_c/hs071_c.c to test/hs071_c.c
config.status: executing depfiles commands
configure: Creating VPATH links for data files
configure: Configuration of Ipopt successful
configure: Main configuration of Ipopt successful


More information about the Ipopt mailing list