[Coin-ipopt] Fortran version of Ipopt in 64 bit

Nguyen An Danh andanh at iam.rwth-aachen.de
Fri Apr 7 06:16:10 EDT 2006


Hi,

I want to compile Fortran version of Ipopt in 64 bit addressing mode on SUN 
Grid.
I have already added -xarch=v9b in FFLAGS in Makefile , i.e.
FFLAGS=-O -xarch=v9b, and recompile IPOPT.  But it seems that compilation is 
not succeed. Consequently, compilation of example.f is not succeed too.

Could you me how to overcome that? 

Thank you in advance.

Danh.

1.  Compilation of IPOPT
...
f77  -O -c -o ipopt_check.o ipopt_check.f
NOTICE: Invoking /opt/Studio10/SUNWspro/bin/f90 -f77 -ftrap=%none -O -c -o 
ipopt_check.o ipopt_check.f
ipopt_check.f:
        ipopt_check:

      call GET_G(NORIG, RW(p_x+1), IW(p_ivar+1), NORIG, XORIG,
      ^
"ipopt_check.f", Line = 276, Column = 7: WARNING: This statement can not be 
reached.

      call C_OUT(2,0,1,' ')
      ^
"ipopt_check.f", Line = 415, Column = 7: WARNING: This statement can not be 
reached.
...
2. Compilation of example.f 
make
f77 -O -xarch=v9b -c -o example.o `test -f 'example.f' || echo './'`example.f
NOTICE: Invoking /opt/Studio10/SUNWspro/bin/f90 -f77 -ftrap=%none -O 
-xarch=v9b -c -o example.o example.f
example.f:
 MAIN example:
        optimise:
        ev_f:
        ev_g:
        ev_c:
        ev_a:
        ev_h:
        init_prob:
        superp:
        elimit:
        elimit_mc:
        alplast:
        soilplast:
        soilplast_vm:
        size_prob:
        start_point:
        rhs_const:
        flin:
        f_mc:
        g_mc:
        h_mc:
        inputc:
        sortrx:
        f_vm:
        g_vm:
        h_vm:
        alpha_mc:
        f_sigm:
        g_sigm:
bla=;\
for file in example.o; do bla="$bla `echo $file`"; done; \
f77 -O -xarch=v9b -o example $bla -L/home/gn046ng/COIN/Ipopt/lib -lipopt 
-xlic_lib=sunperf
NOTICE: Invoking /opt/Studio10/SUNWspro/bin/f90 -f77 -ftrap=%none -O 
-xarch=v9b -o example example.o -L/home/gn046ng/COIN/Ipopt/lib -lipopt 
-xlic_lib=sunperf
ld: warning: file /home/gn046ng/COIN/Ipopt/lib/
libipopt.a(eval_hesscon_v_dummy.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
ld: fatal: Symbol referencing errors. No output written to example
*** Error code 1
make: Fatal error: Command failed for target `example'




More information about the Coin-ipopt mailing list