KarypisLab / METIS

METIS - Serial Graph Partitioning and Fill-reducing Matrix Ordering
Other
665 stars 134 forks source link

ld: symbol(s) not found for architecture arm64 #57

Open bahricanyesil opened 1 year ago

bahricanyesil commented 1 year ago

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?

karypis commented 1 year ago

The above error suggests that libmetis.a has not been compiled on M1 pro.