You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building SSAGES-0.9.3-alpha for Qbox fails using gcc-11/g++-11 on MacOSX 12.3 Monterey. The build is using openmpi-4.1.2.
The cmake command is cmake -DQBOX=yes .. -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 .
The make command fails due to a missing #include <cstdio> in SAGES-0.9.3-alpha/include/mxx/common.hpp.
/Users/fgygi/software/ssages/SSAGES-0.9.3-alpha/include/mxx/common.hpp:41:5: error: 'printf' was not declared in this scope
41 | printf("\n[Rank %d] %s:%d: %s: Assertion `%s` failed. Aborting.\n", rank, file, line, func, cond);
| ^~~~~~
/Users/fgygi/software/ssages/SSAGES-0.9.3-alpha/include/mxx/common.hpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio'?
+++ |+#include <cstdio>
1 | /*
Adding that #include statement fixes the issue and the build completes.
The text was updated successfully, but these errors were encountered:
When compiling a library that depends on this on MacOS Monterry with gcc and OpenMPI (both installed via homebrew) the build fails because of `cstdio` missing (see [here](SSAGESproject/SSAGES#36)).
Everything works well when building with clang instead. But I saw no harm in explicitly including `cstdio`.
Building SSAGES-0.9.3-alpha for Qbox fails using gcc-11/g++-11 on MacOSX 12.3 Monterey. The build is using openmpi-4.1.2.
The cmake command is
cmake -DQBOX=yes .. -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11
.The make command fails due to a missing
#include <cstdio>
inSAGES-0.9.3-alpha/include/mxx/common.hpp
.Adding that #include statement fixes the issue and the build completes.
The text was updated successfully, but these errors were encountered: