UW-Computational-Plasma-Group / warpii

Plasma codes built on the deal.ii finite element library
MIT License
0 stars 1 forks source link

Build failing after boost install #56

Open shumlak opened 3 weeks ago

shumlak commented 3 weeks ago

I installed boost, but the build still fails. Here is the end of the output from "make install-dealii":

[ 1%] Building CXX object bundled/kokkos-3.7.00/CMakeFiles/bundled_kokkos_release.dir/core/src/impl/Kokkos_HostSpace_deepcopy.cpp.o /bin/sh: ccache: command not found make[4]: [bundled/kokkos-3.7.00/CMakeFiles/bundled_kokkos_release.dir/core/src/impl/Kokkos_HostSpace_deepcopy.cpp.o] Error 127 make[3]: [bundled/kokkos-3.7.00/CMakeFiles/bundled_kokkos_release.dir/all] Error 2 make[2]: [all] Error 2 make[1]: [/Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo] Error 2 make: *** [install-dealii] Error 2

Not surprisingly, running "make build" also fails: In file included from /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/type_index/stl_type_index.hpp:47: /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/container_hash/hash.hpp:130:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct hash_base : std::unary_function<T, std::size_t> {};


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/common_params.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/normalization.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/species_func.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/phmaxwell_func.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/fields.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/species.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/solution_vec.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/grid_generation.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/grid_descriptions.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/grid.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/input_file.cc.o] Error 1
1 error generated.
1make[3]: *** [src/CMakeFiles/libwarpii.dir/warpii.cc.o] Error 1
 error generated.
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/solution_helper.cc.o] Error 1
make[3]: *** [src/CMakeFiles/libwarpii.dir/dgsem/nodal_dg_discretization.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/dg_solution_helper.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/source_operator.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/dg_solver.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/maxwell_app.cc.o] Error 1
[ 40%] Linking CXX static library ../../../lib/libgtest.a
[ 40%] Built target gtest
[ 42%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 42%] Building CXX object _deps/googletest-build/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/flux_operator.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/dg_solver.cc.o] Error 1
1 error generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/five_moment.cc.o] Error 1
make[2]: *** [src/CMakeFiles/libwarpii.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 44%] Linking CXX static library ../../../lib/libgtest_main.a
[ 44%] Built target gtest_main
[ 45%] Linking CXX static library ../../../lib/libgmock.a
[ 45%] Built target gmock
make[1]: *** [all] Error 2
make: *** [build] Error 2
shumlak commented 2 weeks ago

Still errors after ccache install. Here are snippets from the output that list errors: In file included from /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/type_index/stl_type_index.hpp:47: /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/container_hash/hash.hpp:130:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct hash_base : std::unary_function<T, std::size_t> {};


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
In file included from /Users/shumlak/WARPX/code/warpii/src/five_moment/explicit_source_operator.cc:1:
In file included from /Users/shumlak/WARPX/code/warpii/src/five_moment/explicit_source_operator.h:2:
In file included from /Users/shumlak/WARPX/code/warpii/src/five_moment/../dgsem/nodal_dg_discretization.h:3:
In file included from /Users/shumlak/WARPX/code/warpii/src/five_moment/../dgsem/../grid.h:3:
In file included from /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/base/parameter_handler.h:20:
/Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/base/config.h:602:1: error: static assertion failed due to requirement '107000 == 100000 * 1 + 100 * 86 + 0': The version number of boost that you are compiling with does not match the version number of boost found during deal.II's configuration step. This leads to difficult to understand bugs and is not supported. Please check that you have set up your application with the same version of boost as deal.II.
static_assert(
^
In file included from /Users/shumlak/WARPX/code/warpii/src/dof_utils.cc:1:
...
In file included from /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/type_index.hpp:29:
In file included from /Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/type_index/stl_type_index.hpp:47:
/Users/shumlak/WARPX/warpiisoft/deps/dealii/dealii-9.5.1-RelWithDebInfo/include/deal.II/bundled/boost/container_hash/hash.hpp:130:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
        struct hash_base : std::unary_function<T, std::size_t> {};
                           ~~~~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
2 errors generated.
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/common_params.cc.o] Error 1
make[3]: *** [src/CMakeFiles/libwarpii.dir/normalization.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/phmaxwell_func.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/fields.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/species_func.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/species.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/solution_vec.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/grid_generation.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/grid.cc.o] Error 1
2 errors generated.
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/grid_descriptions.cc.o] Error 1
make[3]: *** [src/CMakeFiles/libwarpii.dir/input_file.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/solution_helper.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/warpii.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/dgsem/nodal_dg_discretization.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/dg_solution_helper.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/implicit_source_operator.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/explicit_source_operator.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/dg_solver.cc.o] Error 1
[ 40%] Linking CXX static library ../../../lib/libgtest.a
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/maxwell/maxwell_app.cc.o] Error 1
[ 40%] Built target gtest
[ 42%] Building CXX object _deps/googletest-build/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 43%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/explicit_operator.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/dg_solver.cc.o] Error 1
2 errors generated.
make[3]: *** [src/CMakeFiles/libwarpii.dir/five_moment/five_moment.cc.o] Error 1
make[2]: *** [src/CMakeFiles/libwarpii.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 45%] Linking CXX static library ../../../lib/libgtest_main.a
[ 45%] Built target gtest_main
[ 46%] Linking CXX static library ../../../lib/libgmock.a
[ 46%] Built target gmock
make[1]: *** [all] Error 2
make: *** [build] Error 2