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

Undefined symbol __availability_version_check with LLVM 17 on macOS Intel (osx-64) #96

Closed
certik opened this issue Aug 24, 2024 · 4 comments

Comments

@certik
Copy link
Contributor

certik commented Aug 24, 2024

We are getting the following linker error with Clang 17 (LLVM 17) on osx intel:

[ 93%] Linking CXX executable test_lfortran
Undefined symbols for architecture x86_64:
  "__availability_version_check", referenced from:
      ___isPlatformVersionAtLeast in libclang_rt.osx.a(os_version_check.c.o)
      __initializeAvailabilityCheck in libclang_rt.osx.a(os_version_check.c.o)
ld: symbol(s) not found for architecture x86_64
x86_64-apple-darwin13.4: error: linker command failed with exit code 1 (use -v to see invocation)

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1009656&view=logs&j=a3733481-72bd-515a-076a-bb2a92643e95&t=e8fb3a0d-1847-59c9-62a5-d55cea7e690a

See also #94 (comment), the PR that triggered it.

This error does not happen on macOS/arm.

The only workaround that we know about so far is to use Clang 16 / LLVM 16 for macOS/intel.

@h-vetinari
Copy link
Member

I opened an issue for this: conda-forge/clang-compiler-activation-feedstock#139

@certik
Copy link
Contributor Author

certik commented Sep 2, 2024

Thanks @h-vetinari ! If you figure out how to fix it, that would be a huge help.

@h-vetinari
Copy link
Member

Can you try again? Should be fixed now...

@h-vetinari
Copy link
Member

Closing this as obsolete

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