-
Notifications
You must be signed in to change notification settings - Fork 279
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
GCC 6.1 compilation error #1000
Comments
@taranco, could you elaborate on the build environment, including version of nupic.core, the operating system and its version? Thank you. |
I see, it's a feature of GCC6. I came across this description:
in https://gnu.wildebeest.org/blog/mjw/2016/02/15/looking-forward-to-gcc6-many-new-warnings/. See also http://en.cppreference.com/w/cpp/language/noexcept_spec |
The culprit function is the destructor:
C++ has no mechanism for passing an exception out of a destructor (the GCC6 runtime calls |
It's Arch Linux (GNU/Linux) @vitaly-krugl:
|
When attempting to compile nupic.core with gcc 6.1 the following error occurs:
Using the flag
-Wno-error=terminate
seems to solve the problem. Nupic.core compiles an pass the tests. I suggest take this into account (CommonCompilerConfig.cmake) when this version of gcc is detected.The text was updated successfully, but these errors were encountered: