hacl-sys 0.0.2

FFI bindings for the HACL C package
Documentation
Build #1658751 2025-01-22T23:55:59.902417+00:00
# rustc version
rustc 1.86.0-nightly (ed43cbcb8 2025-01-21)# docs.rs version
docsrs 0.6.0 (29a0e81b 2025-01-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/hacl-sys-0.0.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/hacl-sys-0.0.2/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustflags=[\"--cfg\", \"nobindgen\"]" "-Zhost-config" "-Ztarget-applies-to-host" "--config" "host.rustflags=[\"--cfg\", \"nobindgen\"]" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"nobindgen\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250121-1.86.0-nightly-ed43cbcb8\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-apple-darwin\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-apple-darwin", kill_on_drop: false }`
[INFO] [stdout] b16123c1afdf2813808d91fea60cd48a35e247bbd06127f590fdfa08763070b3
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "b16123c1afdf2813808d91fea60cd48a35e247bbd06127f590fdfa08763070b3", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr] warning: unexpected `cfg` condition name: `nobindgen`
[INFO] [stderr]  --> build.rs:3:29
[INFO] [stderr]   |
[INFO] [stderr] 3 | #[cfg(all(not(windows), not(nobindgen)))]
[INFO] [stderr]   |                             ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
[INFO] [stderr]   = help: consider using a Cargo feature instead
[INFO] [stderr]   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]            [lints.rust]
[INFO] [stderr]            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nobindgen)'] }
[INFO] [stderr]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]   = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `nobindgen`
[INFO] [stderr]   --> build.rs:69:20
[INFO] [stderr]    |
[INFO] [stderr] 69 | #[cfg(any(windows, nobindgen))]
[INFO] [stderr]    |                    ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: consider using a Cargo feature instead
[INFO] [stderr]    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]             [lints.rust]
[INFO] [stderr]             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nobindgen)'] }
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: `hacl-sys` (build script) generated 2 warnings
[INFO] [stderr]    Compiling hacl-sys v0.0.2 (/opt/rustwide/workdir)
[INFO] [stderr] error: failed to run custom build command for `hacl-sys v0.0.2 (/opt/rustwide/workdir)`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/hacl-sys-d90618025bad07a9/build-script-build` (exit status: 101)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   mach_build: false
[INFO] [stderr]    >>> Copying HACL C file
[INFO] [stderr]        from /opt/rustwide/workdir/.c
[INFO] [stderr]        to /opt/rustwide/target/x86_64-apple-darwin/debug/build/hacl-sys-7c4db2cf93cac3a0/out/c
[INFO] [stderr]    >>> Building HACL C in /opt/rustwide/target/x86_64-apple-darwin/debug/build/hacl-sys-7c4db2cf93cac3a0/out/c
[INFO] [stderr]   -- The C compiler identification is Clang 14.0.0
[INFO] [stderr]   -- The CXX compiler identification is Clang 14.0.0
[INFO] [stderr]   -- Detecting C compiler ABI info
[INFO] [stderr]   -- Detecting C compiler ABI info - failed
[INFO] [stderr]   -- Check for working C compiler: /usr/bin/clang
[INFO] [stderr]   -- Check for working C compiler: /usr/bin/clang - broken
[INFO] [stderr]   -- Configuring incomplete, errors occurred!
[INFO] [stderr]   See also "/opt/rustwide/target/x86_64-apple-darwin/debug/build/hacl-sys-7c4db2cf93cac3a0/out/c/build/CMakeFiles/CMakeOutput.log".
[INFO] [stderr]   See also "/opt/rustwide/target/x86_64-apple-darwin/debug/build/hacl-sys-7c4db2cf93cac3a0/out/c/build/CMakeFiles/CMakeError.log".
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr]   CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
[INFO] [stderr]     The C compiler
[INFO] [stderr] 
[INFO] [stderr]       "/usr/bin/clang"
[INFO] [stderr] 
[INFO] [stderr]     is not able to compile a simple test program.
[INFO] [stderr] 
[INFO] [stderr]     It fails with the following output:
[INFO] [stderr] 
[INFO] [stderr]       Change Dir: /opt/rustwide/target/x86_64-apple-darwin/debug/build/hacl-sys-7c4db2cf93cac3a0/out/c/build/CMakeFiles/CMakeTmp
[INFO] [stderr]       
[INFO] [stderr]       Run Build Command(s):/usr/bin/ninja cmTC_058e8 && [1/2] Building C object CMakeFiles/cmTC_058e8.dir/testCCompiler.c.o
[INFO] [stderr]       [2/2] Linking C executable cmTC_058e8
[INFO] [stderr]       FAILED: cmTC_058e8 
[INFO] [stderr]       : && /usr/bin/clang --target=x86_64-apple-darwin  -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_058e8.dir/testCCompiler.c.o -o cmTC_058e8   && :
[INFO] [stderr]       /usr/bin/ld: unrecognised emulation mode: acosx_version_min
[INFO] [stderr]       Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe
[INFO] [stderr]       clang: error: linker command failed with exit code 1 (use -v to see invocation)
[INFO] [stderr]       ninja: build stopped: subcommand failed.
[INFO] [stderr]       
[INFO] [stderr]       
[INFO] [stderr] 
[INFO] [stderr]     
[INFO] [stderr] 
[INFO] [stderr]     CMake will not be able to correctly generate this project.
[INFO] [stderr]   Call Stack (most recent call first):
[INFO] [stderr]     CMakeLists.txt:35 (project)
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr]   thread 'main' panicked at build.rs:102:9:
[INFO] [stderr]   Failed to run cmake.
[INFO] [stderr]   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[INFO] running `Command { std: "docker" "inspect" "b16123c1afdf2813808d91fea60cd48a35e247bbd06127f590fdfa08763070b3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b16123c1afdf2813808d91fea60cd48a35e247bbd06127f590fdfa08763070b3", kill_on_drop: false }`
[INFO] [stdout] b16123c1afdf2813808d91fea60cd48a35e247bbd06127f590fdfa08763070b3