Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 445
    • Issues 445
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2496
Closed
Open
Issue created May 28, 2022 by t Rock@tRock

sha1 error for OpenFOAM 2106 on Ubuntu 22.04

Hi,

I am trying to compile OpenFOAM in Ubuntu 22.04.

I had to install g++ and gcc 9.4.0 (Same version I used in Ubuntu 20.04)

With:

sudo apt install build-essential sudo apt-get install gcc-9 g++-9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --config gcc # To select gcc version [9.4.0]
sudo update-alternatives --config g++ # To select g++ version[9.4.0]

I am able to compile the code. But when I try to run simpleFoam, I get the following error:

--> FOAM FATAL IO ERROR: (openfoam-2106 patch=211215)
error in IOstream "sha1" for operation Foam::Ostream& Foam::operator<<(Foam::Ostream&, int32_t)

The result from foamInstallationTest is:

Executing foamInstallationTest

Basic setup :
-------------------------------------------------------------------------------
OpenFOAM:            OpenFOAM-v2106
ThirdParty:          ThirdParty-v2106
Shell:               bash
Host:                tRock-OMEN-by-HP-Laptop
OS:                  Linux version 5.15.0-33-generic
-------------------------------------------------------------------------------

Main OpenFOAM env variables :
-------------------------------------------------------------------------------
Environment           FileOrDirectory                          Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_USER_DIR  /home/tRock/OpenFOAM/tRock-v2106                yes       no
$WM_THIRD_PARTY_DIR   /home/tRock/OpenFOAM/ThirdParty-v2106        yes       maybe
$WM_PROJECT_SITE      [env variable unset]                                no
-------------------------------------------------------------------------------

OpenFOAM env variables in PATH :
-------------------------------------------------------------------------------
Environment           FileOrDirectory                          Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR       /home/tRock/OpenFOAM/OpenFOAM-v2106          yes  yes  yes

$FOAM_APPBIN          .../platforms/linux64GccDPInt32Debug/bin  yes  yes  yes
$FOAM_SITE_APPBIN     .../platforms/linux64GccDPInt32Debug/bin  no        no
$FOAM_USER_APPBIN     .../platforms/linux64GccDPInt32Debug/bin  no        no
$WM_DIR               /home/tRock/OpenFOAM/OpenFOAM-v2106/wmake    yes  yes  often
-------------------------------------------------------------------------------

OpenFOAM env variables in LD_LIBRARY_PATH :
-------------------------------------------------------------------------------
Environment           FileOrDirectory                          Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN          .../platforms/linux64GccDPInt32Debug/lib  yes  yes  yes
$FOAM_SITE_LIBBIN     .../platforms/linux64GccDPInt32Debug/lib  no        no
$FOAM_USER_LIBBIN     .../platforms/linux64GccDPInt32Debug/lib  no        no
$FOAM_EXT_LIBBIN      ...v2106/platforms/linux64GccDPInt32/lib  yes  yes  maybe
$MPI_ARCH_PATH        /usr/lib/x86_64-linux-gnu/openmpi         yes  yes  yes
-------------------------------------------------------------------------------

Software Components
-------------------------------------------------------------------------------
Software     Version    Location  
-------------------------------------------------------------------------------
flex         2.6.4      /usr/bin/flex                                          
make         4.3        /usr/bin/make                                          
wmake        2106       /home/tRock/OpenFOAM/OpenFOAM-v2106/wmake/wmake           
gcc          9.4.0      /usr/bin/gcc                                           
g++          9.4.0      /usr/bin/g++                                           
-------------------------------------------------------------------------------
icoFoam      exists     ...M-v2106/platforms/linux64GccDPInt32Debug/bin/icoFoam

Summary
-------------------------------------------------------------------------------
Base configuration ok.
Critical systems ok.

Done

The compilation log is attached to this post.

What is sha1? And how can I fix this?

log.linux64GccDPInt32Debug

Edited May 28, 2022 by t Rock
Assignee
Assign to
Time tracking