We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I run cargo build -r, I run into the following issue:
cargo build -r
The following warnings were emitted during compilation: warning: [email protected]: In file included from /Users/vamsi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.128/src/cxx.cc:1: warning: [email protected]: /Users/vamsi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.128/src/../include/cxx.h:2:10: fatal error: 'algorithm' file not found warning: [email protected]: 2 | #include <algorithm> warning: [email protected]: | ^~~~~~~~~~~ warning: [email protected]: 1 error generated. error: failed to run custom build command for `cxx v1.0.128` Caused by: process didn't exit successfully: `/Users/vamsi/Github/tangle/target/release/build/cxx-faff2f3ab47e955d/build-script-build` (exit status: 1) --- stdout OUT_DIR = Some(/Users/vamsi/Github/tangle/target/release/build/cxx-0c68743cec1e964e/out) TARGET = Some(x86_64-apple-darwin) OPT_LEVEL = Some(0) HOST = Some(x86_64-apple-darwin) cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin CXX_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin CXX_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXX HOST_CXX = None cargo:rerun-if-env-changed=CXX CXX = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(false) cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET = None cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin CXXFLAGS_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin CXXFLAGS_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:warning=In file included from /Users/vamsi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.128/src/cxx.cc:1: cargo:warning=/Users/vamsi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.128/src/../include/cxx.h:2:10: fatal error: 'algorithm' file not found cargo:warning= 2 | #include <algorithm> cargo:warning= | ^~~~~~~~~~~ cargo:warning=1 error generated. --- stderr error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=x86_64-apple-darwin" "-mmacosx-version-min=15.1" "-std=c++11" "-Wall" "-Wextra" "-o" "/Users/vamsi/Github/tangle/target/release/build/cxx-0c68743cec1e964e/out/c861df5f1e26f79d-cxx.o" "-c" "/Users/vamsi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.128/src/cxx.cc" with args c++ did not execute successfully (status code exit status: 1).
I have xcode command line tools, cmake, and clang installed.
System info:
System Version: macOS 15.1.1 (24B91) Kernel Version: Darwin 24.1.0 Processor Name: 8-Core Intel Core i9 Hyper-Threading Technology: Enabled System Firmware Version: 2069.40.2.0.0 (iBridge: 22.16.11072.0.0,0) OS Loader Version: 582~2132
The text was updated successfully, but these errors were encountered:
It looks like this an issue with Xcode on Intel Mac, try this workaround an lmk if it did work: dtolnay/cxx#1357 (comment)
Sorry, something went wrong.
Thanks! This fixed it for me: dtolnay/cxx#1357 (comment)
Cool! we will try to provide binaries for mac (ARM, Intel) soon. See #842
No branches or pull requests
When I run
cargo build -r
, I run into the following issue:I have xcode command line tools, cmake, and clang installed.
System info:
The text was updated successfully, but these errors were encountered: