CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[foam-extend.org] Having issue compiling FE41 on aarch64

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2022, 16:23
Default Having issue compiling FE41 on aarch64
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
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
EternalSeekerX is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue compiling solver for OF 2.4 klausb OpenFOAM Programming & Development 8 August 1, 2018 19:15
foam-extend-3.2: issue compiling new libraries on Windows guest1044 OpenFOAM Programming & Development 3 April 18, 2016 12:36
Convergence issue in natural convection problem chrisf90 FLUENT 5 March 5, 2016 08:30
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi foamer123 OpenFOAM Installation 9 August 20, 2015 14:03
about USER FORTRAN compiling issue CXL CFX 1 October 9, 2003 21:00


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