rock-learning / bolero

Behavior Optimization and Learning for Robots
https://rock-learning.github.io/bolero
Other
64 stars 29 forks source link

_ranking_svm.c is missing #103

Closed hwiedPro closed 5 years ago

hwiedPro commented 5 years ago

When building bolero the the file _ranking_svm.c is missing which has been removed in commit 99409c5f

(venv) ~/git/bolero-dev/learning/bolero/build (master)$ make install -j
Scanning dependencies of target python_setup
non-existing path in 'bolero/utils': '_ranking_svm.c'
Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)
running build_ext
running build_src
build_src
building extension "bolero.utils._ranking_svm" sources
building extension "bolero.wrapper._wrapper" sources
build_src: building npy-pkg config files
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'bolero.utils._ranking_svm' extension
compiling C sources
C compiler: /usr/bin/gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-I/media/hwiedemann/100F3CC0064B81ED/Home/git/bolero-dev/venv/lib/python3.5/site-packages/numpy/core/include -I/media/hwiedemann/100F3CC0064B81ED/Home/git/bolero-dev/venv/lib/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -I/media/hwiedemann/100F3CC0064B81ED/Home/git/bolero-dev/venv/include/python3.5m -c'
extra options: '-O3'
gcc: _ranking_svm.c
gcc: error: _ranking_svm.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: Command "/usr/bin/gcc -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/media/hwiedemann/100F3CC0064B81ED/Home/git/bolero-dev/venv/lib/python3.5/site-packages/numpy/core/include -I/media/hwiedemann/100F3CC0064B81ED/Home/git/bolero-dev/venv/lib/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -I/media/hwiedemann/100F3CC0064B81ED/Home/git/bolero-dev/venv/include/python3.5m -c _ranking_svm.c -o build/temp.linux-x86_64-3.5/_ranking_svm.o -MMD -MF build/temp.linux-x86_64-3.5/_ranking_svm.o.d -O3" failed with exit status 1
CMakeFiles/python_setup.dir/build.make:57: recipe for target 'python_setup' failed
make[2]: *** [python_setup] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/python_setup.dir/all' failed
make[1]: *** [CMakeFiles/python_setup.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
AlexanderFabisch commented 5 years ago

Please run rm -rf bolero-dev/learning/bolero/build and rebuild this package:

mkdir build
cd build
cmake_debug ..
make install

The ranking SVM needs a Cython extension. The C file of this extension is generated by CMake (line 30 of the top-level CMakeLists.txt). I'm not sure if it works if you just run cmake again without deleting the build folder but it might be possible.

Let me know if it works.

hwiedPro commented 5 years ago

I assume you meant first cd build and then cmake_debug ..? ;)

Found a typo in my export CYTHON=cython3 therefore the execution of the command during cmake_debug failed.

Now it works! Thanks for your help!