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

Failed during installation #1

Open
RobertoMantas opened this issue Apr 6, 2020 · 4 comments
Open

Failed during installation #1

RobertoMantas opened this issue Apr 6, 2020 · 4 comments
Labels

Comments

@RobertoMantas
Copy link

RobertoMantas commented Apr 6, 2020

I am compiling the code in macOS Mojave, and I am facing an issue.
Everything works correctly until the last step in the building process. Where I have to run "cmake --build . -j2". I get the following error:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gmake[2]: Entering directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[2]: Entering directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[2]: Leaving directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[2]: Leaving directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[2]: Entering directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[2]: Entering directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
[ 1%] Building CXX object src/chem/CMakeFiles/chem.dir/calcdens.cpp.o
[ 2%] Building CXX object src/CMakeFiles/eflux.dir/eflux/eflux.cpp.o
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/calcdens.cpp:7:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/calcdens.hpp:11:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/reaclist.hpp:15:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/reaction.hpp:20:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/planet/allplanets.hpp:10:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/planet/planet.hpp:17:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/species.hpp:12:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/path.hpp:13:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/eleccrs.hpp:32:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/crs.hpp:14:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/cppscixml/scixml.hpp:13:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/math/mathfunction.hpp:12:
/Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/math/mathstring.hpp:26:10: fatal error: 'boost/regex.hpp' file not found
#include <boost/regex.hpp>
^~~~~~~~~~~~~~~~~
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/eflux/eflux.cpp:11:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/eflux/eflux.hpp:12:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/math/mathflux.hpp:12:
/Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/math/mathstring.hpp:26:10: fatal error: 'boost/regex.hpp' file not found
#include <boost/regex.hpp>
^~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [src/CMakeFiles/eflux.dir/build.make:80: src/CMakeFiles/eflux.dir/eflux/eflux.cpp.o] Error 1
gmake[2]: Leaving directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[1]: *** [CMakeFiles/Makefile2:511: src/CMakeFiles/eflux.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
1 error generated.
gmake[2]: *** [src/chem/CMakeFiles/chem.dir/build.make:80: src/chem/CMakeFiles/chem.dir/calcdens.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
[ 3%] Building CXX object src/chem/CMakeFiles/chem.dir/chem.cpp.o
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/chem.cpp:9:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/chem.hpp:13:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/calcdens.hpp:11:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/reaclist.hpp:15:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/chem/reaction.hpp:20:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/planet/allplanets.hpp:10:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/planet/planet.hpp:17:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/species.hpp:12:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/path.hpp:13:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/eleccrs.hpp:32:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/species/crs.hpp:14:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/cppscixml/scixml.hpp:13:
In file included from /Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/math/mathfunction.hpp:12:
/Volumes/GAS_HDD/aeroplanets2/aeroplanets/src/math/mathstring.hpp:26:10: fatal error: 'boost/regex.hpp' file not found
#include <boost/regex.hpp>
^~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [src/chem/CMakeFiles/chem.dir/build.make:93: src/chem/CMakeFiles/chem.dir/chem.cpp.o] Error 1
gmake[2]: Leaving directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake[1]: *** [CMakeFiles/Makefile2:1057: src/chem/CMakeFiles/chem.dir/all] Error 2
gmake[1]: Leaving directory '/Volumes/GAS_HDD/aeroplanets2/aeroplanets/build'
gmake: *** [Makefile:101: all] Error 2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Is this a common error with e predefined fix?

Thank you very much!
Roberto

@scivision
Copy link
Member

I haven't seen this issue offhand. If you use Homebrew, I would consider trying to build with Ninja

brew install ninja

or download and extract Ninja: https://github.com/ninja-build/ninja/releases

then rebuild

cmake -B buildn -G Ninja

cmake --build buildn

@scivision
Copy link
Member

I tried this via CI on Mac and saw the same problem. I don't have access to a Mac for several weeks due to current situation and other work needs. At least I can see the same issue.

@scivision scivision added the macos label Apr 7, 2020
@RobertoMantas
Copy link
Author

I also tried the Ninja solution to build but it still has an error. I am not sure where the problem may be.

@scivision
Copy link
Member

It's in getting the includes right in cmake but it's difficult to diagnose when I don't actually have a Mac. Unfortunately I don't expect to have one possibly for as long as a few months.

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

No branches or pull requests

2 participants