First time compilation error from empty build directory
I notice the following error each time I empty my build directory and compile source code from scratch:
[ 3%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils_autogen/mocs_compilation.cpp.o
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:1: error: ‘e_than_nothing’ does not name a type; did you mean ‘need_more_than_nothing’?
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:16: error: expected declaration before ‘}’ token
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:1: error: ‘e_than_nothing’ does not name a type; did you mean ‘need_more_than_nothing’?
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:16: error: expected declaration before ‘}’ token
Oddly enough, the error disappears and fully successful compilation occurs if I simply execute
make install
again. Has anyone else run into this odd and relatively innocuous error?
Full log:
rcaulk@3sr-yadebox:~/Yade/gitLabHTTPS/build$ make -j9 install
Scanning dependencies of target _GLViewer_autogen
Scanning dependencies of target WeightedAverage2d_autogen
Scanning dependencies of target _packObb_autogen
Scanning dependencies of target _polyhedra_utils_autogen
[ 0%] Automatic MOC for target _GLViewer
[ 0%] Automatic MOC for target _packObb
[ 0%] Automatic MOC for target WeightedAverage2d
[ 1%] Automatic MOC for target _polyhedra_utils
[ 1%] Built target WeightedAverage2d_autogen
[ 1%] Built target _packObb_autogen
[ 1%] Built target _polyhedra_utils_autogen
Scanning dependencies of target WeightedAverage2d
Scanning dependencies of target _packObb
Scanning dependencies of target _polyhedra_utils
[ 2%] Building CXX object py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d_autogen/mocs_compilation.cpp.o
[ 2%] Building CXX object py/CMakeFiles/_packObb.dir/_packObb_autogen/mocs_compilation.cpp.o
[ 2%] Building CXX object py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o
[ 2%] Building CXX object py/CMakeFiles/_packObb.dir/pack/_packObb.cpp.o
[ 3%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o
[ 3%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils_autogen/mocs_compilation.cpp.o
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:1: error: ‘e_than_nothing’ does not name a type; did you mean ‘need_more_than_nothing’?
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:16: error: expected declaration before ‘}’ token
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:1: error: ‘e_than_nothing’ does not name a type; did you mean ‘need_more_than_nothing’?
/home/rcaulk/Yade/gitLabHTTPS/build/py/_packObb_autogen/mocs_compilation.cpp:4:16: error: expected declaration before ‘}’ token
py/CMakeFiles/WeightedAverage2d.dir/build.make:86: recipe for target 'py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d_autogen/mocs_compilation.cpp.o' failed
make[2]: *** [py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d_autogen/mocs_compilation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
py/CMakeFiles/_packObb.dir/build.make:86: recipe for target 'py/CMakeFiles/_packObb.dir/_packObb_autogen/mocs_compilation.cpp.o' failed
make[2]: *** [py/CMakeFiles/_packObb.dir/_packObb_autogen/mocs_compilation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 3%] Built target _GLViewer_autogen
Scanning dependencies of target _GLViewer
[ 4%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/_GLViewer.cpp.o
[ 4%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/OpenGLManager.cpp.o
[ 4%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/GLViewerDisplay.cpp.o
[ 5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/GLViewer.cpp.o
[ 6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt5/GLViewerMouse.cpp.o
[ 6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o
In file included from /home/rcaulk/.local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/rcaulk/Yade/gitLabHTTPS/trunk/py/_polyhedra_utils.cpp:15:
/home/rcaulk/.local/lib/python2.7/site-packages/numpy/core/include/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 " \
^~~~~~~
CMakeFiles/Makefile2:701: recipe for target 'py/CMakeFiles/_packObb.dir/all' failed
make[1]: *** [py/CMakeFiles/_packObb.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:510: recipe for target 'py/CMakeFiles/WeightedAverage2d.dir/all' failed
make[1]: *** [py/CMakeFiles/WeightedAverage2d.dir/all] Error 2
/home/rcaulk/Yade/gitLabHTTPS/trunk/gui/qt5/GLViewer.cpp: In member function ‘virtual void GLViewer::keyPressEvent(QKeyEvent*)’:
/home/rcaulk/Yade/gitLabHTTPS/trunk/gui/qt5/GLViewer.cpp:252:36: warning: enum constant in boolean context [-Wint-in-bool-context]
bool alt=(e->modifiers() && Qt::ShiftModifier);
^~~~~~~~~~~~~
[ 7%] Linking CXX shared library lib/x86_64-linux-gnu/_GLViewer.so
[ 7%] Built target _GLViewer
[ 7%] Linking CXX shared library lib/x86_64-linux-gnu/_polyhedra_utils.so
[ 7%] Built target _polyhedra_utils
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2