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

Linking with x86_64 library instead of arm64 on M1 Mac on Monterey #117

Closed
tbpringle opened this issue Nov 13, 2021 · 4 comments
Closed
Assignees

Comments

@tbpringle
Copy link

Pulling either v2.1-Release or v2.1-Dev
make -j10 clobber
make -j10 all
generates...

ld: warning: ignoring file /usr/local/lib/libidn2.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Compiling Tests/TestHarness/SimpleClass.cpp ...
Compiling Tests/TestHarness/TestHarness.cpp ...
Compiling Tests/TestHarness/SimpleClass.cpp ...
Undefined symbols for architecture arm64:
"_idn2_check_version", referenced from:
_Curl_idnconvert_hostname in libcurl.a(libcurl_la-url.o)
"_idn2_free", referenced from:
_Curl_free_idnconverted_hostname in libcurl.a(libcurl_la-url.o)
"_idn2_lookup_ul", referenced from:
_Curl_idnconvert_hostname in libcurl.a(libcurl_la-url.o)
"_idn2_strerror", referenced from:
_Curl_idnconvert_hostname in libcurl.a(libcurl_la-url.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@tbpringle
Copy link
Author

building on a different M1 with Monterey seems to work so I'm not sure what is different.

@tbpringle
Copy link
Author

the only diff I'm aware of is that the working system uses the old M1 vs the new M1-Max

@LewisPringle
Copy link
Member

on the broken mac - can you try:

brew install libidn2
and let me know if that solves the problem? I can update the dependency checker code if needed. THX.

@LewisPringle LewisPringle self-assigned this Mar 2, 2022
@LewisPringle
Copy link
Member

presume fixed since I never heard back

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