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

Cannot find system headers on macos apple silicon #657

Open
renehiemstra opened this issue May 8, 2024 · 0 comments
Open

Cannot find system headers on macos apple silicon #657

renehiemstra opened this issue May 8, 2024 · 0 comments

Comments

@renehiemstra
Copy link
Contributor

I get an error that the system headers are not found when including them using terralib.includec(...).

I am running on macos Sonoma 14.4.1 using an M3. My C++ compiler is AppleClang 15.0.0.15000309. I can reproduce the issue for different versions of llvm, ranging from 13-17.

commenting out the following lines in terralib.lua solves the issue for me

-- Obey the SDKROOT variable on macOS to match Clang behavior.
local sdkroot = os.getenv("SDKROOT")
if sdkroot then
    args:insert("-isysroot")
    args:insert(sdkroot)
end
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

1 participant