CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM-2.3.x on LinuxMint20 - compilation problem (https://www.cfd-online.com/Forums/openfoam-installation/234132-openfoam-2-3-x-linuxmint20-compilation-problem.html)

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

JBeilke February 24, 2021 16:40

I would try it with OpenSuse 13.2

michalj February 25, 2021 02:47

Quote:

Originally Posted by JBeilke (Post 797173)
I would try it with OpenSuse 13.2

Well, thanks for advice, but I will keep both the Linux Mint 20.1 and OpenFOAM-2.3.x.


MJ

hapold May 9, 2022 04:42

Same problem
 
Hi, I'm having the same problem. Were you able to find a solution?


All times are GMT -4. The time now is 14:13.