-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Description
I am trying to build openmm-plumed (git) for x86_64/debian13/openmm-8.4.0/cuda-13.1/plumed-2.10.0 which is failing with:
[ 44%] Building CXX object CMakeFiles/OpenMMPlumed.dir/serialization/src/PlumedForceProxy.cpp.o
In file included from /opt/openmm-plumed/openmmapi/include/internal/PlumedForceImpl.h:38,
from /opt/openmm-plumed/openmmapi/src/PlumedForceImpl.cpp:32:
/usr/local/include/plumed/wrapper/Plumed.h:3132:10: error: 'unique_ptr' in namespace 'std' does not name a template type
3132 | std::unique_ptr<char[]> dynamic_buffer;
| ^~~~~~~~~~
/usr/local/include/plumed/wrapper/Plumed.h:1801:1: note: 'std::unique_ptr' is defined in header '<memory>'; this is probably fixable by adding '#include <memory>'
1800 | #include <array> /* array */
+++ |+#include <memory>
1801 | #include <initializer_list> /* initializer_list */
In file included from /opt/openmm-plumed/openmmapi/include/internal/PlumedForceImpl.h:38,
from /opt/openmm-plumed/openmmapi/src/PlumedForce.cpp:34:
/usr/local/include/plumed/wrapper/Plumed.h:3132:10: error: 'unique_ptr' in namespace 'std' does not name a template type
3132 | std::unique_ptr<char[]> dynamic_buffer;
| ^~~~~~~~~~
/usr/local/include/plumed/wrapper/Plumed.h:1801:1: note: 'std::unique_ptr' is defined in header '<memory>'; this is probably fixable by adding '#include <memory>'
1800 | #include <array> /* array */
+++ |+#include <memory>
1801 | #include <initializer_list> /* initializer_list */
make[2]: *** [CMakeFiles/OpenMMPlumed.dir/build.make:79: CMakeFiles/OpenMMPlumed.dir/openmmapi/src/PlumedForce.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/OpenMMPlumed.dir/build.make:93: CMakeFiles/OpenMMPlumed.dir/openmmapi/src/PlumedForceImpl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:155: CMakeFiles/OpenMMPlumed.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
With this one line fix I could successfully build it.
diff -uNr /usr/local/include/plumed/wrapper/Plumed.h.orig /usr/local/include/plumed/wrapper/Plumed.h
--- /usr/local/include/plumed/wrapper/Plumed.h.orig 2025-12-10 17:22:07.274319293 +0100
+++ /usr/local/include/plumed/wrapper/Plumed.h 2025-12-10 17:22:22.490319300 +0100
@@ -755,6 +755,7 @@
#include <cstdio> /* fprintf */
#include <cstdlib> /* abort */
#include <cassert> /* assert */
+#include <memory>
#else
#include <stddef.h>
#include <string.h>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels