-
Notifications
You must be signed in to change notification settings - Fork 525
Open
Labels
O-appleApple targets and toolchainsApple targets and toolchains
Description
Hi.
Since some time a little over a month ago, we have not been able to build with --target x86_64-apple-darwin
. We see this:
The following warnings were emitted during compilation:
warning: zstd-sys@2.0.12+zstd.1.5.6: osxcross: error: cannot find libc++ headers
warning: zstd-sys@2.0.12+zstd.1.5.6: osxcross: error: while detecting target
warning: zstd-sys@2.0.12+zstd.1.5.6: ToolExecError: Command "o64-clang" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=x86_64-apple-darwin" "-mmacosx-version-min=10.12" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-march=westmere" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-o" "/arti/target/x86_64-apple-darwin/release/build/zstd-sys-9cc4c92c9feeab86/out/8957a4c8b028b07b-debug.o" "-c" "zstd/lib/common/debug.c" with args o64-clang did not execute successfully (status code exit status: 1).cargo:warning=osxcross: error: cannot find libc++ headers
The breakage occurs when we try to cargo update
. We know that 1.0.93 works, and that 1.0.100 doesn't.
I'm afraid I haven't been able to narrow this down or bisect it properly, because it's in an environment I don't have local access to. The failure occurs for us in CI, with the image amd64/rust:1.76.0-alpine3.18
.
If it would be helpful, I could bisect it to a particular cc
version.
We do have some more information: logs from a failed build, and an MR in our tree proposing to pin cc
, with some discussion.
Metadata
Metadata
Assignees
Labels
O-appleApple targets and toolchainsApple targets and toolchains