|
[Sponsors] |
May 24, 2021, 01:45 |
ld cannot find lmpi?
|
#1 |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 143
Rep Power: 11 |
Hello everyone,
So has anyone run into this issue? Code:
+ wmake libso parMetisDecomp /usr/bin/ld: cannot find -lmpi collect2: error: ld returned 1 exit status make: *** [/home/si/.root/opt/OpenFOAM/foam/foam-extend-4.0/wmake/Makefile:188: /home/si/.root/opt/OpenFOAM/foam/foam-extend-4.0/lib/linux64GccDPOpt/libparMetisDecomp.so] Error 1 I have systemmpi specified and mpicc works fine though? Why can't ld find mpi? |
|
June 18, 2021, 09:53 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Not much to go on. Wish to tell us more about operating system etc? |
||
March 24, 2022, 23:34 |
|
#3 | |
New Member
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 7 |
Quote:
OF=foam-extend-4.1 gcc=9.3.0 MPI=openmpi-4.0.4 OS=CentOS Stream 8 WM_MPLIB=SYSTEMOPENMPI My ugly fix was to change the following line in src/decompositionMethods/parMetisDecomp/Make/options Code:
-L$(OPENMPI_DIR)/lib -lmpi Code:
-L$(MPI_ARCH_PATH)/lib -lmpi Code:
include $(RULES)/mplib$(WM_MPLIB) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] 3.2 Installation in Debian 8.5 | jsm | OpenFOAM Installation | 2 | June 19, 2016 11:53 |
How to make a code parallel? | Bruno Machado | Fluent UDF and Scheme Programming | 15 | May 27, 2016 10:18 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
Problem Building OF on Centos cluster (no admin rights) | CKH | OpenFOAM Installation | 5 | November 13, 2011 07:32 |