View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002639 | OpenFOAM | Bug | public | 2017-07-28 10:06 | 2017-07-28 13:56 |
Reporter | handrake0724 | Assigned To | henry | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | x86_64 | OS | RHEL | OS Version | 6.3 |
Summary | 0002639: wmkdep reports GLIBC_2.14 not found when compiling | ||||
Description | I 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. | ||||
Tags | No tags attached. | ||||
|
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. |
|
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. |
|
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. |
|
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 |
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 |