Skip to content

Build failure on CentOS using cmake: return-statement with a value, in function returning 'void' #60

Description

@classfire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions