-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues while building (pio_nc.c) #2001
Comments
The latest version of the netcdf library has changed this, however you can enable legacy symbols by building with NETCDF_ENABLE_LEGACY_MACROS. See https://github.com/Unidata/netcdf-c/blob/main/include/netcdf.h#L118 |
I tried recompiling netCDF-c with the flag --enable-unsafe-macros but still got the error while building. Let me try your 2nd suggestion and I will let you know. |
@jedwards4b. Sorry, I can see your commit (with 10 modified files) but cannot clone the branch (there is a message indicating 'This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.'). |
It is a fork, the repo is https://github.com/jedwards4b/ParallelIO.git |
I'm unfamiliar with git remote so I might be doing something wrong (not sure). I tried several combinations such as:
At this point, trying |
After the git fetch command you should just |
It seems to have gone over that bump but it's now generating the error:
|
I'm sorry, this must be why it got lost instead of being merged. I'll have to work on it and get back to you. |
OK. |
I'm unable to reproduce your problem. I do have a newer gnu compiler than you are using, but I'm not sure what the difference might be otherwise. One possible cause might be the hdf5 version on which netcdf was built. I am using hdf5/1.12.3, if you are using a 1.14 version of hdf5 this may be the problem.
|
Yes, I'm using HDF5 v1.14.5. The compiler is not so new because the OS is still Ubuntu 22.04 (will migrate to Ubuntu 24.04 in the next few days). |
I will have a pio 2.6.5 soon with a port to netcdf v4.9.3. Are you still using hdf5 v1.14.5 with your netcdf v4.9.2 build? Let me know if you have more issues, but the first thing I would suspect is HDF5. |
@jedwards4b, hdf5 v1.14.5, netcdf v4.9.2 and PIO v2.6.2 seem to be working well together, no problem thus far. |
Hello,
I'm trying to compile v2.6.2 but building generates the error:
I saw #1994 and though that maybe using the branch version might fix the issue, but the error still appears. My only potential explanation (or fix) would be the netCDF version, but I would definitely prefer to not have more than one netCDFs in the system.
Thanks.
P.S.
The text was updated successfully, but these errors were encountered: