compile ROMS3.0 using ifort

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
azhang
Posts: 21
Joined: Fri May 11, 2007 12:49 pm
Location: CSDL/NOS/NOAA

compile ROMS3.0 using ifort

#1 Unread post by azhang »

Hello, All,

I tried to compile ROMS3.0 on my Linux workstation using Intel Fortran Compiler 9.0 for Linux (ifort) without MPI (serial) . After running:

make or gmake

I got the following error message,

IPO link: can not find "("
ifort: error: problem during multi-file optimization compilation (code 1)
make: *** [Bin/ocenS] Error 1

Did anyone have this kind of problem?
Thanks

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#2 Unread post by kate »

Is that an error message from the compiler? Which file was it compiling and was was the compile command that was run by make?

gerardo
Posts: 12
Joined: Wed Sep 27, 2006 7:23 pm
Location: SGI

#3 Unread post by gerardo »

azhang wrote:
I got the following error message,

IPO link: can not find "("
ifort: error: problem during multi-file optimization compilation (code 1)
kate wrote:
Is that an error message from the compiler?
It is, and it comes from the link step. It is most likely due to the use of the "-ipo" compiler option (Inter-Procedural Optimization). This option, when libraries are involved, requires that Intel's 'xiar' utility (which comes with the compilers) is used instead of 'ar'. The fix is to change the line that defines AR in Linux-ifort.mk to

AR := xiar

Saludos,

Gerardo

azhang
Posts: 21
Joined: Fri May 11, 2007 12:49 pm
Location: CSDL/NOS/NOAA

#4 Unread post by azhang »

Hi, Kate and Gerardo,

Thanks a lot for your replies. I did what Gerardo told me to do, and I got the same error message. Then I go to google to search the error message, found out that the same error message came up mostly with ifort 9.0 compiler. So I switched to ifort 8.0. ROMS3.0 was successfully compiled.
I guess there might be bugs in ifort 9.0 Fortran compiler.

Thanks

AJ

gerardo
Posts: 12
Joined: Wed Sep 27, 2006 7:23 pm
Location: SGI

#5 Unread post by gerardo »

azhang wrote:
I switched to ifort 8.0. ROMS3.0 was successfully compiled.
I guess there might be bugs in ifort 9.0 Fortran compiler.
If your license allows, instead of going to older versions, try to get the latest 10.0 or 10.1 compilers. They do a good job and allow the entire source to be compiled with the "-ipo" option (with AR set to "xiar"), which provides better runtime performance.

wlcabos
Posts: 2
Joined: Fri Aug 05, 2005 3:22 pm
Location: Universidad de Alcala

#6 Unread post by wlcabos »

I have fixed this bug with the ifort compiler using this workaround:
create two empty files calld ")" and AS_NEEDED in the directory where you have the makefile. I hope it will help you
best regards

Post Reply