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

Build expects windowsmanifest on non-Windows system: require llvm component windowsmanifest but wasn't found #122

Open
yurivict opened this issue Apr 26, 2024 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Apr 26, 2024

     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=camino CARGO_MANIFEST_DIR=/usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/cargo-crates/camino-1.1.4 CARGO_PKG_AUTHORS='Without Boats <[email protected]>:Ashley Williams <[email protected]>:Steve Klabnik <[email protected]>:Rain <[email protected]>' CARGO_PKG_DESCRIPTION='UTF-8 paths' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=camino CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/camino-rs/camino' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.1.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/usr/ports/cad/openvaf/work/target/release/deps:/usr/local/lib' OUT_DIR=/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/camino-ac1e2337f967f03e/out /usr/local/bin/rustc --crate-name camino --edition=2018 /usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/cargo-crates/camino-1.1.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=188 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C lto=off -C embed-bitcode=no -C debuginfo=2 -C metadata=cf348299a9e1db27 -C extra-filename=-cf348299a9e1db27 --out-dir /usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/deps --target x86_64-unknown-freebsd -C linker=/usr/local/llvm16/bin/clang -L dependency=/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/deps -L dependency=/usr/ports/cad/openvaf/work/target/release/deps --cap-lints warn -C link-arg=-fstack-protector-strong --cfg path_buf_capacity --cfg shrink_to --cfg try_reserve_2 --cfg path_buf_deref_mut`
[llvm 0.0.0] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: failed to run custom build command for `llvm v0.0.0 (/usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/llvm)`

Caused by:
  process didn't exit successfully: `CARGO=/usr/local/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=x86_64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=fxsr,sse,sse2 CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=freebsd CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='-Clink-arg=-fstack-protector-strong' CARGO_MANIFEST_DIR=/usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/llvm CARGO_MANIFEST_LINKS=llvm-13 CARGO_PKG_AUTHORS=DSPOM CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=GPL-3.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=llvm CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' DEBUG=true HOST=x86_64-unknown-freebsd LD_LIBRARY_PATH='/usr/ports/cad/openvaf/work/target/release/deps:/usr/ports/cad/openvaf/work/target/release:/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib' NUM_JOBS=7 OPT_LEVEL=3 OUT_DIR=/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/llvm-0fdb3f853cfde985/out PROFILE=release RUSTC=/usr/local/bin/rustc RUSTC_LINKER=/usr/local/llvm16/bin/clang RUSTDOC=/usr/local/bin/rustdoc TARGET=x86_64-unknown-freebsd /usr/ports/cad/openvaf/work/target/release/build/llvm-56e6a59a5766d1a4/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-env=COMPILER_NAME=openvaf
  cargo:rerun-if-env-changed=RUST_CHECK
  cargo:rerun-if-env-changed=LLVM_CONFIG

  --- stderr
  thread 'main' panicked at openvaf/llvm/build.rs:171:13:
  require llvm component windowsmanifest but wasn't found
  stack backtrace:
     0: rust_begin_unwind
     1: core::panicking::panic_fmt
     2: build_script_build::main
               at ./build.rs:171:13
     3: core::ops::function::FnOnce::call_once
               at /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/library/core/src/ops/function.rs:250:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
