View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004127 | OpenFOAM | Bug | public | 2024-08-05 16:48 | 2024-08-15 14:26 |
Reporter | peth | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | GNU/Linux | OS | arch linux | OS Version | (please specify) |
Product Version | 12 | ||||
Summary | 0004127: OpenFOAM-12 ThirdParty Zoltan compile error | ||||
Description | OpenFOAM-12 ThirdParty compile error stops at third party dir Zoltan compile process. It seems that the problem is with the MPI_ARCH_LIB env variable In my case it is: echo $MPI_ARCH_PATH -Wl,-rpath -Wl,/usr and I guess it should be just "/usr" (?) Setting it "/usr" produces no errors at Zoltan compile process $MPI_ARCH_PATH is set at /etc/config.sh/mpi with the default SYSTEMOPENMPI option it is set by these lines: libDir=`mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/'` # Bit of a hack: strip off 'lib' and hope this is the path to openmpi # include files and libraries. export MPI_ARCH_PATH="${libDir%/*}" running these lines manually in my case in a bash shell the libdir var is: echo $libdir: Wl,-rpath -Wl,/usr/lib -Wl,--enable-new-dtags -lmpi and MPI_ARCH_PATH var then: echo $MPI_ARCH_PATH -Wl,-rpath -Wl,/usr i.e. the beginning of the string is not removed before the "/usr", and I guess this produces the error | ||||
Steps To Reproduce | #download repositories git clone https://github.com/OpenFOAM/ThirdParty-12.git git clone https://github.com/OpenFOAM/OpenFOAM-12.git #source OpenFOAM environmental variables source OpenFOAM-dev/etc/bashrc #replacing the label size from 32 to 64 sed -i '89s/32/64/' $FOAM_ETC/bashrc #exclude paraview part - see previous bug report https://bugs.openfoam.org/view.php?id=4126 sed -i '112s/system/none/' $FOAM_ETC/bashrc #source again the updated file source $FOAM_ETC/bashrc #compile third party (or run directly Allwmake in $WM_PROJECT_DIR) cd $WM_THIRD_PARTY_DIR && ./Allwmake -j4 2>&1 | tee wmake.log | ||||
Tags | No tags attached. | ||||
|
What mpicc version are you using? What is the output of mpicc --showme:link |
|
These are the results of the given commands: mpicc --version gcc (GCC) 14.2.1 20240802 mpicc --showme:link -Wl,-rpath -Wl,/usr/lib -Wl,--enable-new-dtags -lmpi |
|
Can confirm on Arch. |
|
Hey, We have this same issue on our cluster compilation. For us we needed to change: --with-mpi-libdir=$MPI_ARCH_PATH/lib${WM_COMPILER_LIB_ARCH} \ with --with-mpi-libdir=$MPI_ARCH_PATH/lib \ I didn't really care to report this since we use very old libraries and assumed it is likely a me problem than an OpenFOAM problem. |