[Coin-ipopt] Difficulities in installation on SunOS

Andreas Waechter andreasw at watson.ibm.com
Thu Aug 18 11:03:12 EDT 2005


Hi Danh,

The problem might be that you ran the configure for one compiler (f77) and
then, when you want to compile the example problem, you (assume
explicitly) specified that you want to use a different compiler (mpf77).

You should run configure for the compilers and flags that want to use for
your application.  You can do with by using the F77 variable (and FFLAGS
for choosing the compilation options), e.g.

./configure F77=mpf77 FFLAGS='-O5 -xtarget=native'

Maybe that already fixes your problems.

By the way, I recently tried the '-fast' for a SUN compiler, and Ipopt
didn't work.  That flag seems to activate a lot of very aggressive options
that might compromise the numerical accuracy (e.g., fast math libraries).
I would not use it.  You could use '-O5 -xtarget=native' to have more
aggressive optimization...?

Andreas

On Thu, 18 Aug 2005, Nguyen An Danh wrote:

> Hi Andreas,
>
> I have installed Ipopt (June 10th) on SunOS 5.9.  I meet the difficulties.
> Could you explain me how to overcome them?
>
> 1.  Here are the last lines after using 'make install'
> ....
> echo "" >tmpdir/ipopt_addlibs_f.txt
> /usr/local_rwth/bin/ginstall -c -m 644 tmpdir/ipopt_addlibs_c.txt /home/
> gn046ng/COIN/Ipopt/lib
> /usr/local_rwth/bin/ginstall -c -m 644 tmpdir/ipopt_addlibs_f.txt /home/
> gn046ng/COIN/Ipopt/lib
> rm -rf tmpdir
> ranlib /home/gn046ng/COIN/Ipopt/lib/libipopt.a
> Is the installation successful?
>
> 2.  I tried compiling the sample example, here is error message:
>
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 286]$ make
> mpf77 -O -g -fast -xarch=v9b -c -o example.o `test -f 'example.f' || echo
> './'`example.f
> NOTICE: Invoking /opt/SUNWspro/bin/f90 -f77 -I/opt/SUNWhpc/include/v9 -O -g
> -fast -ftrap=%none -xarch=v9b -c -o example.o example.f
> f90: Warning: -O5 overwrites previously set optimization level of -O3
> example.f:
>  MAIN example:
>         ev_f:
>         ev_g:
>         ev_c:
>         ev_a:
>         ev_h:
> bla=;\
> for file in example.o; do bla="$bla `echo $file`"; done; \
> mpf77 -O -g -fast -xarch=v9b -o example $bla -L/home/gn046ng/COIN/Ipopt/lib
> -lipopt
> NOTICE: Invoking /opt/SUNWspro/bin/f90 -f77 -L/home/gn046ng/COIN/Ipopt/lib -I/
> opt/SUNWhpc/include/v9 -R/opt/SUNWhpc/lib/sparcv9 -L/opt/SUNWhpc/lib/sparcv9
> -O -g -fast -ftrap=%none -xarch=v9b -o example example.o -lipopt
> f90: Warning: -O5 overwrites previously set optimization level of -O3
> ld: warning: file /home/gn046ng/COIN/Ipopt/lib/libipopt.a(estimate_ws.o):
> wrong ELF class: ELFCLASS32
> Undefined                       first referenced
>  symbol                             in file
> ipopt_                              example.o
> ev_hov_dummy_                       example.o
> ev_hlv_dummy_                       example.o
> ev_hcv_dummy_                       example.o
> estimate_ws_                        example.o
> ld: fatal: Symbol referencing errors. No output written to example
> *** Error code 1
> make: Fatal error: Command failed for target `example'
>
> 3. Compilers and flags in Make files, which are created automatically, are
> used as follows:
> a.  Makefile (used by 'make install'):
> F77 = f77
> FFLAGS = -O
> FLIBS =  -lf77compat -R/opt/Studio10/SUNWspro/lib/v8plus:/opt/Studio10/
> SUNWspro/lib:/op
> o/lib/v8plus:/opt/SUNWspro/lib -L/opt/Studio10/SUNWspro/lib/v8plus -L/opt/
> Studio10/SUNW
> /lib/v8plus -L/opt/Studio10/SUNWspro/lib -L/opt/Studio10/SUNWspro/prod/lib -L/
> usr/ccs/l
>  -L/usr/lib -lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai
> -lfminvai -lfmaxv
> -lsunmath -lmtsk -lm
>
> b. Makefile (used by 'make example.f')
> F77 = mpf77
> FFLAGS = -O -g -fast -xarch=v9b
>
> We are using mpf77 compilers. I have already chosen compiler of mpf77, but it
> does not work.
>
> 4.  If I used the default Makefile to compile example.f, the following
> appears:
>
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 302]$ f77 -O -c -o example.o `test
> -f 'example.f' || echo './'`example.f
> NOTICE: Invoking /opt/SUNWspro/bin/f90 -f77 -ftrap=%none -O -c -o example.o
> example.f
> example.f:
>  MAIN example:
>         ev_f:
>         ev_g:
>         ev_c:
>         ev_a:
>         ev_h:
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 303]$ NOTICE: Invoking /opt/
> SUNWspro/bin/f90 -f77 -ftrap=%none -O -c -o example.o example.f
> bash: NOTICE:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 304]$ example.f:
> bash: example.f:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 305]$  MAIN example:
> bash: MAIN: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 306]$         ev_f:
> bash: ev_f:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 307]$         ev_g:
> bash: ev_g:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 308]$         ev_c:
> bash: ev_c:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 309]$         ev_a:
> bash: ev_a:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 310]$         ev_h:
> bash: ev_h:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 311]$ bla=;\
> More > for file in example.o; do bla="$bla `echo $file`"; done; \
> More > f77 -O -o example $bla -L/home/gn046ng/COIN/Ipopt/lib -lipopt
> NOTICE: Invoking /opt/SUNWspro/bin/f90 -f77 -ftrap=%none -O -o example
> example.o -L/home/gn046ng/COIN/Ipopt/lib -lipopt
> Undefined                       first referenced
>  symbol                             in file
> ddot_                               /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(linesearch.o)
> dspr_                               /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b.o)
> dasum_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(resto_filter.o)
> daxpy_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(linesearch.o)
> dcopy_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(ipopt.o)
> dgemv_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b_lm.o)
> dgesv_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_step_full.o)
> dnrm2_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(mainloop.o)
> dscal_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(linesearch.o)
> dspev_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_pz.o)
> dspmv_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b.o)
> dspr2_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b.o)
> dswap_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(mod_chol.o)
> dtpsv_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b_lm.o)
> dlamch_                             /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_pz_cg.o)
> dppsvx_                             /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_pz_cg.o)
> dpptrf_                             /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b_lm.o)
> dpptrs_                             /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_pz.o)
> dspevx_                             /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_pz_cg.o)
> idamax_                             /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(linesearch.o)
> ld: fatal: Symbol referencing errors. No output written to example
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 312]$ NOTICE: Invoking /opt/
> SUNWspro/bin/f90 -f77 -ftrap=%none -O -o example example.o -L/home/gn046ng/
> COIN/Ipopt/lib -lipopt
> bash: NOTICE:: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 313]$ Undefined
> first referenced
> bash: Undefined: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 314]$  symbol
> in file
> bash: symbol: command not found
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> ddot_                               /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(linesearch.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(l'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> dspr_                               /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(u'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> dasum_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(resto_filter.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(r'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> daxpy_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(linesearch.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(l'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> dcopy_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(ipopt.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(i'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> dgemv_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(update_b_lm.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(u'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$
> dgesv_                              /home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(get_step_full.o)
> bash: syntax error near unexpected token `/home/gn046ng/COIN/Ipopt/lib/
> libipopt.a(g'
> [sunc26 COIN/Ipopt/EXAMPLES/Fortran_example 315]$ dnrm2_
>
> Thank you so much in advance.
>
> Danh
>
> _______________________________________________
> Coin-ipopt mailing list
> Coin-ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-ipopt
>




More information about the Coin-ipopt mailing list