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

Fails to build for aarch64-pc-windows-gnullvm target due to invalid target triple getting passed to clang #3393

Open
BtbN opened this issue Aug 10, 2024 · 1 comment
Labels

Comments

@BtbN
Copy link

BtbN commented Aug 10, 2024

Describe the bug

When building for the aarch64-pc-windows-gnullvm target, building the assembly bits fails due to clang getting passed an invalid target name.
Namely, the rust target has an "llvm" sitting at the end, while the llvm target does not.

To Reproduce

Add the aarch64-pc-windows-gnullvm target via rustup or other means, and try to build rav1e for it.

Expected behavior
A clear and concise description of what you expected to happen.

Required Information
Toolchain (if is a build problem):

$ cargo --version
cargo 1.82.0-nightly (0d8d22f83 2024-08-08)
$ rustc --version
rustc 1.82.0-nightly (ca5d25e2c 2024-08-09)
$ nasm --version # if on x86_64
NASM version 2.16.01

Version:
latest master

Operating system:
linux, cross compiling for aarch64 windows.

$ uname -a
Linux 158b89d49801 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Console Output
Please paste the console output below if it is relevant,

# cargo build --target=aarch64-pc-windows-gnullvm --release
   Compiling rav1e v0.7.0 (/rav1e)
The following warnings were emitted during compilation:

warning: [email protected]: clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-cdef.o" "-c" "src/arm/64/cdef.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-cdef16.o" "-c" "src/arm/64/cdef16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-cdef_dist.o" "-c" "src/arm/64/cdef_dist.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-mc.o" "-c" "src/arm/64/mc.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-mc16.o" "-c" "src/arm/64/mc16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-itx.o" "-c" "src/arm/64/itx.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-itx16.o" "-c" "src/arm/64/itx16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-ipred.o" "-c" "src/arm/64/ipred.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-ipred16.o" "-c" "src/arm/64/ipred16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-sad.o" "-c" "src/arm/64/sad.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-satd.o" "-c" "src/arm/64/satd.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-sse.o" "-c" "src/arm/64/sse.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
warning: [email protected]: ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/24d010046aac078b-tables.o" "-c" "src/arm/tables.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).

error: failed to run custom build command for `rav1e v0.7.0 (/rav1e)`

Caused by:
  process didn't exit successfully: `/rav1e/target/release/build/rav1e-78066fea355ad519/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-cfg=asm_neon
  TARGET = Some("aarch64-pc-windows-gnullvm")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_aarch64-pc-windows-gnullvm
  CC_aarch64-pc-windows-gnullvm = None
  cargo:rerun-if-env-changed=CC_aarch64_pc_windows_gnullvm
  CC_aarch64_pc_windows_gnullvm = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = Some("aarch64-w64-mingw32-clang")
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  cargo:rerun-if-env-changed=CFLAGS_aarch64-pc-windows-gnullvm
  CFLAGS_aarch64-pc-windows-gnullvm = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_pc_windows_gnullvm
  CFLAGS_aarch64_pc_windows_gnullvm = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = Some("-I/opt/ffbuild/include -O2 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong")
  cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid
  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-cdef.o" "-c" "src/arm/64/cdef.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-cdef16.o" "-c" "src/arm/64/cdef16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-cdef_dist.o" "-c" "src/arm/64/cdef_dist.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-mc.o" "-c" "src/arm/64/mc.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-mc16.o" "-c" "src/arm/64/mc16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-itx.o" "-c" "src/arm/64/itx.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-itx16.o" "-c" "src/arm/64/itx16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-ipred.o" "-c" "src/arm/64/ipred.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-ipred16.o" "-c" "src/arm/64/ipred16.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-sad.o" "-c" "src/arm/64/sad.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-satd.o" "-c" "src/arm/64/satd.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/ca81b3637afdb6b5-sse.o" "-c" "src/arm/64/sse.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).cargo:warning=clang: error: version 'llvm' in target triple 'aarch64-pc-windows-gnullvm' is invalid

  exit status: 1
  cargo:warning=ToolExecError: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/24d010046aac078b-tables.o" "-c" "src/arm/tables.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).

  --- stderr


  error occurred: Command "aarch64-w64-mingw32-clang" "-O3" "--target=aarch64-pc-windows-gnullvm" "-ffunction-sections" "-fdata-sections" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=aarch64-pc-windows-gnullvm" "-I" "." "-I" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out" "-I/opt/ffbuild/include" "-O2" "-pipe" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-o" "/rav1e/target/aarch64-pc-windows-gnullvm/release/build/rav1e-7ddc17cf5078d168/out/24d010046aac078b-tables.o" "-c" "src/arm/tables.S" with args aarch64-w64-mingw32-clang did not execute successfully (status code exit status: 1).
@BtbN BtbN added the bug label Aug 10, 2024
@BtbN
Copy link
Author

BtbN commented Aug 11, 2024

This seems to be fixed in the latest cc-rs release, but it's pinned to an old version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant