Skip to content

Regression in v1.2.11: clang: error: cannot specify '-mtargetos=xros1.0' along with '--target=arm64-apple-xros' #1383

Closed
@briansmith

Description

@briansmith
running: LC_ALL="C" "clang" "-O3" "-fPIC" "--target=arm64-apple-xros" "-mtargetos=xros1.0" "-isysroot" "/Applications/Xcode_15.2.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS1.0.sdk" "-I" "/Users/runner/work/ring/ring/include" "-I" "/Users/runner/work/ring/ring/target/aarch64-apple-visionos/release/build/ring-45c369a6134f7c8c/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-gfull" "-DNDEBUG" "-Werror" "-o" "/Users/runner/work/ring/ring/target/aarch64-apple-visionos/release/build/ring-45c369a6134f7c8c/out/25ac62e5b3c53843-curve25519.o" "-c" "/Users/runner/work/ring/ring/crypto/curve25519/curve25519.c"
[ring 0.17.8] 
[ring 0.17.8] cargo:warning=clang: error: cannot specify '-mtargetos=xros1.0' along with '--target=arm64-apple-xros'

The command run was:

mk/cargo.sh +nightly test -vv --target=aarch64-apple-visionos --no-run -Z build-std --release]

Where mk/cargo.sh is a wrapper around cargo

GitHub Actions Runner version 2.322.0
Operating System
macOS
14.7.2
23H311

It was working fine with the previous release, AFAICT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions