-
Notifications
You must be signed in to change notification settings - Fork 7
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
Build fails with GCC 11 on Linux #3
Comments
Did this issue resolve now that you sorted out the problem with having multiple versions of nauty on your system? If it persists, I recommend you use an older version of GCC. We tested Molassembler successfully up to GCC 10. |
No the issue is unfortunately not due to multiple nauty versions but due to non-portable C++ usage which is flagged only in GCC 11 and above. Edit: Also happens with GCC 10 |
This seems to be solvable by this somewhat hacky patch diff --git a/src/Molassembler/Graph/Canonicalization.cpp b/src/Molassembler/Graph/Canonicalization.cpp
index dcf244bc..0ac57edf 100644
--- a/src/Molassembler/Graph/Canonicalization.cpp
+++ b/src/Molassembler/Graph/Canonicalization.cpp
@@ -21,6 +21,7 @@
#include "Molassembler/Temple/Functional.h"
extern "C" {
+#define _Thread_local thread_local
#include "nauty/nausparse.h"
/*! |
I don't much want to include this patch in molassembler; this seems like an upstream issue, no? Line 5429: Fixing that by including a preprocessor redefinition in molassembler strikes me as the wrong way of fixing your issue. |
Trying to build molassembler against Nauty 2.7.2 fails with
cmake
mamba info
mamba list
The text was updated successfully, but these errors were encountered: