Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bahricanyesil opened this issue Dec 23, 2022 · 1 comment
Open

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

bahricanyesil opened this issue Dec 23, 2022 · 1 comment

Comments

@bahricanyesil
Copy link

bahricanyesil commented Dec 23, 2022

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
Copy link
Contributor

karypis commented Dec 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants