[Ipopt-tickets] [Ipopt] #101: After compiling Ipopt with Cygwin "make test" fails

Ipopt coin-trac at coin-or.org
Tue Jun 23 11:42:03 EDT 2009


#101: After compiling Ipopt with Cygwin "make test" fails
------------------------------+---------------------------------------------
Reporter:  Johannes           |       Owner:  ipopt-team
    Type:  defect             |      Status:  new       
Priority:  normal             |   Component:  Ipopt     
 Version:  3.6 (C++ Version)  |    Severity:  normal    
Keywords:  make test, C       |  
------------------------------+---------------------------------------------
 I am trying to install Ipopt with Cygwin on Windows to use it with Matlab.
 configure and make test works but then the C-Test fails when typing make
 test:

 Johannes at Johannes-PC ~/CoinIpopt
 $ make test
 Making all in ThirdParty/Blas
 make[1]: Entering directory `/home/Johannes/CoinIpopt/ThirdParty/Blas'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/ThirdParty/Blas'
 Making all in ThirdParty/Lapack
 make[1]: Entering directory `/home/Johannes/CoinIpopt/ThirdParty/Lapack'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/ThirdParty/Lapack'
 Making all in ThirdParty/Metis
 make[1]: Entering directory `/home/Johannes/CoinIpopt/ThirdParty/Metis'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/ThirdParty/Metis'
 Making all in ThirdParty/HSL
 make[1]: Entering directory `/home/Johannes/CoinIpopt/ThirdParty/HSL'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/ThirdParty/HSL'
 Making all in ThirdParty/ASL
 make[1]: Entering directory `/home/Johannes/CoinIpopt/ThirdParty/ASL'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/ThirdParty/ASL'
 Making all in ThirdParty/Mumps
 make[1]: Entering directory `/home/Johannes/CoinIpopt/ThirdParty/Mumps'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/ThirdParty/Mumps'
 Making all in Ipopt
 make[1]: Entering directory `/home/Johannes/CoinIpopt/Ipopt'
 Making all in src/Common
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Common'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Common'
 Making all in src/LinAlg
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 Making all in TMatrices
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg/TMatrices
 '
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg/TMatrices'

 make[3]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 make[3]: Nothing to be done for `all-am'.
 make[3]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 Making all in src/Algorithm
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 Making all in LinearSolvers
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/Linear
 Solvers'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/LinearS
 olvers'
 Making all in Inexact
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/Inexac
 t'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/Inexact
 '
 make[3]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 make[3]: Nothing to be done for `all-am'.
 make[3]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 Making all in src/contrib/CGPenalty
 make[2]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/CGPenalt
 y'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/CGPenalty
 '
 Making all in src/contrib/LinearSolverLoader
 make[2]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/LinearSo
 lverLoader'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/LinearSol
 verLoader'
 Making all in src/Interfaces
 make[2]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Interfaces'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Interfaces'
 Making all in src/Apps
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 Making all in CUTErInterface
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/CUTErInterf
 ace'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/CUTErInterfa
 ce'
 Making all in AmplSolver
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/AmplSolver'

 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/AmplSolver'
 make[3]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 make[3]: Nothing to be done for `all-am'.
 make[3]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt'
 make[2]: Nothing to be done for `all-am'.
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt'
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt'
 make[1]: Entering directory `/home/Johannes/CoinIpopt'
 make[1]: Nothing to be done for `all-am'.
 make[1]: Leaving directory `/home/Johannes/CoinIpopt'
 cd Ipopt; make test
 make[1]: Entering directory `/home/Johannes/CoinIpopt/Ipopt'
 Making all in src/Common
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Common'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Common'
 Making all in src/LinAlg
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 Making all in TMatrices
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg/TMatrices
 '
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg/TMatrices'

 make[3]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 make[3]: Nothing to be done for `all-am'.
 make[3]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/LinAlg'
 Making all in src/Algorithm
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 Making all in LinearSolvers
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/Linear
 Solvers'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/LinearS
 olvers'
 Making all in Inexact
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/Inexac
 t'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm/Inexact
 '
 make[3]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 make[3]: Nothing to be done for `all-am'.
 make[3]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Algorithm'
 Making all in src/contrib/CGPenalty
 make[2]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/CGPenalt
 y'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/CGPenalty
 '
 Making all in src/contrib/LinearSolverLoader
 make[2]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/LinearSo
 lverLoader'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/contrib/LinearSol
 verLoader'
 Making all in src/Interfaces
 make[2]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Interfaces'
 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Interfaces'
 Making all in src/Apps
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 Making all in CUTErInterface
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/CUTErInterf
 ace'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/CUTErInterfa
 ce'
 Making all in AmplSolver
 make[3]: Entering directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/AmplSolver'

 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory
 `/home/Johannes/CoinIpopt/Ipopt/src/Apps/AmplSolver'
 make[3]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 make[3]: Nothing to be done for `all-am'.
 make[3]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/src/Apps'
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt'
 make[2]: Nothing to be done for `all-am'.
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt'
 cd test; make test
 make[2]: Entering directory `/home/Johannes/CoinIpopt/Ipopt/test'
 if g++ -DHAVE_CONFIG_H -I. -I`cygpath -w .` -I../inc  -I`cygpath -w
 ./../src/Com
 mon` -I`cygpath -w ./../src/LinAlg` -I`cygpath -w
 ./../src/LinAlg/TMatrices`
 -I`
 cygpath -w ./../src/Algorithm` -I`cygpath -w ./../src/Interfaces`   -O3
 -fomit-f
 rame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses
 -Wreturn-t
 ype -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion
 -Wno-unknown-
 pragmas   -MT hs071_main.o -MD -MP -MF ".deps/hs071_main.Tpo" -c -o
 hs071_main.o
  hs071_main.cpp; \
         then mv -f ".deps/hs071_main.Tpo" ".deps/hs071_main.Po"; else rm
 -f
 ".de
 ps/hs071_main.Tpo"; exit 1; fi
 if g++ -DHAVE_CONFIG_H -I. -I`cygpath -w .` -I../inc  -I`cygpath -w
 ./../src/Com
 mon` -I`cygpath -w ./../src/LinAlg` -I`cygpath -w
 ./../src/LinAlg/TMatrices`
 -I`
 cygpath -w ./../src/Algorithm` -I`cygpath -w ./../src/Interfaces`   -O3
 -fomit-f
 rame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses
 -Wreturn-t
 ype -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion
 -Wno-unknown-
 pragmas   -MT hs071_nlp.o -MD -MP -MF ".deps/hs071_nlp.Tpo" -c -o
 hs071_nlp.o hs
 071_nlp.cpp; \
         then mv -f ".deps/hs071_nlp.Tpo" ".deps/hs071_nlp.Po"; else rm -f
 ".deps
 /hs071_nlp.Tpo"; exit 1; fi
 /bin/sh ../../libtool --tag=CXX --mode=link g++  -O3 -fomit-frame-pointer
 -pipe
 -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-
 qual
 -Wa
 ll -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
 -o
 hs07
 1_cpp.exe  hs071_main.o hs071_nlp.o ../src/Interfaces/libipopt.la -lm
 -ldl
 -L/
 usr/lib/gcc/i686-pc-cygwin/3.4.4
 -L/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../.. -l
 frtbegin -lg2c -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -ldl
 mkdir .libs
 libtool: link: warning: library `/usr/lib/gcc/i686-pc-
 cygwin/3.4.4/libg2c.la'
 wa
 s moved.
 libtool: link: warning: library `/usr/lib/gcc/i686-pc-
 cygwin/3.4.4/libg2c.la'
 wa
 s moved.
 g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit
 -Wparent
 heses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings
 -Wconversi
 on -Wno-unknown-pragmas -o hs071_cpp.exe hs071_main.o hs071_nlp.o
 ../src/Interf
 aces/.libs/libipopt.a -L/usr/lib/gcc/i686-pc-cygwin/3.4.4
 -L/usr/lib/gcc/i686-pc
 -cygwin/3.4.4/../../.. -lfrtbegin /usr/lib/gcc/i686-pc-
 cygwin/3.4.4/libg2c.a
 -lc
 ygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -ldl
 if gcc -DHAVE_CONFIG_H -I. -I`cygpath -w .` -I../inc  -I`cygpath -w
 ./../src/Com
 mon` -I`cygpath -w ./../src/LinAlg` -I`cygpath -w
 ./../src/LinAlg/TMatrices`
 -I`
 cygpath -w ./../src/Algorithm` -I`cygpath -w ./../src/Interfaces`   -O3
 -fomit-f
 rame-pointer -pipe -DNDEBUG  -Wimplicit -Wparentheses -Wsequence-point
 -Wreturn-
 type -Wcast-qual -Wall -Wno-unknown-pragmas -MT hs071_c.o -MD -MP -MF
 ".deps/hs0
 71_c.Tpo" -c -o hs071_c.o hs071_c.c; \
         then mv -f ".deps/hs071_c.Tpo" ".deps/hs071_c.Po"; else rm -f
 ".deps/hs0
 71_c.Tpo"; exit 1; fi
 /bin/sh ../../libtool --tag=CC --mode=link gcc  -O3 -fomit-frame-pointer
 -pipe -
 DNDEBUG  -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-
 qual
 -Wa
 ll -Wno-unknown-pragmas   -o hs071_c.exe  hs071_c.o
 ../src/Interfaces/libipopt.l
 a -lm  -ldl  -L/usr/lib/gcc/i686-pc-cygwin/3.4.4
 -L/usr/lib/gcc/i686-pc-cygwin/3
 .4.4/../../.. -lfrtbegin -lg2c -lcygwin -luser32 -lkernel32 -ladvapi32
 -lshell32
  -lstdc++ -lm -ldl
 libtool: link: warning: library `/usr/lib/gcc/i686-pc-
 cygwin/3.4.4/libg2c.la'
 wa
 s moved.
 libtool: link: warning: library `/usr/lib/gcc/i686-pc-
 cygwin/3.4.4/libg2c.la'
 wa
 s moved.
 gcc -O3 -fomit-frame-pointer -pipe -DNDEBUG -Wimplicit -Wparentheses
 -Wsequence-
 point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -o hs071_c.exe
 hs071_
 c.o  ../src/Interfaces/.libs/libipopt.a -L/usr/lib/gcc/i686-pc-
 cygwin/3.4.4
 -L/u
 sr/lib/gcc/i686-pc-cygwin/3.4.4/../../.. -lfrtbegin
 /usr/lib/gcc/i686-pc-cygwin/
 3.4.4/libg2c.a /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a
 -L/managed/gcc-buil
 d/final-v3-bootstrap/gcc-3.4.4-999/.build/i686-pc-cygwin/libstdc++-v3/src
 -L/man
 aged/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/.build/i686-pc-
 cygwin/libstdc++-
 v3/src/.libs
 -L/managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/.build/gcc -L
 /usr/i686-pc-cygwin/bin -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32
 -lgcc
 -ldl
 ln -s ../examples/hs071_f/hs071_f.f hs071_f.f
 g77 -I`cygpath -w ./../src/Interfaces` -O3 -fomit-frame-pointer -pipe   -c
 -o hs
 071_f.o hs071_f.f
 /bin/sh ../../libtool --tag=F77 --mode=link g77 -I`cygpath -w
 ./../src/Interface
 s` -O3 -fomit-frame-pointer -pipe     -o hs071_f.exe  hs071_f.o
 ../src/Interface
 s/libipopt.la -lm  -ldl -lstdc++ -lm -ldl
 g77 -IC:\\cygwin\\home\\Johannes\\CoinIpopt\\Ipopt\\src\\Interfaces -O3
 -fomit-f
 rame-pointer -pipe -o hs071_f.exe hs071_f.o
 ../src/Interfaces/.libs/libipopt.a
 -lstdc++ -ldl
 chmod u+x ./run_unitTests
 ./run_unitTests

 Running unitTests...

 Testing AMPL Solver Executable...
     Test passed!
 Testing C++ Example...
     Test passed!
 Testing C Example...
 ./run_unitTests: line 69:  3676 Segmentation fault      (core dumped)
 ./hs071_c
 > tmpfile 2>&1

  ---- 8< ---- Start of test program output ---- 8< ----
  ---- 8< ----  End of test program output  ---- 8< ----

     ******** Test FAILED! ********
 Output of the test program is above.
 Testing Fortran Example...
     Test passed!
 make[2]: *** [test] Error 255
 make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/test'
 make[1]: *** [unitTest] Error 2
 make[1]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt'
 make: *** [test] Error 2

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/101>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list