|
[Sponsors] |
August 8, 2023, 19:54 |
Debian 12 and GCC 12
|
#1 |
New Member
Jan Groenewald
Join Date: Aug 2023
Posts: 5
Rep Power: 3 |
On Debian 12, GCC 12.2.0 is the default compiler.
Compiling OpenFOAM 2012 (I was using this version for solids4foam) fails with gcc 12 as attached. Compilation succeeds with gcc 11. It might have to do with the header dependencies as mentioned here: https://gcc.gnu.org/gcc-12/porting_to.html I.e. a missing #include <array> somewhere? |
|
August 11, 2023, 06:12 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
https://develop.openfoam.com/Develop.../-/issues/2714 This has been patched on various maintenance branches, and there are even newer code packs on https://dl.openfoam.com/source if you aren't using git. So I don't understand what is going wrong. In any case, there will not be that many internal changes to OpenFOAM to prevent you from using more recent versions (Eg, OpenFOAM-v2306) with solids4foam. EDIT: the include for std::array was patched even well before that (the OpenFOAM-v2012_210414 code pack, which means it was patched and re-released more than two years ago). |
||
August 12, 2023, 01:32 |
|
#3 | |
New Member
Jan Groenewald
Join Date: Aug 2023
Posts: 5
Rep Power: 3 |
Quote:
v2306 compiled but solids4foam failed as attached |
||
August 16, 2023, 12:27 |
|
#4 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
I have a pull-request added for that now - if you wanted to try from there. https://github.com/solids4foam/solids4foam/pull/60 |
|
August 16, 2023, 14:19 |
Success
|
#5 |
New Member
Jan Groenewald
Join Date: Aug 2023
Posts: 5
Rep Power: 3 |
Code:
git fetch origin pull/60/head:development git checkout development ... Summary statistics Number of cases where a run was attempted: 48 Number of cases where the solver failed: 0 Number of cases where another command failed: 0 All tests passed: enjoy solids4foam. |
|
|
|