jstraub/bnp

WORKSPACE_HOME is not defined. You must tell CMake where to find WORKSPACE_HOME

andyyuan78 opened this issue · 0 comments

ubgpu@ubgpu:/github/bnp$ export WORKSPACE_HOME=/home/ubgpu
ubgpu@ubgpu:
/github/bnp$
ubgpu@ubgpu:/github/bnp$
ubgpu@ubgpu:
/github/bnp$ cd build/
ubgpu@ubgpu:/github/bnp/build$ make
ubgpu@ubgpu:
/github/bnp/build$ cmake ..
Found python library: /usr/lib/x86_64-linux-gnu/libpython3.4m.so
Found python include: /usr/include/python3.4m
--- using WORKSPACE_HOME found in /home/ubgpu
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubgpu/github/bnp/build
ubgpu@ubgpu:/github/bnp/build$ make install
Scanning dependencies of target bnp
[ 12%] Building CXX object CMakeFiles/bnp.dir/src/hdp_py.cpp.o
:0:1: error: macro names must be identifiers
In file included from /usr/include/python3.4m/numpy/ndarraytypes.h:1761:0,
from /usr/include/python3.4m/numpy/ndarrayobject.h:17,
from /home/ubgpu/github/bnp/./include/numpyArma.hpp:16,
from /home/ubgpu/github/bnp/./include/baseMeasure_py.hpp:6,
from /home/ubgpu/github/bnp/src/hdp_py.cpp:5:
/usr/include/python3.4m/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 "
^
In file included from /home/ubgpu/github/bnp/./include/baseMeasure_py.hpp:5:0,
from /home/ubgpu/github/bnp/src/hdp_py.cpp:5:
/home/ubgpu/github/bnp/./include/baseMeasure.hpp: In member function ‘virtual void NIW::posterior(const NIW&)’:
/home/ubgpu/github/bnp/./include/baseMeasure.hpp:517:14: error: expected primary-expression before ‘;’ token
mDelta +=;
^
In file included from /usr/include/signal.h:342:0,
from /usr/include/python3.4m/pyfpe.h:129,
from /usr/include/python3.4m/Python.h:131,
from /usr/include/boost/python/detail/wrap_python.hpp:142,
from /usr/include/boost/python/detail/prefix.hpp:13,
from /usr/include/boost/python/args.hpp:8,
from /usr/include/boost/python.hpp:11,
from /home/ubgpu/github/bnp/./include/numpyArma.hpp:14,
from /home/ubgpu/github/bnp/./include/baseMeasure_py.hpp:6,
from /home/ubgpu/github/bnp/src/hdp_py.cpp:5:
/home/ubgpu/github/bnp/src/hdp_py.cpp: In function ‘void init_module_libbnp()’:
/usr/include/python3.4m/numpy/__multiarray_api.h:1708:35: error: return-statement with a value, in function returning 'void' [-fpermissive]
#define NUMPY_IMPORT_ARRAY_RETVAL NULL
^
/usr/include/python3.4m/numpy/__multiarray_api.h:1713:151: note: in expansion of macro ‘NUMPY_IMPORT_ARRAY_RETVAL’
#define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NUMPY_IMPORT_ARRAY_RETVAL; } }
^
/home/ubgpu/github/bnp/src/hdp_py.cpp:35:2: note: in expansion of macro ‘import_array’
import_array();
^
make[2]: *** [CMakeFiles/bnp.dir/src/hdp_py.cpp.o] Error 1
make[1]: *** [CMakeFiles/bnp.dir/all] Error 2
make: *** [all] Error 2
ubgpu@ubgpu:
/github/bnp/build$