Error compiling cosmo_131108_5.00_clm6 – in #9: CCLM
in #9: CCLM
Cookies disclaimer
Our site saves small pieces of text information (cookies) on your
device in order to verify your login. These cookies are essential
to provide access to resources on this website and it will not
work properly without.
Learn more
<p>
An error occurs when I try to compile cosmo_131108_5.00_clm6. Although there are no errors indicated for routine netcdf_io.f90, the size of the object file is only 250 Byte and the netcdf_io.mod is empty, which subsequently leads to errors within the module src_output.f90. I have tried nearly all netCDF Versions available but with no success. Did anyone face similar problems with this version?
</p>
<p>
Best, Johann
</p>
<p>
An error occurs when I try to compile cosmo_131108_5.00_clm6. Although there are no errors indicated for routine netcdf_io.f90, the size of the object file is only 250 Byte and the netcdf_io.mod is empty, which subsequently leads to errors within the module src_output.f90. I have tried nearly all netCDF Versions available but with no success. Did anyone face similar problems with this version?
</p>
<p>
Best, Johann
</p>
An error occurs when I try to compile cosmo_131108_5.00_clm6. Although there are no errors indicated for routine netcdf_io.f90, the size of the object file is only 250 Byte and the netcdf_io.mod is empty, which subsequently leads to errors within the module src_output.f90. I have tried nearly all netCDF Versions available but with no success. Did anyone face similar problems with this version?
<p>
Are you sure that libnetcdff.a contains also the C-Part of netCDF?
<br/>
Have you tried:
<br/>
<pre>
NC_LIB = /usr/lib/libnetcdf.a /usr/lib/libnetcdff.a
</pre>
</p>
<p>
Are you sure that libnetcdff.a contains also the C-Part of netCDF?
<br/>
Have you tried:
<br/>
<pre>
NC_LIB = /usr/lib/libnetcdf.a /usr/lib/libnetcdff.a
</pre>
</p>
<p>
Yes, I have tried both, but the problem is, that I never get to the link part. Compiling stops because the object file netcdf_io.o is obviously corrupt and netcdf_io.mod is empty. When starting compilation of src_output.f90 an error occurs at the statement “
<span class="caps">
USE
</span>
netcdf_io”: “Symbol send_asyn_io referenced not found in module netcdf_io.”
</p>
<p>
Johann
</p>
<p>
Yes, I have tried both, but the problem is, that I never get to the link part. Compiling stops because the object file netcdf_io.o is obviously corrupt and netcdf_io.mod is empty. When starting compilation of src_output.f90 an error occurs at the statement “
<span class="caps">
USE
</span>
netcdf_io”: “Symbol send_asyn_io referenced not found in module netcdf_io.”
</p>
<p>
Johann
</p>
Yes, I have tried both, but the problem is, that I never get to the link part. Compiling stops because the object file netcdf_io.o is obviously corrupt and netcdf_io.mod is empty. When starting compilation of src_output.f90 an error occurs at the statement “
USE
netcdf_io”: “Symbol send_asyn_io referenced not found in module netcdf_io.”
<p>
At last I found the mistake. For some reason the parameter COMFLG1 was missing in Fopts – at least compilation seems to work fine now.
<br/>
Thanks for support,
<br/>
Johann
</p>
<p>
At last I found the mistake. For some reason the parameter COMFLG1 was missing in Fopts – at least compilation seems to work fine now.
<br/>
Thanks for support,
<br/>
Johann
</p>
At last I found the mistake. For some reason the parameter COMFLG1 was missing in Fopts – at least compilation seems to work fine now.
Thanks for support,
Johann
Error compiling cosmo_131108_5.00_clm6
An error occurs when I try to compile cosmo_131108_5.00_clm6. Although there are no errors indicated for routine netcdf_io.f90, the size of the object file is only 250 Byte and the netcdf_io.mod is empty, which subsequently leads to errors within the module src_output.f90. I have tried nearly all netCDF Versions available but with no success. Did anyone face similar problems with this version?
Best, Johann
Hi Johann,
which machine are you using?
Could you provide your compile-script?
Best
Hans-Juergen
I use a Tyan machine with Debian 7 (Wheezy), mpich2, gfortran-4.7 and various netCDF-4 versions.
Fopts looks like:
PROGRAM = CLM _URB5
STDROOT = ${PWD}
SRCDIR = $( STDROOT )/src
OBJDIR = $( STDROOT )/obj
WORKDIR = $( STDROOT )/work
MPI _INC = /usr/include/mpich2
GRIB_INC = /home/zueger/CLM/dwd_grib_gf_par
NC_INC = /usr/include
LPATH = -L/usr/lib
LIBS = -lnetcdff
GRIB _LIB1 = /home/zueger/CLM/dwd_grib_gf_par/libgrib1.a
GRIB_LIB = -L/usr/lib -lgrib_api_f90 -lgrib_api
NETCDF = /usr/lib
NC_LIB = /usr/lib/libnetcdff.a
NC_MOD = -I/usr/include
#
-
compiler
-
linker
#F90 = /usr/bin/mpif90.mpich2_g -cpp -c
F902 =${F90}
LDPAR = /usr/bin/mpif90.mpich2_g -static
LDSEQ = gfortran
-
compile-flags
#COMFLG = -O3 -I$( SRCDIR ) -I$( MPI _INC) -I$(NC_INC) -I$( GRIB _INC) \ - DNETCDF - DCLM -DGRIBDWD #
COMFLG2=$( COMFLG )
COMFLG3=$( COMFLG )
COMFLG4=$( COMFLG ) #
-
link-flags
#LDFLG = -O3 - DSGI -I$( SRCDIR ) -I$(NC_INC) \ -I${MPI_INC} #
LIB = ${LPATH} ${LIBS} ${GRIB_LIB} ${NC_LIB}
This is the version with standard netCDF package, but the problem is the same with every package I used.
Best, Johann
Are you sure that libnetcdff.a contains also the C-Part of netCDF?
Have you tried:
Exactly, this was also my suggestion.
Hans-Juergen
Yes, I have tried both, but the problem is, that I never get to the link part. Compiling stops because the object file netcdf_io.o is obviously corrupt and netcdf_io.mod is empty. When starting compilation of src_output.f90 an error occurs at the statement “ USE netcdf_io”: “Symbol send_asyn_io referenced not found in module netcdf_io.”
Johann
At last I found the mistake. For some reason the parameter COMFLG1 was missing in Fopts – at least compilation seems to work fine now.
Thanks for support,
Johann