michalj |
February 24, 2021 07:57 |
OpenFOAM-2.3.x on LinuxMint20 - compilation problem
Hi,
I have installed Linux Mint 20.1 and I try to compile OpenFOAM-2.3.x. I follow the instructions on wiki (installation OpenFOAM-2.3.1 on Ubuntu) with modifications.
Modifications:
- I compile the ThirdParty openMPI (due to the errors with using the system mpi)
- I do not compile the ThirdParty ParaView-4.1.0 (Qt4 is needed, but Qt5 is present on system)
After installation with known errors,
Code:
ThirdParty Allwmake error example:
cp: cannot stat '../bin/d[agm]*': No such file or directory
make: [Makefile:110: install] Error 1 (ignored)
..............
OpenFOAM Allwmake error example:
Making dependency list for source file UOPwrite.C
could not open file omp.h for source file UOPwrite.C due to No such file or directory
could not open file openmpi/ompi/mpi/cxx/mpicxx.h for source file UOPwrite.C due to No such file or directory
I run the pitzDaily pimpleFoam tutorial. Well, serial run is OK. Doing the pitzDaily parallel, there is some problem with reconstruct:
Code:
Create time
Reconstructing fields for mesh region0
Time = 0.001
Reconstructing FV fields
Reconstructing volScalarFields
p
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::fvPatchField<double>::addpatchMapperConstructorToTable<Foam::zeroGradientFvPatchField<double> >::New(Foam::fvPatchField<double> const&, Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::fvPatchFieldMapper const&) at ??:?
#4 ? in "/usr/local/OpenFOAM/OpenFOAM-2.3.x-d/platforms/linux64GccDPOpt/bin/reconstructPar"
#5 ? in "/usr/local/OpenFOAM/OpenFOAM-2.3.x-d/platforms/linux64GccDPOpt/bin/reconstructPar"
#6 ? in "/usr/local/OpenFOAM/OpenFOAM-2.3.x-d/platforms/linux64GccDPOpt/bin/reconstructPar"
#7 ? in "/usr/local/OpenFOAM/OpenFOAM-2.3.x-d/platforms/linux64GccDPOpt/bin/reconstructPar"
#8 ? in "/usr/local/OpenFOAM/OpenFOAM-2.3.x-d/platforms/linux64GccDPOpt/bin/reconstructPar"
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10 ? in "/usr/local/OpenFOAM/OpenFOAM-2.3.x-d/platforms/linux64GccDPOpt/bin/reconstructPar"
Segmentation fault (core dumped)
Same situation is for scotch and hierarchical decomposition. Same situation is, if I compile OpenFOAM with g++-8 or g++-7 (set the compiler inside home bashrc rather than export value of gcc with source of the OpenFOAM). There are only different warnings and notes during compilation.
I think, the problem is probably in some path settings, but everything seems correctly set. I do not (want to) believe there is some misinterpretation during compilation process with such a new compiler of such an old OpenFOAM version.. But why not:)
Every hint is valuable to me. Thanks.
MJ
|