Compiling problem

Discussion about modeling ice with ROMS

Moderators: arango, robertson

Post Reply
Message
Author
papaya
Posts: 19
Joined: Mon Apr 02, 2012 4:58 pm
Location: Georgia Tech

Compiling problem

#1 Unread post by papaya »

When I was compiling ROMS, it gave me this error, even after I set in the makefile "MPI=off"

1. The problem is the "inline"?
2. Among f90 files, I could not find the mod_kinds.f90
3. In the propagator.f90, there are only two lines:
MODULE propagator_mod
END MODULE propagator_mod

Your suggestions will greatly appreciated!

Thanks.

Fan

/usr/bin/cpp -P -traditional -I/usr/local/packages/netcdf/4.1.3/mvapich2-1.6/gcc-4.4.5/include -DMPI -DLINUX -DX86_64 -DPGI -IInclude -IAdjoint -INonlinear -IRepresenter -ITangent -IDrivers -ISeaIce Drivers/ocean_control.F > ocean_control.f90
/usr/bin/cpp -P -traditional -I/usr/local/packages/netcdf/4.1.3/mvapich2-1.6/gcc-4.4.5/include -DMPI -DLINUX -DX86_64 -DPGI -IInclude -IAdjoint -INonlinear -IRepresenter -ITangent -IDrivers -ISeaIce Drivers/propagator.F > propagator.f90
Bin/cpp_clean ocean_control.f90
Bin/cpp_clean propagator.f90
mpif90 -c -O4 -fastsse -Mipa=fast,inline mod_kinds.f90
f951: error: unrecognized command line option "-Mipa=fast,inline"
f951: error: unrecognized command line option "-fastsse"

gmake: *** [mod_kinds.o] Error 1
gmake: *** Waiting for unfinished jobs....
rm seaice.f90 mod_kinds.f90
mv: cannot stat `oceanS': No such file or directory
./ROSS_compile: line 19: gamke: command not found
--- COMPILE COMPLETE

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

Re: Compiling problem

#2 Unread post by kate »

papaya wrote:/usr/bin/cpp -P -traditional -I/usr/local/packages/netcdf/4.1.3/mvapich2-1.6/gcc-4.4.5/include -DMPI -DLINUX -DX86_64 -DPGI -IInclude -IAdjoint -INonlinear -IRepresenter -ITangent -IDrivers -ISeaIce Drivers/propagator.F > propagator.f90
Bin/cpp_clean ocean_control.f90
Bin/cpp_clean propagator.f90
mpif90 -c -O4 -fastsse -Mipa=fast,inline mod_kinds.f90
f951: error: unrecognized command line option "-Mipa=fast,inline"
f951: error: unrecognized command line option "-fastsse"

gmake: *** [mod_kinds.o] Error 1
gmake: *** Waiting for unfinished jobs....
rm seaice.f90 mod_kinds.f90
mv: cannot stat `oceanS': No such file or directory
./ROSS_compile: line 19: gamke: command not found
--- COMPILE COMPLETE
You told it you are using the PGI compiler. Are you using the PGI compiler? You are using mpif90 which could be a wrapper around anything. It's invoking something called f951. That's the compiler that doesn't like the PGI options.

By the way, don't worry about the propogator code being empty. You're just not using the options where it would be used.

papaya
Posts: 19
Joined: Mon Apr 02, 2012 4:58 pm
Location: Georgia Tech

Re: Compiling problem

#3 Unread post by papaya »

Thanks Kate.

Yes, the compiler is not configured properly.

kate wrote:
papaya wrote:/usr/bin/cpp -P -traditional -I/usr/local/packages/netcdf/4.1.3/mvapich2-1.6/gcc-4.4.5/include -DMPI -DLINUX -DX86_64 -DPGI -IInclude -IAdjoint -INonlinear -IRepresenter -ITangent -IDrivers -ISeaIce Drivers/propagator.F > propagator.f90
Bin/cpp_clean ocean_control.f90
Bin/cpp_clean propagator.f90
mpif90 -c -O4 -fastsse -Mipa=fast,inline mod_kinds.f90
f951: error: unrecognized command line option "-Mipa=fast,inline"
f951: error: unrecognized command line option "-fastsse"

gmake: *** [mod_kinds.o] Error 1
gmake: *** Waiting for unfinished jobs....
rm seaice.f90 mod_kinds.f90
mv: cannot stat `oceanS': No such file or directory
./ROSS_compile: line 19: gamke: command not found
--- COMPILE COMPLETE
You told it you are using the PGI compiler. Are you using the PGI compiler? You are using mpif90 which could be a wrapper around anything. It's invoking something called f951. That's the compiler that doesn't like the PGI options.

By the way, don't worry about the propogator code being empty. You're just not using the options where it would be used.

Post Reply