Hello Lya, If I understand correctly, you have installed netCDF-Fortran (and dependencies) manually, but are unable to use them when building packages with `scons`. Is this correct? The issue doesn't appear to be in netCDF; rather, when trying to compile something that links against netCDF, the compiler is complaining that `netcdf.mod` was created by a different version of gfortran. Are you able to link against the netCDF Fortran interface without using scons? It sounds like scons may be using a different version of gfortran. Unfortunately, I am not familiar with scons, so I cannot tell you how to check the version scons is using, or if it is just using the system version. I suspect it must be using a different version, based on the error message you are being given. I hope this helps, -Ward > Hi, > > My name is Lya and I'm having some problems to use netcdf... I followed all > steps as described in "Building with netCDF-4 and the Remote Data Client" > to install zlib, hdf5, netcdf-4 and netcdf-fortran, but when I use "scons" > to compile my codes I have the message: > > Â"use netcdfÂ Â Â 1Fatal Error: Cannot read module file ânetcdf.modâ > opened at (1), because it was created by a different version of GNU Fortran > compilation terminated." > > I verified my gfortran version, and I have the "GNU Fortran (Ubuntu > 5.4.0-6 ubuntu1~16.04.4) 5.4.0 20160609". In internet forums I saw that > netcdf works with 4.8 versions, so I do not understand why it doesn't work > in a more recent version. > > My scons version is :"SCons by Steven Knight et al.: script: > v2.4.1.rel_2.4.1:3453:73fefd3ea0b0, 2015/11/09 03:25:05, by bdbaddog on > ubuntu1404-32bit engine: v2.4.1.rel_2.4.1:3453:73fefd3ea0b0, 2015/11/09 > 03:25:05, by bdbaddog on ubuntu1404-32bit engine path: > ['/usr/lib/scons/SCons']Copyright (c) 2001 - 2015 The SCons Foundation" > > I don't know if it can affect in someway...Can you please help me ? > > Thank you for your attention, > > Best regards,Â > Lya Lugon Cornejo Vom MarttensSkype: lya.lugon > > > Ticket Details =================== Ticket ID: SVU-469069 Department: Support netCDF Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.