[MITgcm-support] Problem building optim.x
Heriberto Vazquez
heriberto1mx at gmail.com
Thu Mar 19 12:26:34 EDT 2015
Hello everyone
I am trying to build "optim.x" on an old machine with ubuntu 14.04 gfortran
4.8, gcc 4.8 and Intel core 2 duo. But I got an error in the compilation,
the error is with the blas1 library, the message is:
hvazquez at hvazquez:~/MITgcm_c65j/optim$ make all
cat optim_main.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ > optim_main.f
cat optim_sub.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ > optim_sub.f
cat optim_numbmod.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ > optim_numbmod.f
cat optim_initmod.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ > optim_initmod.f
cat optim_readdata.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ >
optim_readdata.f
cat optim_writedata.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ >
optim_writedata.f
cat optim_write_control.F | /lib/cpp -P -traditional -DREAL_BYTE=4
-DMAX_INDEPEND=1000000 -D_RL='double precision' -D_RS='double precision'
-D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ >
optim_write_control.f
cat xerbla.F | /lib/cpp -P -traditional -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ > xerbla.f
cat simul.F | /lib/cpp -P -traditional -DREAL_BYTE=4 -DMAX_INDEPEND=1000000
-D_RL='double precision' -D_RS='double precision' -D_d='D' -DOFFLINE -I.
-I../verification/tutorial_global_oce_optim/build_oadhjvp/ > simul.f
gfortran -c optim_main.f
gfortran -c optim_sub.f
gfortran -c optim_numbmod.f
gfortran -c optim_initmod.f
gfortran -c optim_readdata.f
gfortran -c optim_writedata.f
gfortran -c optim_write_control.f
gfortran -c xerbla.f
gfortran -c simul.f
gfortran -o optim.x optim_main.o optim_sub.o optim_numbmod.o
optim_initmod.o optim_readdata.o optim_writedata.o optim_write_control.o
xerbla.o simul.o -L. -L../lsopt/ -llsopt_ecco -lblas1
/usr/bin/ld: skipping incompatible ../lsopt//libblas1.a when searching for
-lblas1
/usr/bin/ld: cannot find -lblas1
collect2: error: ld returned 1 exit status
make: *** [optim.x] Error 1
I am following the instructions provided in this link
http://mitgcm.org/public/r2_manual/latest/online_documents/node164.html
because I want to run that example.
I tried with every single library in the folder /lsopt even I download the
one for linux provided in this link http://www.netlib.org/blas/archives/
but the same error. I tried to get the goto libraries but the link doesn't
work anymnore.
I am sure I am doing something wrong, probably with the modification in the
Makefile but I don't know how do/fix it. I don't know if someone could
bring some light on this.
By the way MITgcm and OpenAD are running without problem in this machine.
Have a great day
--
Saludos
Heriberto
SCRIPPS Institution of Oceanography UCSD
__
No podemos resolver problemas usando el mismo tipo de pensamiento que
usamos cuando los creamos...
Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20150319/5bacdee5/attachment.htm>
More information about the MITgcm-support
mailing list