[target 0.0.0] clang-5.0: error: no such file or directory: '/clang:--target=x86_64-pc-windows-msvc'
[target 0.0.0] clang-5.0: error: no such file or directory: '/clang:-o/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/target-58917fcd0acd8a5e/out/ucrt_x64.obj'
[target 0.0.0] thread 'main' panicked at openvaf/target/build.rs:42:6:
[target 0.0.0] ucrt compilation succedes: command exited with non-zero code `clang-cl /c /Zl /GS- /clang:--target=x86_64-pc-windows-msvc /clang:-o/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/target-58917fcd0acd8a5e/out/ucrt_x64.obj /usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/target/src/ucrt.c`: 1
[target 0.0.0] stack backtrace:
[target 0.0.0]    0: rust_begin_unwind
[target 0.0.0]    1: core::panicking::panic_fmt
[target 0.0.0]    2: core::result::unwrap_failed
[target 0.0.0]    3: core::result::Result<T,E>::expect
[target 0.0.0]              at /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/library/core/src/result.rs:1030:23
[target 0.0.0]    4: build_script_build::gen_msvcrt_importlib
[target 0.0.0]              at ./build.rs:37:5
[target 0.0.0]    5: build_script_build::main
[target 0.0.0]              at ./build.rs:14:5
[target 0.0.0]    6: core::ops::function::FnOnce::call_once
[target 0.0.0]              at /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/library/core/src/ops/function.rs:250:5
[target 0.0.0] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: failed to run custom build command for `target v0.0.0 (/usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/target)`

Caused by:
  process didn't exit successfully: `CARGO=/usr/local/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=x86_64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=fxsr,sse,sse2 CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=freebsd CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='-Clink-arg=-fstack-protector-strong' CARGO_MANIFEST_DIR=/usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/target CARGO_PKG_AUTHORS=DSPOM CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=GPL-3.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=target CARGO_PKG_README=../README.md CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION=1.56 CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' DEBUG=true HOST=x86_64-unknown-freebsd LD_LIBRARY_PATH='/usr/ports/cad/openvaf/work/target/release/deps:/usr/ports/cad/openvaf/work/target/release:/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib' NUM_JOBS=7 OPT_LEVEL=3 OUT_DIR=/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/target-58917fcd0acd8a5e/out PROFILE=release RUSTC=/usr/local/bin/rustc RUSTC_LINKER=/usr/local/llvm16/bin/clang RUSTDOC=/usr/local/bin/rustdoc TARGET=x86_64-unknown-freebsd /usr/ports/cad/openvaf/work/target/release/build/target-e2695bfebac664ce/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-env=CFG_COMPILER_HOST_TRIPLE=x86_64-unknown-freebsd
  cargo:rerun-if-env-changed=RUST_CHECK
  cargo:rerun-if-changed=/usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/target/src/ucrt.c

  --- stderr
  $ clang-cl /c /Zl /GS- /clang:--target=x86_64-pc-windows-msvc /clang:-o/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/target-58917fcd0acd8a5e/out/ucrt_x64.obj /usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/target/src/ucrt.c
  clang-5.0: error: no such file or directory: '/clang:--target=x86_64-pc-windows-msvc'
  clang-5.0: error: no such file or directory: '/clang:-o/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/target-58917fcd0acd8a5e/out/ucrt_x64.obj'
  thread 'main' panicked at openvaf/target/build.rs:42:6:
  ucrt compilation succedes: command exited with non-zero code `clang-cl /c /Zl /GS- /clang:--target=x86_64-pc-windows-msvc /clang:-o/usr/ports/cad/openvaf/work/target/x86_64-unknown-freebsd/release/build/target-58917fcd0acd8a5e/out/ucrt_x64.obj /usr/ports/cad/openvaf/work/OpenVAF-OpenVAF-v23.5.0/openvaf/target/src/ucrt.c`: 1
  stack backtrace:
     0: rust_begin_unwind
     1: core::panicking::panic_fmt
     2: core::result::unwrap_failed
     3: core::result::Result<T,E>::expect
               at /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/library/core/src/result.rs:1030:23
     4: build_script_build::gen_msvcrt_importlib
               at ./build.rs:37:5
     5: build_script_build::main
               at ./build.rs:14:5
     6: core::ops::function::FnOnce::call_once
               at /wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/library/core/src/ops/function.rs:250:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
*** Error code 101

FreeBSD 14.0

@yurivict yurivict changed the title Build expects windowsmanifest on non-Windows syetem: require llvm component windowsmanifest but wasn't found Build expects windowsmanifest on non-Windows system: require llvm component windowsmanifest but wasn't found Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant