-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fails to build with Eigen 3.4 #378
Comments
Just to note this is still an issue, and now it interacts with In lieu of making our code compatible with Eigen 3.4, the following quick-fix is easy to implement. Change this line: Line 71 in 5f6dd49
to: add_external_package(Eigen3 IGNORE_SYSTEM VERSION 3.3.4 CONFIG) and it will download and use the working version, regardless of what is installed on the system. |
Here is the error message from compiling
|
Update, now this seems to happen with Eigen 3.3 as well... I don't know what to do other than exclude |
The error comes from The simplest fix would be to remove |
"got better"... well, that's debatable, depends on your definition of "better". I've checked the affected section of code several times and still don't understand where a potential out-of-bounds assignment would happen. But since it seems to be coming from newer compiler versions, maybe this is something we need to keep an eye on, since more and more people will be upgrading their compilers and getting these confusing error messages. For the record, this was with gcc 11.2 |
If the user has Eigen installed globally, we will pick the global install instead of downloading a different one:
https://github.com/cosmo-epfl/librascal/blob/db2e2445d34c196c94731249061740123f9fbc28/cmake/rascalTools.cmake#L218
On macOS, the default Eigen distributed by homebrew is now 3.4.0, and the tests fail to build with this version. The error looks like this:
If I comment out the block looking for a global Eigen in
cmake/rascalTools.cmake
, Eigen 3.3 is downloaded, and I get the code to build.The text was updated successfully, but these errors were encountered: