ld: symbol(s) not found for architecture arm64
bahricanyesil opened this issue · comments
I'm getting the following warning and error while trying to use the METIS package with OpenMPI:
"ld: warning: ignoring file /usr/local/lib/libmetis.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
"_METIS_PartGraphRecursive", referenced from:
getPartitioning(int, int*) in main-37344f.o
ld: symbol(s) not found for architecture arm64"
I'm using the following command:
"mpic++ main.cpp -o main.o -I/usr/local/include -L/usr/local/lib -lmetis"
I'm using Macbook M1 Pro.
Do you have any suggestions to avoid this error?
The above error suggests that libmetis.a has not been compiled on M1 pro.