-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure on CentOS using cmake: return-statement with a value, in function returning 'void' #60
Comments
I think I know what's going on. The return statement with a value is coming from the NumPy C API's Anyhow, you might be able to get it working if you just change the signature of |
In my code I have: #if PY_MAJOR_VERSION == 2 On Mon, Jun 6, 2016 at 1:11 PM, Jim Bosch [email protected] wrote:
Those who don't understand recursion are doomed to repeat it |
Hi, 75% tests passed, 1 tests failed out of 4 Total Test time (real) = 1.58 sec The following tests FAILED: Thank you. |
Yes, that fixed it: I commented out all the 'assertEquivalent()' calls that used long() in dtype_test.py and the test suite now passes. |
Thanks for the testing, and I'm glad you've gotten it working. I'll try to work these into the master branch when I get a chance. If you have a patch (or a git fork) you'd be willing to contribute, that'd be even better. |
Fixed merged to master at f1ffaac. |
Hello,
I'm trying to install boost.numpy on my CentOS 6.6 platform using cmake and python 3.5.0 and numpy 1.10.0:
cmake -DPYTHON_LIBRARY=/usr/local/lib/libpython3.5m.so -D Boost_NO_BOOST_CMAKE=ON ../
-- Configuring project "BoostNumpy"
:
:
ImportError: No module named 'sphinx'
-- - Sphinx not found, "make html" will do nothing at all.
-- Project "BoostNumpy" configured.
-- + Now, type-in "cd /root/BoostNumpy-master/build && make && make test && make html && make install"!
-- + "BoostNumpy" will be installed in /usr/local.
-- Configuring done
-- Generating done
-- Build files have been written to: /root/BoostNumpy-master/build
make
[ 8%] Building CXX object CMakeFiles/boost_numpy.dir/src/boost/numpy/numpy.cpp.o
/root/BoostNumpy-master/src/boost/numpy/numpy.cpp: In function ‘void boost::numpy::initialize()’:
/root/BoostNumpy-master/src/boost/numpy/numpy.cpp:50: error: return-statement with a value, in function returning 'void'
make[2]: *** [CMakeFiles/boost_numpy.dir/src/boost/numpy/numpy.cpp.o] Error 1
make[1]: *** [CMakeFiles/boost_numpy.dir/all] Error 2
make: *** [all] Error 2
Suggestions and advice appreciated!
Thank you
The text was updated successfully, but these errors were encountered: