problem compiling ROMS/Linux-pgi(paraller)
-
- 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)
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
/usr/bin/ld:cannot open output file/oceanM :Permission denied
make: ***[/oceanM] Error 2
How can I resolve it?
Thanks
Re: problem compiling ROMS/Linux-pgi(paraller)
I believe you have to just rename (or remove) the old oceanM.
-
- 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)
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?
Re: problem compiling ROMS/Linux-pgi(paraller)
ok, then forget my tipslvester wrote:first,I can't find the file :oceanM,maybey there are not this file.
it's the linker you run in the last step in compiling. Did you get any error before that point?slvester wrote: Second,/usr/bin/ld,what's this mean?
-
- 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)
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
/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
Re: problem compiling ROMS/Linux-pgi(paraller)
/usr/bin/ld: cannot open output file /oceanM: Permission denied
should this be:
./oceanM
what do you have for BINDIR
?
should this be:
./oceanM
what do you have for BINDIR
?
-
- 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)
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
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
Re: problem compiling ROMS/Linux-pgi(paraller)
try
note that there is a 'dot'. I don't see the 'dot' in your post.
Code: Select all
BINDIR ?= .
It should be there.slvester wrote: BINDIR ?=
-
- 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)
you are right .It is ok now.Thank you very much.
the error is so small that it is hard to find.
Thanks!
the error is so small that it is hard to find.
Thanks!