Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 456
    • Issues 456
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2449
Closed
Open
Issue created Apr 22, 2022 by Naina Patil@NainaPatil

OpenFOAM 2112 build issues - ld.lld: error: undefined symbol:referenced by MPPICInterFoam.C

Summary

OpenFOAM 2112 completes the build with the following error-ld.lld: error: undefined symbol: typeinfo for Foam::regionModels::regionFaModel referenced by MPPICInterFoam.C This doesn't result in desired number of binaries end of build

Steps to reproduce

export OPENFOAMROOT=<Path_to_OpenFOAM_Installtion> ##current working directory/ PWD ##
 
wget  https://dl.openfoam.com/source/v2112/OpenFOAM-v2112.tgz

wget  https://dl.openfoam.com/source/v2112/ThirdParty-v2112.tgz
 
cd $OPENFOAMROOT
 tar -xzf OpenFOAM-v2112.tgz
 tar -xzf ThirdParty-v2112.tgz
 
export WM_CXXFLAGS="$CFLAGS"
export WM_CFLAGS="$CXXFLAGS"
Edit/Modify these files as per AOCC
$OPENFOAMROOT/OpenFOAM-v2112/etc/bashrc

sed -i 's/WM_COMPILER=Gcc/WM_COMPILER=Amd/' $OPENFOAMROOT/OpenFOAM-v2112/etc/bashrc
 
$OPENFOAMROOT/OpenFOAM-v2112/etc/config.sh/mpi

export MPI_ARCH_PATH= Path to OpenMPI installation 
  
source $OPENFOAMROOT/OpenFOAM-v2112/etc/bashrc

echo $WM_PROJECT_DIR
Build OpenFOAM-v2112
cd $OPENFOAMROOT/OpenFOAM-v2112

time ./Allwmake -j  64 all -k 2>&1 |tee  OpenFOAM_AOCC_install.log

source $OPENFOAMROOT/OpenFOAM-v2112/etc/bashrc

What is the current bug behaviour?

ldd error referencing MPPICInterFoam.C during build. This results in incorrect number of binaries.

What is the expected correct behavior?

clean build without ldd error. 312 binaries are expected. But 311 entries are generated.

Relevant logs and/or images

ld.lld: error: undefined symbol: typeinfo for Foam::regionModels::regionFaModel referenced by MPPICInterFoam.C v2112/build/linux64AmdDPInt32Opt/applications/solvers/multiphase/MPPICInterFoam/MPPICInterFoam.ovoid Foam::SurfaceFilmModel<Foam::KinematicCloud<Foam:: Cloud<Foam::KinematicParcelFoam:article > > >::inject<Foam::KinematicCloud<Foam::Cloud<Foam::K inematicParcelFoam:article > > >(Foam::KinematicCloud<Foam::Cloud<Foam::Kinematic ParcelFoam:article > >&)) referenced by MPPICInterFoam.C

Environment information

Providing details of your set-up can help us identify any issues, e.g.

OpenFOAM version : v2112

Operating system : centos 8.3

Hardware info : AMD Epyc 7763

Compiler : clang/Aocc 3.2

Possible fixes

We have currently found a workaround by linking -lregionFaModels in the line

"LINK_LIBS = $(c++DBUG) -Wl,--as-needed -lregionFaModels"

path - OpenFOAM-v2112/wmake/rules/General/Amd/link-c++

do we have any official fix for this ?

Assignee
Assign to
Time tracking