View Issue Details

IDProjectCategoryView StatusLast Update
0004153OpenFOAMBugpublic2024-09-17 16:42
Reportercarlos-encs Assigned Tohenry  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Platformx86_64OSScientific LinuxOS Version7.9
Summary0004153: Can't compile OpenFOAM - /usr/bin/ld: cannot find -lxxxxx error
DescriptionHi

I'm trying to compile/build OpenFOAM-2.4.0, I know it's an old version, but this specific version is needed for a project.

When compiling/building OpenFoam I get these errors:

/usr/bin/ld: cannot find -lspecie
/usr/bin/ld: cannot find -lcompressibleTurbulenceModels
/usr/bin/ld: cannot find -lcompressibleTwoPhaseSystem
/usr/bin/ld: cannot find -lcompressibleEulerianInterfacialModels
/usr/bin/ld: cannot find -lfvOptions
collect2: error: ld returned 1 exit status

****** Extract: *******
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/transportModels/compressible/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/thermophysicalModels/basic/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/TurbulenceModels/turbulenceModels/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/TurbulenceModels/compressible/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/TurbulenceModels/phaseCompressible/lnInclude -IphaseCompressibleTurbulenceModels/lnInclude -IinterfacialModels/lnInclude -ItwoPhaseSystem/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/sampling/lnInclude -IlnInclude -I. -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/twoPhaseEulerFoam.o -L/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib \
     -lfluidThermophysicalModels -lspecie -lturbulenceModels -lcompressibleTurbulenceModels -lphaseCompressibleTurbulenceModels -lincompressibleTransportModels -lcompressibleTwoPhaseSystem -lcompressibleEulerianInterfacialModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lOpenFOAM -ldl -lm -o /nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam
/usr/bin/ld: cannot find -lspecie
/usr/bin/ld: cannot find -lcompressibleTurbulenceModels
/usr/bin/ld: cannot find -lcompressibleTwoPhaseSystem
/usr/bin/ld: cannot find -lcompressibleEulerianInterfacialModels
/usr/bin/ld: cannot find -lfvOptions
collect2: error: ld returned 1 exit status
make[2]: *** [/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam] Error 1
make[2]: Leaving directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/multiphase/twoPhaseEulerFoam'
make[1]: *** [twoPhaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/multiphase'
make: *** [multiphase] Error 2
make[1]: Entering directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/stressAnalysis'
make[2]: Entering directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/stressAnalysis/solidDisplacementFoam'
Making dependency list for source file tractionDisplacement/tractionDisplacementFvPatchVectorField.C
Making dependency list for source file solidDisplacementFoam.C
make[2]: Leaving directory `/nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root/OpenFOAM-2.4.0/applications/solvers/stressAnalysis/solidDisplacementFoam'
...

make: Target `application' not remade because of errors.
****** Extract: *******
Steps To Reproducesetenv FOAM_INST_DIR /nfs/encs/ArchDep/x86_64.EL7/pkg/OpenFOAM-2.4.0/root
source $FOAM_INST_DIR/OpenFOAM-2.4.0/etc/cshrc
cd $FOAM_INST_DIR/OpenFOAM-2.4.0
./Allwmake
TagsNo tags attached.

Activities

henry

2024-09-17 16:42

manager   ~0013413

User support request.

Issue History

Date Modified Username Field Change
2024-09-17 15:49 carlos-encs New Issue
2024-09-17 16:42 henry Assigned To => henry
2024-09-17 16:42 henry Status new => closed
2024-09-17 16:42 henry Resolution open => no change required
2024-09-17 16:42 henry Note Added: 0013413