precice / vm

Vagrant box with preCICE and examples preinstalled
MIT License
5 stars 4 forks source link

Upgrade OpenFOAM to v2206 #46

Closed MakisH closed 1 year ago

MakisH commented 1 year ago

Still on Ubuntu 20.04. After the build succeeds, we still need to replace the swak4Foam compilation step with pre-built binaries, to save space and time.

MakisH commented 1 year ago

Mainly for future reference:

this job succeeded, but with swak4Foam again falsely continuing as if it was successful, with the following error:

2022-09-19T08:46:42.8514130Z     default: wmake funkyPythonPostproc
2022-09-19T08:46:43.0270540Z     default: Making dependency list for source file funkyPythonPostproc.C
2022-09-19T08:46:43.0921460Z     default: wmkdepend: could not open 'pythonInterpreterWrapper.H' for source file 'funkyPythonPostproc.C': No such file or directory
2022-09-19T08:46:43.1253340Z     default: g++ -std=c++14 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100  -IMake/linux64GccDPInt32Opt        -I/usr/lib/openfoam/openfoam2206/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2206/src/sampling/lnInclude -I/usr/lib/openfoam/openfoam2206/src/meshTools/lnInclude -Wno-old-style-cast -Wno-deprecated-register -I../../Libraries/languageIntegration/swakPythonIntegration/lnInclude/ -I../../Libraries/languageIntegration/swakGeneralLanguageIntegration/lnInclude/ -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2206/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2206/src/OSspecific/POSIX/lnInclude   -fPIC -c funkyPythonPostproc.C -o Make/linux64GccDPInt32Opt/funkyPythonPostproc.o
2022-09-19T08:46:43.4673450Z     default: funkyPythonPostproc.C:41:10: fatal error: pythonInterpreterWrapper.H: No such file or directory
2022-09-19T08:46:43.4678570Z     default:    41 | #include "pythonInterpreterWrapper.H"
2022-09-19T08:46:43.4682970Z     default:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-19T08:46:43.4683480Z     default: compilation terminated.
2022-09-19T08:46:43.4704170Z     default: make: *** [/usr/lib/openfoam/openfoam2206/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/funkyPythonPostproc.o] Error 1

Here are the full logs (GitHub Actions auto-cleans after some time): logs_25.zip

I have not yet checked if all the files we need are still compiled.

MakisH commented 1 year ago

@fsimonis Can I get a code review? I have already tested that the changes work. The most cumbersome part was producing the new binaries for swak4Foam and then switching to them.