Skip to content
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

Error when installing make -j4 #25

Open
structuredDesigner opened this issue Oct 7, 2017 · 2 comments
Open

Error when installing make -j4 #25

structuredDesigner opened this issue Oct 7, 2017 · 2 comments

Comments

@structuredDesigner
Copy link

I have an error when doing "make -j4".

When I run "cmake ..", everything seems to be in order; the last messages I get are:

-- Detected modules:
-- ViennaMini
-- Configuring modules now ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ernesto/viennamos-dev/build

However, when I run "make -j4", this is what I get:

[ 1%] Generating include/moc_mainwindow.cxx
[ 2%] Generating qrc_thesource.cxx
[ 3%] Generating include/moc_module_manager.cxx
[ 4%] Generating include/moc_module_interface.cxx
[ 5%] Building CXX object modules/ViennaMini/CMakeFiles/viennamini_core.dir///external/ViennaMini/src/config.cpp.o
[ 6%] Building CXX object modules/ViennaMini/CMakeFiles/viennamini_core.dir///external/ViennaMini/src/simulator_tetrahedral3d.cpp.o
usr/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
framework/CMakeFiles/viennamos.dir/build.make:67: recipe for target 'framework/include/moc_module_manager.cxx' failed
make[2]: *** [framework/include/moc_module_manager.cxx] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 7%] Building CXX object modules/ViennaMini/CMakeFiles/viennamini_core.dir///external/ViennaMini/src/simulator_triangular2d.cpp.o
usr/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
framework/CMakeFiles/viennamos.dir/build.make:72: recipe for target 'framework/include/moc_module_interface.cxx' failed
make[2]: *** [framework/include/moc_module_interface.cxx] Error 1
[ 8%] Building CXX object modules/ViennaMini/CMakeFiles/viennamini_core.dir///external/ViennaMini/src/device_triangular2d.cpp.o
usr/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
framework/CMakeFiles/viennamos.dir/build.make:62: recipe for target 'framework/include/moc_mainwindow.cxx' failed
make[2]: *** [framework/include/moc_mainwindow.cxx] Error 1
CMakeFiles/Makefile2:117: recipe for target 'framework/CMakeFiles/viennamos.dir/all' failed
make[1]: *** [framework/CMakeFiles/viennamos.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Building CXX object modules/ViennaMini/CMakeFiles/viennamini_core.dir///external/ViennaMini/src/device_tetrahedral3d.cpp.o
[ 11%] Linking CXX static library libviennamini_core.a
[ 11%] Built target viennamini_core
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

As far as I understand, this parsing problem with "BOOST_JOIN" should be solved by statement "ADD_DEFINITIONS(-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)", which is already included in the CMakeLists.txt file. At this point I'm not sure what else to do...

@karlrupp
Copy link
Collaborator

karlrupp commented Oct 7, 2017

This might be a version conflict in boost. Which version of Boost do you use?

@structuredDesigner
Copy link
Author

This is part of the "cmake .." output:
(...)
Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.7")
-- Qt Include Path: /usr/include/qt4
-- Qt Library Path: /usr/lib/x86_64-linux-gnu
-- VTK found (Version 8.1)
(...)

  • Boost version: 1.65.1
    -- Boost Include Path: /usr/local/include
    -- Boost Library Path: /usr/local/lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants