espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ESPResSo-users] Compilation trouble


From: Clemens Jochum
Subject: [ESPResSo-users] Compilation trouble
Date: Thu, 27 Apr 2017 17:25:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Dear all,

I am having some trouble with compiling only certain features of
espresso. I am using the latest version from github. In my build
directory I have a myconfig.hpp file with the following content:

#define ELECTROSTATICS
#define MASS
#define EXCLUSIONS

#define LENNARD_JONES
#define BOND_ANGLE

#define MPI_CORE
#define FORCE_CORE

#define HDF5
#define FFTW

This works on my computer, but when I try to compile it on the cluster
it does not work:

Input:
[...]$ ~/build/pypresso$ make myconfig=myconfig.hpp

Output:
Scanning dependencies of target myconfig
[  0%] Built target myconfig
Scanning dependencies of target EspressoConfig
[  0%] Generating config-features.hpp, config-features.cpp
Reading definitions from ~/source/espresso/src/features.def...
Done.
Writing ~/build/pypresso/src/core/config-features.hpp...
Done.
Writing ~/build/pypresso/src/core/config-features.cpp...
Done.
[  0%] Built target EspressoConfig
Scanning dependencies of target Constraints
[  1%] Building CXX object
src/core/constraints/CMakeFiles/Constraints.dir/ShapeBasedConstraint.cpp.o
In file included from ~/source/espresso/src/core/config.hpp:43:0,
                 from ~/source/espresso/src/core/cuda_init.hpp:22,
                 from ~/source/espresso/src/core/communication.hpp:61,
                 from ~/source/espresso/src/core/grid.hpp:47,
                 from ~/source/espresso/src/core/statistics.hpp:29,
                 from ~/source/espresso/src/core/energy.hpp:39,
                 from
~/source/espresso/src/core/constraints/Constraint.hpp:6,
                 from
~/source/espresso/src/core/constraints/ShapeBasedConstraint.hpp:6,
                 from
~/source/espresso/src/core/constraints/ShapeBasedConstraint.cpp:3:
~/build/pypresso/src/core/config-features.hpp:299:1: error: expected
class-name before ‘extern’
 extern const char* FEATURES[];
 ^
make[2]: ***
[src/core/constraints/CMakeFiles/Constraints.dir/ShapeBasedConstraint.cpp.o]
Error 1
make[1]: *** [src/core/constraints/CMakeFiles/Constraints.dir/all] Error 2
make: *** [all] Error 2

Regular compilation without config file and all features enabled is
successful on the cluster. Should I be doing something differently?

Side note: During succesfull compilation make displays the following
warning for several different files:

make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File
'src/core/io/writer/h5md/CMakeFiles/H5mdCore.dir/depend.make' has
modification time 97 s in the future

and this also pops up often:

/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning:
#warning "Using deprecated NumPy API, disable it by " "#defining
NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \

Is this something to be worried about?

Best,
Clemens





reply via email to

[Prev in Thread] Current Thread [Next in Thread]