problem compiling ROMS/Linux-pgi(paraller)

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

problem compiling ROMS/Linux-pgi(paraller)

#1 Unread post by slvester »

I get the following error message at the last two lines of the "make" run :
/usr/bin/ld:cannot open output file/oceanM :Permission denied
make: ***[/oceanM] Error 2

How can I resolve it?
Thanks

jacopo
Posts: 81
Joined: Fri Nov 21, 2003 9:30 pm
Location: CNR-ISMAR

Re: problem compiling ROMS/Linux-pgi(paraller)

#2 Unread post by jacopo »

I believe you have to just rename (or remove) the old oceanM.

slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

Re: problem compiling ROMS/Linux-pgi(paraller)

#3 Unread post by slvester »

Thanks! But there are two question.first,I can't find the file :oceanM,maybey there are not this file.Second,/usr/bin/ld,what's this mean?

jacopo
Posts: 81
Joined: Fri Nov 21, 2003 9:30 pm
Location: CNR-ISMAR

Re: problem compiling ROMS/Linux-pgi(paraller)

#4 Unread post by jacopo »

slvester wrote:first,I can't find the file :oceanM,maybey there are not this file.
ok, then forget my tip
slvester wrote: Second,/usr/bin/ld,what's this mean?
it's the linker you run in the last step in compiling. Did you get any error before that point?

slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

Re: problem compiling ROMS/Linux-pgi(paraller)

#5 Unread post by slvester »

thanks for you ,you are very patient.I am sorry for what I said,but I really can not find the oceanM file,I should try it again.some results are there:
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DPGI -D'ROOT_DIR="/dcfs2/users/slvester/roms"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/dcfs2/users/slvester/roms/ROMS/Functionals"' -D'SVN_REV="354M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/dcfs2/users/slvester/roms/ROMS/Include"' ROMS/Modules/mod_nesting.F > Build/mod_nesting.f90
ROMS/Bin/cpp_clean Build/mod_nesting.f90
cd Build; /opt/mpi/mvapich/1.1/gcc.pgf90/bin/mpif90 -c -O3 -tp k8-64 mod_nesting.f90
ar r Build/libMODS.a Build/mod_arrays.o Build/mod_average.o Build/mod_bbl.o Build/mod_biology.o Build/mod_boundary.o Build/mod_clima.o Build/mod_coupler.o Build/mod_coupling.o Build/mod_diags.o Build/mod_eclight.o Build/mod_eoscoef.o Build/mod_floats.o Build/mod_forces.o Build/mod_fourdvar.o Build/mod_grid.o Build/mod_iounits.o Build/mod_kinds.o Build/mod_mixing.o Build/mod_ncparam.o Build/mod_nesting.o Build/mod_netcdf.o Build/mod_obs.o Build/mod_ocean.o Build/mod_parallel.o Build/mod_param.o Build/mod_scalars.o Build/mod_sediment.o Build/mod_sources.o Build/mod_stepping.o Build/mod_storage.o Build/mod_strings.o Build/mod_tides.o
ar: creating Build/libMODS.a
ranlib Build/libMODS.a
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DPGI -D'ROOT_DIR="/dcfs2/users/slvester/roms"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/dcfs2/users/slvester/roms/ROMS/Functionals"' -D'SVN_REV="354M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/dcfs2/users/slvester/roms/ROMS/Include"' Master/esmf_roms.F > Build/esmf_roms.f90
ROMS/Bin/cpp_clean Build/esmf_roms.f90
cd Build; /opt/mpi/mvapich/1.1/gcc.pgf90/bin/mpif90 -c -O3 -tp k8-64 esmf_roms.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DPGI -D'ROOT_DIR="/dcfs2/users/slvester/roms"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/dcfs2/users/slvester/roms/ROMS/Functionals"' -D'SVN_REV="354M"' -IROMS/Include -IROMS/Nonlinear -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/dcfs2/users/slvester/roms/ROMS/Include"' Master/master.F > Build/master.f90
ROMS/Bin/cpp_clean Build/master.f90
cd Build; /opt/mpi/mvapich/1.1/gcc.pgf90/bin/mpif90 -c -O3 -tp k8-64 master.f90
/opt/mpi/mvapich/1.1/gcc.pgf90/bin/mpif90 -O3 -tp k8-64 Build/esmf_roms.o Build/master.o Build/ocean_control.o Build/ocean_coupler.o Build/propagator.o Build/roms_export.o Build/roms_import.o -o /oceanM Build/libNLM.a Build/libANA.a Build/libUTIL.a Build/libMODS.a -L/opt/libs/netcdf/3.6.2/gcc.pgf90/lib -lnetcdf
/usr/bin/ld: cannot open output file /oceanM: Permission denied
make: *** [/oceanM] Error 2
I

jcwarner
Posts: 1179
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: problem compiling ROMS/Linux-pgi(paraller)

#6 Unread post by jcwarner »

/usr/bin/ld: cannot open output file /oceanM: Permission denied

should this be:
./oceanM
what do you have for BINDIR
?

slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

Re: problem compiling ROMS/Linux-pgi(paraller)

#7 Unread post by slvester »

It is /oceanM
I sets the BINDIR for
BINDIR ?=
I also try to set the BINDIR?= /opt/defs2/users/slvester/roms/.but the result is the same,and then I set the BINDIR ?= 'pwd',the result is also:
/usr/bin/ld: cannot open output file /oceanM: Permission denied
make: *** [/oceanM] Error 2
I don't know why

jacopo
Posts: 81
Joined: Fri Nov 21, 2003 9:30 pm
Location: CNR-ISMAR

Re: problem compiling ROMS/Linux-pgi(paraller)

#8 Unread post by jacopo »

try

Code: Select all

BINDIR ?= .
note that there is a 'dot'. I don't see the 'dot' in your post.
slvester wrote: BINDIR ?=
It should be there.

slvester
Posts: 32
Joined: Mon Jun 01, 2009 12:59 pm
Location: second institution of oceanography,state oceanic administration China

Re: problem compiling ROMS/Linux-pgi(paraller)

#9 Unread post by slvester »

you are right .It is ok now.Thank you very much.
the error is so small that it is hard to find.
Thanks!

Post Reply