View Issue Details

IDProjectCategoryView StatusLast Update
0004127OpenFOAMBugpublic2024-08-15 14:26
Reporterpeth Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformGNU/LinuxOSarch linuxOS Version(please specify)
Product Version12 
Summary0004127: OpenFOAM-12 ThirdParty Zoltan compile error
DescriptionOpenFOAM-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
TagsNo tags attached.

Activities

cgoessni

2024-08-05 17:27

reporter   ~0013341

What mpicc version are you using? What is the output of

mpicc --showme:link

peth

2024-08-05 18:32

reporter   ~0013342

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

ffran

2024-08-15 10:24

reporter   ~0013378

Can confirm on Arch.

blttkgl

2024-08-15 14:26

reporter   ~0013379

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.

Issue History

Date Modified Username Field Change
2024-08-05 16:48 peth New Issue
2024-08-05 17:27 cgoessni Note Added: 0013341
2024-08-05 18:32 peth Note Added: 0013342
2024-08-15 10:24 ffran Note Added: 0013378
2024-08-15 14:26 blttkgl Note Added: 0013379