-
Notifications
You must be signed in to change notification settings - Fork 730
build error due to mismatch libnetcdf-c++4 API #226
Comments
Yeah, netcdf is a bad actor, arbitrarily changing API functionality and syntax with no macros to detect the version. I don't have a fix for this, and it remains similarly broken under Ubuntu 14 because of a netcdf bug that may or may not be fixed by now that forced a change in syntax for netcdf variables. In this case, it looks like they changed the NcException API from the version that ships with Ubuntu 16.04. And that makes me wonder what else might have broken in the process. |
4.3 (which ships with 18.04) defines NcException as above, but 4.2 (which ships with 16.04) defines it as: This is a trivial fix if we can find a compile-time version detection for netcdf. Googling so far has not been of much help. |
IDK why but The problem still exists and I'm getting the same error:
That and:
Everything's fine to step 13/15 and then these happens. By the way I have also changed the cub version in the Dockerfile since it didn't work when I installed it manually. Also commented lines related to cmake, and installed it manually:
So, is there any steps that I'm missing or any changes should be applied on some files? I'm not sure if this line should be changed or not:
Since I'm using ubuntu 18.04. It's been a while I'm trying to build this engine, so any comments would be helpful. |
FROM nvidia/cuda:9.1-cudnn7-devel-ubuntu16.04
^^^^ I guess you built DSSTNE in container, which was Ubuntu16.04. Like what @scottlegrand mentioned, the default version of netCDF for Ubuntu16.04 is v4.2, which is too old for DSSTNE. Thus, you need to upgrade netCDF to v4.3, or use the docker image based on Ubuntu18.04, then install the default netCDF. |
I think setup.md needs to be updated to remind users to use netCDF v4.3 |
Thanks @jeng1220 The netCDF version of my system is 4.6, I couldn't downgrade its version because every time it fetches the latest available, and I'm trying to build this using the docker image on my system.
and still getting the same error, here's the last lines:
and when I change the first line to I encounter some other errors one is mentioned in issue #224 and the other is : UPDATE Okay so I have changed some lines of the
I have no idea how to solve this one, any helps would be great. |
It threw:
the available constructors of NcException in libnetcdf-c++4 are (link):
there is no constructor accepting arguments like
(const char*, const std::string&, const char*, int)
apt install
command)The text was updated successfully, but these errors were encountered: