CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] Having issue compiling FE41 on aarch64 (https://www.cfd-online.com/Forums/openfoam-installation/242756-having-issue-compiling-fe41-aarch64.html)

EternalSeekerX May 9, 2022 16:23

Having issue compiling FE41 on aarch64
 
Hello,

So oddly enough, i fail to compile libso foam because it cannot find -lmpi.

Im using OpenMPI 4.0.3 that I compiled with gcc-7.5 (compilation of both were a success). The OS is Fedora 35 aarch64

Error message as followed:

Code:

Note: ignore spurious warnings about missing mpicxx.h headers
+ wmake libso foam
SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/4.1/' -e 's/BUILD_STRING/4.1-70b064d0f326/' $SOURCE > Make/linuxARM8GccDPInt32Opt/global.C; g++ -std=c++11 -DlinuxARM8 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fprefetch-loop-arrays -march=native -mtune=native  -DNoRepository -ftemplate-depth=100 -DOMPI_SKIP_MPICXX -I/usr/local/OpenMPI-4.0.3/gcc-7/openmpi/include -fexceptions    -I/home/fe-aarch64OS/.root/opt/OpenFOAM/foam/foam-extend-4.1/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/fe-aarch64OS/.root/opt/OpenFOAM/foam/foam-extend-4.1/src/foam/lnInclude -I/home/fe-aarch64OS/.root/opt/OpenFOAM/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude  -fPIC -c Make/linuxARM8GccDPInt32Opt/global.C -o Make/linuxARM8GccDPInt32Opt/global.o
/usr/bin/ld: cannot find -lmpi
collect2: error: ld returned 1 exit status
make: *** [/home/fe-aarch64OS/.root/opt/OpenFOAM/foam/foam-extend-4.1/wmake/Makefile:188: /home/fe-aarch64OS/.root/opt/OpenFOAM/foam/foam-extend-4.1/lib/linuxARM8GccDPInt32Opt/libfoam.so] Error 1

The issue is, LD LIBRARY PATH is pointed to my openmpi and everything on the mpi side works, howver compiling with -lmpi fails.

Anyone know have any ideas? The compilation of the other libraries go as normal so far, but I cant understand why its only this library that fails to find -lmpi


All times are GMT -4. The time now is 10:45.