View Issue Details

IDProjectCategoryView StatusLast Update
0002639OpenFOAMBugpublic2017-07-28 13:56
Reporterhandrake0724 Assigned Tohenry  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionno change required 
Platformx86_64OSRHELOS Version6.3
Summary0002639: wmkdep reports GLIBC_2.14 not found when compiling
DescriptionI am using RHEL 6.3 based HPC. system gcc version is 4.4.7
for compiling OpenFOAM 5.x with default setup, gcc 7.1.0 is separately installed manually.
it was good upto OpenFOAM 4.x but compiler says GLIBC_2.14 not found for OpenFOAM 5.x

for instance,

wmake thermalBaffleModels
Making dependency list for source file thermalBaffleFvPatchScalarField.C
~/OpenFOAM/OpenFOAM-5.x/wmake/platforms/linux64Gcc/wmkdep: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ~/OpenFOAM/OpenFOAM-5.x/wmake/platforms/linux64Gcc/wmkdep)
...


is this message not a problem? despite the message, compiling keeps going without exiting.
TagsNo tags attached.

Activities

henry

2017-07-28 10:13

manager   ~0008471

It looks like your wmkdep was compiled with a different compiler, you will need to recompile it. If this is not the issue then there is an incompatibility between the build of gcc you are using and the system libraries.

handrake0724

2017-07-28 10:46

viewer   ~0008472

I checked Makefile in wmake/src.

the compiler is referred to $(cc) instead of $(WM_CC)

I guess this makes difference.

chaning to $(WM_CC) instead of $(cc) resolves the problem.
As you said, wmkdep can be compiled with a different compiler in HPC environment.

henry

2017-07-28 12:06

manager   ~0008473

Why is $(WM_CC) different to $(cc)? If you have setup your environment to pick-up the gcc 7.1.0 compiler these two should be the same.

handrake0724

2017-07-28 12:58

viewer   ~0008474

I am using module environment (https://github.com/TACC/Lmod).
I have checked make's predefined variables by make -p before and after module load gcc/7.1.0

I found that before module load, CC = cc is defined but,
after module load, CC = cc is gone.
I guess that's the reason.

So, this is not a bug of OpenFOAM

Issue History

Date Modified Username Field Change
2017-07-28 10:06 handrake0724 New Issue
2017-07-28 10:13 henry Note Added: 0008471
2017-07-28 10:46 handrake0724 Note Added: 0008472
2017-07-28 12:06 henry Note Added: 0008473
2017-07-28 12:58 handrake0724 Note Added: 0008474
2017-07-28 13:56 henry Assigned To => henry
2017-07-28 13:56 henry Status new => closed
2017-07-28 13:56 henry Resolution open => no change required