View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003756 | OpenFOAM | Bug | public | 2021-11-24 16:27 | 2021-11-25 10:09 |
Reporter | jackdoubleyou | Assigned To | henry | ||
Priority | none | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | GNU/Linux | OS | CentOS Linux | OS Version | 8 |
Summary | 0003756: Pstream Compilation Fails | ||||
Description | Building 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. | ||||
Tags | No tags attached. | ||||
|
output.log (6,358 bytes)
Allwmake /home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/Pstream wmake dummy wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file UOPwrite.C Making dependency list for source file UIPread.C Making dependency list for source file UPstream.C icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c UPstream.C -o Make/linux64IccDPInt32Opt/UPstream.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c UIPread.C -o Make/linux64IccDPInt32Opt/UIPread.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c UOPwrite.C -o Make/linux64IccDPInt32Opt/UOPwrite.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64IccDPInt32Opt/UPstream.o Make/linux64IccDPInt32Opt/UIPread.o Make/linux64IccDPInt32Opt/UOPwrite.o -L/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/platforms/linux64IccDPInt32Opt/lib \ -o /gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/platforms/linux64IccDPInt32Opt/lib/dummy/libPstream.so wclean mpi wmake mpi wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file PstreamGlobals.C Making dependency list for source file UPstream.C Making dependency list for source file UIPread.C Making dependency list for source file UOPwrite.C icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -DOMPI_SKIP_MPICXX -I/home/t/ttjrjw2/Software/OpenMPI-4.1.1/include -pthread -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c UOPwrite.C -o Make/linux64IccDPInt32OptSYSTEMOPENMPI/UOPwrite.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -DOMPI_SKIP_MPICXX -I/home/t/ttjrjw2/Software/OpenMPI-4.1.1/include -pthread -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c UIPread.C -o Make/linux64IccDPInt32OptSYSTEMOPENMPI/UIPread.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -DOMPI_SKIP_MPICXX -I/home/t/ttjrjw2/Software/OpenMPI-4.1.1/include -pthread -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c UPstream.C -o Make/linux64IccDPInt32OptSYSTEMOPENMPI/UPstream.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -DOMPI_SKIP_MPICXX -I/home/t/ttjrjw2/Software/OpenMPI-4.1.1/include -pthread -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -c PstreamGlobals.C -o Make/linux64IccDPInt32OptSYSTEMOPENMPI/PstreamGlobals.o icpc -std=c++11 -fp-trap=common -fp-model precise -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 327,654,1125,2289,2304,11062,11074,11076 -O3 -DNoRepository -DOMPI_SKIP_MPICXX -I/home/t/ttjrjw2/Software/OpenMPI-4.1.1/include -pthread -IlnInclude -I. -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OpenFOAM/lnInclude -I/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64IccDPInt32OptSYSTEMOPENMPI/UOPwrite.o Make/linux64IccDPInt32OptSYSTEMOPENMPI/UIPread.o Make/linux64IccDPInt32OptSYSTEMOPENMPI/UPstream.o Make/linux64IccDPInt32OptSYSTEMOPENMPI/PstreamGlobals.o -L/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/platforms/linux64IccDPInt32OptSYSTEMOPENMPI/lib \ -pthread -Wl,-rpath -Wl,/home/t/ttjrjw2/Software/OpenMPI-4.1.1/lib -Wl,--enable-new-dtags -L/home/t/ttjrjw2/Software/OpenMPI-4.1.1/lib -lmpi -o /gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/platforms/linux64IccDPInt32Opt/lib/openmpi-system/libPstream.so touch: cannot touch '/gpfs/home/t/ttjrjw2/OpenFOAM/OpenFOAM-5.0/platforms/linux64IccDPInt32OptSYSTEMOPENMPI/src/Pstream/mpi/using:openmpi-system': No such file or directory |
|
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. |
|
Or you could use gcc instead of the Intel compilers. |
|
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. |
|
User support request for outdated version of OpenFOAM. |
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 | |
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 |