sha1 error on OpenFOAM 2112 on Fedora 36
Summary
Openfoam compiles on Fedora 36 without error messages. Running a testcase (pimpleFoam) throws the error:
--> FOAM FATAL IO ERROR: (openfoam-2112)
error in IOstream "sha1" for operation Foam::Ostream& Foam::operator<<(Ostream&, const word&)
file: sha1 at line 0.
From bool Foam::IOstream::fatalCheck(const char*) const
in file db/IOstreams/IOstreams/IOstream.C at line 70.
FOAM exiting
Steps to reproduce
Compile OF2112 from source
Run testcase (e.g. tutorial/incompressible/pimpleFoam/laminar/cylinder2D)
Environment:
Fedora 36 Workstation
Is gcc12 too new? OF2106 does not compile on same system.
Basic setup :
-------------------------------------------------------------------------------
OpenFOAM: OpenFOAM-v2112
ThirdParty: ThirdParty-v2112
Shell: bash
Host: odin
OS: Linux version 5.17.7-300.fc36.x86_64
-------------------------------------------------------------------------------
Main OpenFOAM env variables :
-------------------------------------------------------------------------------
Environment FileOrDirectory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_USER_DIR /home/thor/OpenFOAM/thor-v2112 yes no
$WM_THIRD_PARTY_DIR /home/thor/OpenFOAM/ThirdParty-v2112 yes maybe
$WM_PROJECT_SITE [env variable unset] no
-------------------------------------------------------------------------------
OpenFOAM env variables in PATH :
-------------------------------------------------------------------------------
Environment FileOrDirectory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/thor/OpenFOAM/OpenFOAM-v2112 yes yes yes
$FOAM_APPBIN ...12/platforms/linux64GccDPInt32Opt/bin yes yes yes
$FOAM_SITE_APPBIN ...12/platforms/linux64GccDPInt32Opt/bin no no
$FOAM_USER_APPBIN ...12/platforms/linux64GccDPInt32Opt/bin yes yes no
$WM_DIR /home/thor/OpenFOAM/OpenFOAM-v2112/wmake yes yes often
-------------------------------------------------------------------------------
OpenFOAM env variables in LD_LIBRARY_PATH :
-------------------------------------------------------------------------------
Environment FileOrDirectory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...12/platforms/linux64GccDPInt32Opt/lib yes yes yes
$FOAM_SITE_LIBBIN ...12/platforms/linux64GccDPInt32Opt/lib no no
$FOAM_USER_LIBBIN ...12/platforms/linux64GccDPInt32Opt/lib yes yes no
$FOAM_EXT_LIBBIN ...v2112/platforms/linux64GccDPInt32/lib yes yes maybe
$MPI_ARCH_PATH /usr/lib64/openmpi yes yes yes
-------------------------------------------------------------------------------
Software Components
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
flex 2.6.4 /usr/bin/flex
make 4.3 /usr/bin/make
wmake 2112 /home/thor/OpenFOAM/OpenFOAM-v2112/wmake/wmake
gcc 12.1.1 /usr/lib64/ccache/gcc
g++ 12.1.1 /usr/lib64/ccache/g++
-------------------------------------------------------------------------------
icoFoam exists ...OAM-v2112/platforms/linux64GccDPInt32Opt/bin/icoFoam
Summary
-------------------------------------------------------------------------------
Base configuration ok.
Critical systems ok.
Done
Edited by Torsten Schenkel