[Coin-ipopt] IPOPT+CUTEr can't work
Lihong Zhang
lihong at ee.washington.edu
Wed Nov 9 15:08:43 EST 2005
Hi Andreas and Dominique.
First of all, I should thank you both very very much for your kind help!
Here, I can find "lib" subdirectory under $IPOPT. "libipopt.a" is inside.
However, in my installation, I can't find "libiptron.a". The following is
all my *.a:
[lihong at frosty]Ipopt> find . -name "*.a" -ls
123226370 4 -rw-r--r-- 1 lihong postdoc_f 2824 Nov 8 23:02
./IPOPT/AMPL_interface/libipampl.a
139592829 980 -rw-r--r-- 1 lihong postdoc_f 998556 Nov 8 23:02
./IPOPT/ipopt/libipcore.a
145015332 160 -rw-r--r-- 1 lihong postdoc_f 156452 Nov 8 22:56
./OTHERS/blas/libipblas.a
128582542 732 -rw-r--r-- 1 lihong postdoc_f 742080 Nov 8 23:01
./OTHERS/ASL/amplsolver.a
115196859 192 -rw-r--r-- 1 lihong postdoc_f 191048 Nov 8 22:57
./OTHERS/lapack/libiplapack.a
118669402 80 -rw-r--r-- 1 lihong postdoc_f 76920 Nov 8 22:57
./OTHERS/HSL/libiphsl.a
153551147 1396 -rw-r--r-- 1 lihong postdoc_f 1422756 Nov 8 23:03
./lib/libipopt.a
I checked the $IPOPT/doc/INSTALL and got to know "libiptron.a" may
or may not be used in the new release of IPOPT. Should I include it
in my installation?
Now let me show the result obtained here. Something is still wrong
(maybe my compilation problem).
I followed the instruction from Dominique to revise the $MYCUTER/bin/ipopt
(ie, Line168 and Line181).
1) If I define ipopt.liblist as follows:
-L/homes/lihong/cvs/COIN/Ipopt/lib -lipopt
I got the following after issueing "sdipopt HS11.SIF":
****************************************************
[lihong at si]tmp> sdipopt HS11.SIF
Problem name: HS11
Double precision version will be formed.
The objective function uses 1 nonlinear group
There is 1 nonlinear inequality constraint
There are 2 free variables
ld: warning: symbol `evals_' has differing sizes:
(file
/homes/lihong/cvs/cuter/CUTEr.medium.sun.sol.g77/double/bin/ipoptma.o
value=0x8; file
/homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(ipopt.o) value=0xc);
/homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(ipopt.o) definition
taken
ld: fatal: symbol `idamax_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(idamax.o)
type=FUNC; file /homes/lihong/cv
s/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dswap_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dswap.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dcopy_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dcopy.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dscal_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dscal.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `daxpy_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(daxpy.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dasum_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dasum.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dnrm2_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dnrm2.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `ddot_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(ddot.o)
type=FUNC; file /homes/lihong/cvs/
cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: File processing errors. No output written to ipoptmin
collect2: ld returned 1 exit status
/atm/vlsifiles/d0/mscad/home/lihong/cvs/cuter/common/sif/tmp/ipoptmin:
Command not found
****************************************************
2) If I define ipopt.liblist as follows:
-L/homes/lihong/cvs/COIN/Ipopt/lib -lipopt -llapack -lblas
I got the following after issueing "sdipopt HS11.SIF":
****************************************************
[lihong at si]tmp> sdipopt HS11.SIF
Problem name: HS11
Double precision version will be formed.
The objective function uses 1 nonlinear group
There is 1 nonlinear inequality constraint
There are 2 free variables
ld: warning: symbol `evals_' has differing sizes:
(file
/homes/lihong/cvs/cuter/CUTEr.medium.sun.sol.g77/double/bin/ipoptma.o
value=0x8; file
/homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(ipopt.o) value=0xc);
/homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(ipopt.o) definition
taken
ld: fatal: library -llapack: not found
ld: fatal: library -lblas: not found
ld: fatal: symbol `idamax_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(idamax.o)
type=FUNC; file /homes/lihong/cv
s/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dswap_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dswap.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dcopy_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dcopy.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dscal_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dscal.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `daxpy_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(daxpy.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dasum_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dasum.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `dnrm2_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(dnrm2.o)
type=FUNC; file /homes/lihong/cvs
/cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: symbol `ddot_' is multiply-defined:
(file /homes/lihong/cvs/COIN/Ipopt/lib/libipopt.a(ddot.o)
type=FUNC; file /homes/lihong/cvs/
cuter/CUTEr.medium.sun.sol.g77/double/bin/linpac.o type=FUNC);
ld: fatal: File processing errors. No output written to ipoptmin
collect2: ld returned 1 exit status
/atm/vlsifiles/d0/mscad/home/lihong/cvs/cuter/common/sif/tmp/ipoptmin:
Command not found
*******************************************************
3) If I define ipopt.liblist as follows:
-L/homes/lihong/cvs/COIN/Ipopt/IPOPT/ipopt -lipcore
-L/homes/lihong/cvs/COIN/Ipopt/OTHERS/TRON -liptron
-L/homes/lihong/cvs/COIN/Ipopt/IPOPT/ipopt -lipcore
-L/homes/lihong/cvs/COIN/Ipopt/OTHERS/HSL -liphsl
-L/homes/lihong/cvs/COIN/Ipopt/OTHERS/lapack -liplapack
-L/homes/lihong/cvs/COIN/Ipopt/OTHERS/blas -lipblas
-L/homes/lihong/cvs/COIN/Ipopt/lib -lipopt
I got the following after issueing "sdipopt HS11.SIF":
****************************************************
[lihong at si]tmp> sdipopt HS11.SIF
Problem name: HS11
Double precision version will be formed.
The objective function uses 1 nonlinear group
There is 1 nonlinear inequality constraint
There are 2 free variables
ld: warning: symbol `evals_' has differing sizes:
(file
/homes/lihong/cvs/cuter/CUTEr.medium.sun.sol.g77/double/bin/ipoptma.o
value=0x8; file
/homes/lihong/cvs/COIN/Ipopt/IPOPT/ipopt/libipcore.a(ipopt.o) value=0xc);
/homes/lihong/cvs/COIN/Ipopt/IPOPT/ipopt/libipcore.a(ipopt.o)
definition taken
ld: fatal: library -liptron: not found
ld: fatal: File processing errors. No output written to ipoptmin
collect2: ld returned 1 exit status
/atm/vlsifiles/d0/mscad/home/lihong/cvs/cuter/common/sif/tmp/ipoptmin:
Command not found
*****************************************************
Above, my IPOPT installation directory is /homes/lihong/cvs/COIN/Ipopt
(ie, $IPOPT).
By the way, my computer is Sun workstation using Solaris.
Could you please help me to figure out the reason? If you need
any further information about my installation environment, please
let me know. Thank you very much for your help.
Best regards,
Lihong
Andreas Waechter wrote:
>Hi Dominique,
>
>
>
>>What you say makes total sense and also corresponds to my memories, but
>>something seems wrong as when I unpack IPOPT, there is no lib
>>subdirectory! It is not created either when I say 'make'. So there's no
>>libipopt.a to be found.
>>
>>
>
>'make' doesn't install the code, you need to type 'make install'. You are
>right, there is no lib subdir when you unpack the code, but it will be
>created (and filled) with 'make install'
>
>Could you please try it again?
>
>Thanks! :)
>
>Andreas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20051109/0bf91e14/attachment.html
More information about the Coin-ipopt
mailing list