KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.02k stars 245 forks source link

Nightly tests are not working (with CLANG) #2633

Closed philbucher closed 6 years ago

philbucher commented 6 years ago

The nighly testing gives some compiler-errors with clang for some time now:

 /home/ubuntu/Kratos/external_libraries/amgcl/coarsening/runtime.hpp:105:33: error: use of undeclared identifier 'AMGCL_PARAM_MISSING'
/home/ubuntu/Kratos/external_libraries/amgcl/relaxation/runtime.hpp:127:33: error: use of undeclared identifier 'AMGCL_PARAM_MISSING'
/home/ubuntu/Kratos/external_libraries/amgcl/solver/runtime.hpp:131:33: error: use of undeclared identifier 'AMGCL_PARAM_MISSING'
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:701:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<double> > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:728:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<static_matrix<double, 2UL, 2UL> >, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<static_matrix<double, 2UL, 2UL> > > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:728:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<static_matrix<double, 3UL, 3UL> >, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<static_matrix<double, 3UL, 3UL> > > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:728:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<static_matrix<double, 4UL, 4UL> >, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<static_matrix<double, 4UL, 4UL> > > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_ns_solver.h:251:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::preconditioner::schur_pressure_correction<USolver, PSolver>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<schur_pressure_correction<make_solver<as_preconditioner<builtin<double>, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<double> > >, make_solver<amg<builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<double> > > >, wrapper<builtin<double> > >')
/home/ubuntu/Kratos/external_libraries/amgcl/coarsening/runtime.hpp:105:33: error: use of undeclared identifier 'AMGCL_PARAM_MISSING'
/home/ubuntu/Kratos/external_libraries/amgcl/relaxation/runtime.hpp:127:33: error: use of undeclared identifier 'AMGCL_PARAM_MISSING'
/home/ubuntu/Kratos/external_libraries/amgcl/solver/runtime.hpp:131:33: error: use of undeclared identifier 'AMGCL_PARAM_MISSING'
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:701:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<double> > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:728:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<static_matrix<double, 2UL, 2UL> >, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<static_matrix<double, 2UL, 2UL> > > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:728:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<static_matrix<double, 3UL, 3UL> >, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<static_matrix<double, 3UL, 3UL> > > >')
/home/ubuntu/Kratos/kratos/linear_solvers/amgcl_solver.h:728:15: error: no matching constructor for initialization of 'amgcl::make_solver<amgcl::amg<Backend, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, amgcl::runtime::solver::wrapper<Backend> >' (aka 'make_solver<amg<builtin<static_matrix<double, 4UL, 4UL> >, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>, wrapper<builtin<static_matrix<double, 4UL, 4UL> > > >')

I am not sure whom to address regarding this, therefore @roigcarlo @ddemidov @RiccardoRossi

roigcarlo commented 6 years ago

That should have been solved with #2580. I will investigate...

ddemidov commented 6 years ago

AMGCL_PARAM_MISSING should be defined here:

https://github.com/KratosMultiphysics/Kratos/blob/6c87720cdbdd6d5b4e52d9b6eca5917b2256cd01/external_libraries/amgcl/util.hpp#L108-L111

roigcarlo commented 6 years ago

:+1: It is working in travis so I wouldn't be too worried. Probably is because of the version of boost I use in the amazon image is excruciatingly old (1.54 If I remember correctly). I will take a loot this afternoon

roigcarlo commented 6 years ago

Investigating these last days and seems that the last message from the nightly server was prior to @ddemidov fix.

I've been monitoring latest builds and the output seems mostly ok. The problem is that we are having 700+ warnings which is causing a very extense output and the mailing service which redirects the log is complaining about the message being too big.

Currently I am searching for someone with access to the Mailing config that can approve that but everyone is in vacation so it may take a while...

roigcarlo commented 6 years ago

@pooyan-dadvand Increased the limit of the mail body to 3mb so that should have solved the issue. Feel free to reopen if it keeps failing

philbucher commented 6 years ago

thx!

roigcarlo commented 6 years ago

I've also increased (again) the lifetime of the nightly servers. Hopefully this will be enough for now...