[Coin-ipopt] Fortran version of Ipopt in 64 bit
Andreas Waechter
andreasw at watson.ibm.com
Sat Apr 8 12:35:28 EDT 2006
Hi Danh,
It seems that you compiled the Ipopt library without the -xarch=v9b flag,
and that is probably be the reason why you have problems (the linker
complains that the Ipopt library does not contain the 64bit version).
If you don't want to use the compiler flags that "configure" picks for
you, you need to run configure with FFLAGS='My compiler flags' in the
command line (and make sure you are using compatible C compiler flags as
well, which you specify with CFLAGS). After that, you need to run 'make
clean' and then 'make install'.
This will also cause to have the Makefile in the examples directory have
the chosen compiler flags in there. If those are not the ones you want,
specify what you want in FFLAGS and CFLAGS for configure and reru the
compilation.
I hope this help,
Andreas
On Fri, 7 Apr 2006, Nguyen An Danh wrote:
> 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'
>
> _______________________________________________
> 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