Compilation problem with Development sources

23 views
Skip to first unread message

Michał Wichrowski

unread,
Sep 17, 2018, 6:48:43 AM9/17/18
to deal.II User Group
Dear all,
I had a problem while compiling deal.II source code from the git repository:

[ 72%] Building CXX object source/algorithms/CMakeFiles/obj_algorithms_debug.dir/operator.cc.o
In file included from /home/mwichro/lib/dealii/include/deal.II/algorithms/any_data.h:21:0,
                 from /home/mwichro/lib/dealii/include/deal.II/algorithms/newton.h:20,
                 from /home/mwichro/lib/dealii/include/deal.II/algorithms/newton.templates.h:20,
                 from /home/mwichro/lib/dealii/source/algorithms/operator.cc:17:
/home/mwichro/lib/dealii/include/deal.II/base/utilities.h: In function ‘constexpr unsigned int dealii::Utilities::pow(unsigned int, int)’:
/home/mwichro/lib/dealii/include/deal.II/base/exceptions.h:1242:72: error: call to non-constexpr function ‘void dealii::deal_II_exceptions::internals::issue_error_noreturn(dealii::deal_II_exceptions::internals::ExceptionHandling, const char*, int, const char*, const char*, const char*, ExceptionType) [with ExceptionType = dealii::StandardExceptions::ExcMessage]’
           ::dealii::deal_II_exceptions::internals::issue_error_noreturn( \
                                                                        ^
/home/mwichro/lib/dealii/include/deal.II/base/utilities.h:357:5: note: in expansion of macro ‘Assert’
     Assert(iexp >= 0, ExcMessage("The exponent must not be negative!"));
     ^
source/algorithms/CMakeFiles/obj_algorithms_debug.dir/build.make:54: recipe for target 'source/algorithms/CMakeFiles/obj_algorithms_debug.dir/operator.cc.o' failed
make[2]: *** [source/algorithms/CMakeFiles/obj_algorithms_debug.dir/operator.cc.o] Error 1
CMakeFiles/Makefile2:4090: recipe for target 'source/algorithms/CMakeFiles/obj_algorithms_debug.dir/all' failed
make[1]: *** [source/algorithms/CMakeFiles/obj_algorithms_debug.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2



Michał

Bruno Turcksin

unread,
Sep 17, 2018, 8:56:45 AM9/17/18
to deal.II User Group
Michal,

Are you using the latest version of deal.II? This problem should have been fixed.

Best,

Bruno

Michał Wichrowski

unread,
Sep 17, 2018, 9:38:49 AM9/17/18
to deal.II User Group
I've just double checked,  I'm using the latest version:

mwichro@major:~/lib/dealii$ git checkout 
Your branch is up-to-date with 'origin/master'.
mwichro@major:~/lib/dealii$ make
[  0%] Built target expand_instantiations_exe
[  0%] Built target doxygen_headers
[  3%] Built target obj_boost_serialization_debug
[  5%] Built target obj_boost_serialization_release
[  5%] Built target obj_boost_system_debug
[  5%] Built target obj_boost_system_release
[  7%] Built target obj_tbb_debug
[  9%] Built target obj_tbb_release
[  9%] Built target obj_umfpack_DI_ASSEMBLE_debug
[ 10%] Built target obj_umfpack_DI_ASSEMBLE_release
[ 10%] Built target obj_umfpack_DI_SOLVE_debug
[ 10%] Built target obj_umfpack_DI_SOLVE_release
[ 10%] Built target obj_umfpack_DI_STORE_debug
[ 10%] Built target obj_umfpack_DI_STORE_release
[ 10%] Built target obj_umfpack_DI_TRIPLET_MAP_NOX_debug
[ 10%] Built target obj_umfpack_DI_TRIPLET_MAP_NOX_release
[ 10%] Built target obj_umfpack_DI_TRIPLET_MAP_X_debug
[ 10%] Built target obj_umfpack_DI_TRIPLET_MAP_X_release
[ 10%] Built target obj_umfpack_DI_TRIPLET_NOMAP_X_debug
[ 10%] Built target obj_umfpack_DI_TRIPLET_NOMAP_X_release
[ 10%] Built target obj_umfpack_DI_TSOLVE_debug
[ 10%] Built target obj_umfpack_DI_TSOLVE_release
[ 11%] Built target obj_umfpack_DL_ASSEMBLE_debug
[ 11%] Built target obj_umfpack_DL_ASSEMBLE_release
[ 11%] Built target obj_umfpack_DL_SOLVE_debug
[ 11%] Built target obj_umfpack_DL_SOLVE_release
[ 11%] Built target obj_umfpack_DL_STORE_debug
[ 11%] Built target obj_umfpack_DL_STORE_release
[ 11%] Built target obj_umfpack_DL_TRIPLET_MAP_NOX_debug
[ 11%] Built target obj_umfpack_DL_TRIPLET_MAP_NOX_release
[ 11%] Built target obj_umfpack_DL_TRIPLET_MAP_X_debug
[ 11%] Built target obj_umfpack_DL_TRIPLET_MAP_X_release
[ 11%] Built target obj_umfpack_DL_TRIPLET_NOMAP_X_debug
[ 11%] Built target obj_umfpack_DL_TRIPLET_NOMAP_X_release
[ 11%] Built target obj_umfpack_DL_TSOLVE_debug
[ 13%] Built target obj_umfpack_DL_TSOLVE_release
[ 13%] Built target obj_umfpack_GENERIC_debug
[ 13%] Built target obj_umfpack_GENERIC_release
[ 15%] Built target obj_umfpack_I_UMFPACK_debug
[ 17%] Built target obj_umfpack_I_UMFPACK_release
[ 20%] Built target obj_umfpack_I_UMF_debug
[ 23%] Built target obj_umfpack_I_UMF_release
[ 26%] Built target obj_umfpack_L_UMFPACK_debug
[ 28%] Built target obj_umfpack_L_UMFPACK_release
[ 31%] Built target obj_umfpack_L_UMF_debug
[ 34%] Built target obj_umfpack_L_UMF_release
[ 35%] Built target obj_amd_global_debug
[ 35%] Built target obj_amd_global_release
[ 35%] Built target obj_amd_int_debug
[ 36%] Built target obj_amd_int_release
[ 38%] Built target obj_amd_long_debug
[ 39%] Built target obj_amd_long_release
[ 40%] Built target obj_muparser_debug
[ 41%] Built target obj_muparser_release
[ 41%] Built target obj_matrix_free_inst
[ 41%] Built target obj_matrix_free_release
[ 41%] Built target obj_meshworker_inst
[ 42%] Built target obj_meshworker_release
[ 42%] Built target obj_opencascade_inst
[ 42%] Built target obj_opencascade_release
[ 45%] Built target obj_fe_inst
[ 48%] Built target obj_fe_release
[ 48%] Built target obj_distributed_inst
[ 50%] Built target obj_distributed_release
[ 50%] Built target obj_physics_elasticity_inst
[ 50%] Built target obj_physics_elasticity_release
[ 50%] Built target obj_sundials_inst
[ 50%] Built target obj_sundials_release
[ 50%] Built target obj_physics_inst
[ 51%] Built target obj_physics_release
[ 51%] Built target obj_non_matching_inst
[ 51%] Built target obj_non_matching_release
[ 52%] Built target obj_base_inst
[ 56%] Built target obj_base_release
[ 56%] Built target obj_algorithms_inst
[ 56%] Built target obj_algorithms_release
[ 58%] Built target obj_lac_inst
[ 60%] Built target obj_lac_release
[ 61%] Built target obj_dofs_inst
[ 63%] Built target obj_dofs_release
[ 65%] Built target obj_numerics_inst
[ 67%] Built target obj_numerics_release
[ 68%] Built target obj_multigrid_inst
[ 68%] Built target obj_multigrid_release
[ 69%] Built target obj_particle_inst
[ 69%] Built target obj_particle_release
[ 69%] Built target obj_hp_inst
[ 70%] Built target obj_hp_release
[ 71%] Built target obj_grid_inst
[ 72%] Built target obj_grid_release
[ 72%] Built target obj_gmsh_inst
[ 72%] Built target obj_gmsh_release
[ 72%] Built target obj_differentiation_ad_inst
[ 72%] Built target obj_differentiation_ad_release
[ 72%] Built target deal_II

Daniel Arndt

unread,
Sep 17, 2018, 9:51:46 AM9/17/18
to deal.II User Group
Michal,

did you start from a clean build directory?
Otherwise, I would be interested whether DEAL_II_HAVE_CXX14_CONSTEXPR_CAN_CALL_NONCONSTEXPR
is defined in base/config.h (in the build directory). Which compiler are you using?

Best,
Daniel

Jean-Paul Pelteret

unread,
Sep 17, 2018, 10:10:32 AM9/17/18
to dea...@googlegroups.com
Dear Michał,

I think that calling git checkout is insufficient. You probably want to call git pull (or git fetch && git rebase origin/master) to fetch and merge the most current state of the remote repository.

Best,
Jean-Paul

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michał Wichrowski

unread,
Sep 17, 2018, 11:42:06 AM9/17/18
to deal.II User Group


W dniu poniedziałek, 17 września 2018 16:10:32 UTC+2 użytkownik Jean-Paul Pelteret napisał:
Dear Michał,

I think that calling git checkout is insufficient. You probably want to call git pull (or git fetch && git rebase origin/master) to fetch and merge the most current state of the remote repository.

Best,
Jean-Paul

Thanks, the compilation seems to get though that problems. I'm still waiting for compiler to finish but I think it will work.
Michał 
Reply all
Reply to author
Forward
0 new messages