Closed tmpfs closed 3 months ago
I think it's a problem with the Xcode installation, checking now.
I had forgotten to also update the command line tools but that didn't fix it.
The file exists here: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/TargetConditionals.h
So I will try to add that include path and see what happens.
This hack fixes the problem right now:
export C_INCLUDE_PATH="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/:$C_INCLUDE_PATH"
But I am curious what the proper fix would be.
Based on reading https://github.com/rust-lang/cc-rs/issues/902 it looks like the issue could be related to IPHONEOS_DEPLOYMENT_TARGET/MACOS_DEPLOYMENT_TARGET/etc and/or the version of cc-rs in use.
@tmpfs It seems like cc-rs has had a lot of issues recently regarding Apple targets, and I think this is likely due to them. I think the later cc-rs versions have rectified things. Are things working for you now? If not, please reopen this.
Can confirm compilation working for me again on e943bfccd6f8fd77a2ba132ec2997346ed883552, thank you @briansmith :pray:
Hi,
I recently upgraded to XCode 15 and suddenly ring stops compiling for MacOS targets (both aarch64 and x86_64) here is the output:
I was compiling against
ring@0.17.5
and have tried updating toring@0.17.7
and the problem still happens.I have checked against 6762d656742d7ea431948356760da28e09292b72 and I get the same error with either of:
Any idea how I can resolve this please?