View Issue Details

IDProjectCategoryView StatusLast Update
0003756OpenFOAMBugpublic2021-11-25 10:09
ReporterjackdoubleyouAssigned Tohenry 
PrioritynoneSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSCentOS LinuxOS Version8
Product Version 
Fixed in Version 
Summary0003756: Pstream Compilation Fails
DescriptionBuilding OpenFOAM v5.0 using Allwmake script in $WM_PROJECT_DIR gives following error when trying to compile Pstream library:

touch: cannot touch '/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/platforms/linux64IccDPInt32OptSYSTEMOPENMPI/src/Pstream/mpi/using:openmpi-system': No such file or directory

The full output from src/Pstream/Allwmake is attached. As far as I can tell the actual compilation completes successfully, it is just the touch command that is failing. I am using Intel compilers version 2019.5.281 and OpenMPI version 4.1.1. I've not encountered this issue on any previous OpenFOAM builds, however this is on a different, newer machine and is my first attempt using Intel compilers.

I noticed some other issues reported here with similar issues (0003303 and 0002204), but as far as I could see the proposed fixes didn't work for me.

Based on the previously reported issues, here are the outputs from a few commands:

[ttjrjw2@login01(sulis) OpenFOAM-5.0]$ pwd
/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0

[ttjrjw2@login01(sulis) OpenFOAM-5.0]$ pwd -P
/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0

[ttjrjw2@login01(sulis) OpenFOAM-5.0]$ echo $WM_PROJECT_DIR
/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0

[ttjrjw2@login01(sulis) OpenFOAM-5.0]$ realpath $WM_PROJECT_DIR
/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0

Commenting out the touch command in src/Pstream/Allwmake allows the compilation to proceed, but I imagine it is there for a reason.
TagsNo tags attached.

Activities

jackdoubleyou

2021-11-24 16:27

reporter  

output.log (6,358 bytes)

henry

2021-11-24 16:45

manager   ~0012273

OpenFOAM-5 is not being maintained to compile with recent compilers, you will need to either upgrade to OpenFOAM-9 and use the last version of the old compiler or upgrade to OpenFOAM-dev and use the new OneAPI compiler:

commit 37108ec2ee6421d8e2c3f971ed62455681225be6
Author: Henry Weller <http://cfd.direct>
Date: Tue Jul 20 16:51:09 2021 +0100

    wmake: Added support for the new OneAPI Intel compiler
    
    The icx and icpx Intel compilers are selected by
    
    WM_COMPILER=Icx
    
    These compilers are based on the Clang front-end and hence the configuration
    files are based on and nearly identical to those for Clang.
    
    Support for the new OneAPI compilers replaces the now deprecated Intel icc, icpc
    compilers.

henry

2021-11-24 16:46

manager   ~0012274

Or you could use gcc instead of the Intel compilers.

jackdoubleyou

2021-11-25 09:52

reporter   ~0012276

Okay, unfortunately the gcc version on the machine is too new, I run into issues with the linker (see issue 0000685).

If I managed to get an earlier version of the intel compilers installed, will I be able to continue with the build? Updating to a newer version of OpenFOAM would require a significant re-write of some of my solvers.

henry

2021-11-25 10:09

manager   ~0012277

User support request for outdated version of OpenFOAM.

Issue History

Date Modified Username Field Change
2021-11-24 16:27 jackdoubleyou New Issue
2021-11-24 16:27 jackdoubleyou File Added: output.log
2021-11-24 16:41 henry Priority normal => none
2021-11-24 16:41 henry Severity block => minor
2021-11-24 16:41 henry Description Updated View Revisions
2021-11-24 16:45 henry Note Added: 0012273
2021-11-24 16:46 henry Note Added: 0012274
2021-11-25 09:52 jackdoubleyou Note Added: 0012276
2021-11-25 10:09 henry Assigned To => henry
2021-11-25 10:09 henry Status new => closed
2021-11-25 10:09 henry Resolution open => no change required
2021-11-25 10:09 henry Note Added: 0012277