View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004125 | OpenFOAM | Bug | public | 2024-08-02 17:35 | 2024-08-14 09:37 |
Reporter | carlos-encs | Assigned To | wyldckat | ||
Priority | high | Severity | block | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | x86_64 | OS | AlmaLinux | OS Version | 9.4 |
Product Version | 12 | ||||
Summary | 0004125: Can't compile OpenFOAM-12 - touch: cannot touch - error | ||||
Description | Hi Thirty-Party compiled Paraview compiled OpenFOAM-12 can't complete the compilation, it shows this error: touch: cannot touch '/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/using:openmpi-2.1.1': No such file or directory Shell: Tcsh | ||||
Steps To Reproduce | source $FOAM_INST_DIR/OpenFOAM-12/etc/cshrc ./Allwmake -j Compiling enabled on 2 cores Allwmake /encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12 make: Nothing to be done for 'all'. ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required have OPENMPI shared library (openmpi-2.1.1) ======================================== ThirdParty installation of Scotch decomposition found scotch header in /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64GccDPInt32/scotch_6.0.9/include scotch libs in /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64GccDPInt32/lib ======================================== ThirdParty installation of PT-Scotch decomposition found ptscotch header in /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64GccDPInt32/scotch_6.0.9/include/openmpi-2.1.1 ptscotch libs in /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64GccDPInt32/lib/openmpi-2.1.1 ======================================== METIS decomposition is disabled ======================================== ParMETIS decomposition is disabled ======================================== ThirdParty installation of Zoltan decomposition found Zoltan header in /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64GccDPInt32/Zoltan-3.90/include Zoltan libs in /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64GccDPInt32/lib/openmpi-2.1.1 ======================================== Done ThirdParty Allwmake ======================================== Allwmake src no git description found Allwmake src/Pstream wmake dummy 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 g++ -std=c++14 -m64 -DLIB_NAME=libPstream.so -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OpenFOAM/lnInclude -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OSspecific/POSIX/lnInclude -fPIC -c UOPwrite.C -o Make/linux64GccDPInt32OptOPENMPI/UOPwrite.o g++ -std=c++14 -m64 -DLIB_NAME=libPstream.so -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OpenFOAM/lnInclude -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OSspecific/POSIX/lnInclude -fPIC -c UIPread.C -o Make/linux64GccDPInt32OptOPENMPI/UIPread.o g++ -std=c++14 -m64 -DLIB_NAME=libPstream.so -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OpenFOAM/lnInclude -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OSspecific/POSIX/lnInclude -fPIC -c UPstream.C -o Make/linux64GccDPInt32OptOPENMPI/UPstream.o g++ -std=c++14 -m64 -DLIB_NAME=libPstream.so -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OpenFOAM/lnInclude -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OSspecific/POSIX/lnInclude -fPIC -c PstreamGlobals.C -o Make/linux64GccDPInt32OptOPENMPI/PstreamGlobals.o g++ -std=c++14 -m64 -DLIB_NAME=libPstream.so -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -isystem /encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/include -IlnInclude -I. -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OpenFOAM/lnInclude -I/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/src/OSspecific/POSIX/lnInclude -fPIC -fuse-ld=bfd -shared -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32OptOPENMPI/UOPwrite.o Make/linux64GccDPInt32OptOPENMPI/UIPread.o Make/linux64GccDPInt32OptOPENMPI/UPstream.o Make/linux64GccDPInt32OptOPENMPI/PstreamGlobals.o -L/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/platforms/linux64GccDPInt32OptOPENMPI/lib \ -L/encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/lib64 -L/encs/pkg/OpenFOAM-12.0/root/ThirdParty-12/platforms/linux64Gcc/openmpi-2.1.1/lib -lmpi -o /encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/platforms/linux64GccDPInt32Opt/lib/openmpi-2.1.1/libPstream.so touch: cannot touch '/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/using:openmpi-2.1.1': No such file or directory | ||||
Additional Information | Source files used: OpenFOAM-12-version-12.tar.gz ThirdParty-12-version-12.tar.gz mv OpenFOAM-12-version-12 OpenFOAM-12 mv ThirdParty-12-version-12 ThirdParty-12 cd ThirdParty-12 openmpi-2.1.1.tar.bz2 | tar -xvpf - setenv FOAM_INST_DIR /encs/pkg/OpenFOAM-12.0/root changes in cshrc: $FOAM_INST_DIR/OpenFOAM-12/etc/cshrc setenv WM_MPLIB OPENMPI setenv WM_OSTYPE POSIX | ||||
Tags | No tags attached. | ||||
related to | 0004137 | new | Proposal for improving the build workflow for parallel libraries |
|
Something went wrong in the environment settings... because the linking command before the error, lists the following: Make/linux64GccDPInt32OptOPENMPI/UOPwrite.o Make/linux64GccDPInt32OptOPENMPI/UIPread.o Make/linux64GccDPInt32OptOPENMPI/UPstream.o Make/linux64GccDPInt32OptOPENMPI/PstreamGlobals.o It should include the full path to '/encs/pkg/OpenFOAM-12.0/root/OpenFOAM-12/platforms/linux64GccDPInt32OptOPENMPI/src/Pstream/mpi/' for each file, not the relative path. My guess is that the environment variable 'FOAM_INST_DIR' is pointing to a symbolic link path, instead of the real path at '/encs/pkg/OpenFOAM-12.0/root/'. Furthermore, said path should be consistent with the environment variable 'WM_PROJECT_DIR'. |
|
The original file 'OpenFOAM-12/etc/cshrc' will reset the variable 'FOAM_INST_DIR'... unless you've edited said file and modified it. |
|
@wyldckat Thank you for your answer. Using absolute paths solved the issue. Thanks Regards |
|
@carlos-encs: Thanks for the feedback! I'm glad that solved the issue. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-08-02 17:35 | carlos-encs | New Issue | |
2024-08-12 16:37 | wyldckat | Note Added: 0013363 | |
2024-08-12 16:40 | wyldckat | Note Added: 0013364 | |
2024-08-13 11:48 | wyldckat | Relationship added | related to 0004137 |
2024-08-13 22:21 | carlos-encs | Note Added: 0013374 | |
2024-08-14 09:35 | wyldckat | Note Added: 0013375 | |
2024-08-14 09:37 | wyldckat | Assigned To | => wyldckat |
2024-08-14 09:37 | wyldckat | Status | new => closed |
2024-08-14 09:37 | wyldckat | Resolution | open => no change required |