defined as
oqs = { version = "0.11.0", features = ["vendored"] }
system:
- NixOS Xantusia, x86_64
- no system liboqs present
running with a devenv:
{ pkgs, lib, config, inputs, ... }: {
packages = with pkgs; [ git openssl pkg-config cmake ];
env.LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
languages.rust = {
enable = true;
channel = "nightly";
};
}
tail of the error log
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_CXX_COMPILER
CMAKE_CXX_FLAGS
/home/stella/code/pqt/target/debug/build/oqs-sys-64ec9e4c783c31d8/out/include/oqs/common.h:11:10: fatal error: 'limits.h' file not found
thread 'main' panicked at /home/stella/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/oqs-sys-0.11.0+liboqs-0.13.0/build.rs:36:10:
Unable to generate bindings: ClangDiagnostic("/home/stella/code/pqt/target/debug/build/oqs-sys-64ec9e4c783c31d8/out/include/oqs/common.h:11:10: fatal error: 'limits.h' file not found\n")
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/1aeb99d248e1b0069110cb03c6f1dcc7b36fd7f3/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/1aeb99d248e1b0069110cb03c6f1dcc7b36fd7f3/library/core/src/panicking.rs:75:14
2: core::result::unwrap_failed
at /rustc/1aeb99d248e1b0069110cb03c6f1dcc7b36fd7f3/library/core/src/result.rs:1704:5
3: core::result::Result<T,E>::expect
4: build_script_build::generate_bindings
5: build_script_build::main::{{closure}}
6: build_script_build::main
7: core::ops::function::FnOnce::call_once
contents of /home/stella/code/pqt/target/debug/build/oqs-sys-64ec9e4c783c31d8/out/include/oqs:
aes_ops.h
common.h
kem.h
kem_bike.h
kem_classic_mceliece.h
kem_frodokem.h
kem_hqc.h
kem_kyber.h
kem_ml_kem.h
kem_ntruprime.h
oqs.h
oqsconfig.h
rand.h
sha2_ops.h
sha3_ops.h
sha3x4_ops.h
sig.h
sig_cross.h
sig_dilithium.h
sig_falcon.h
sig_mayo.h
sig_ml_dsa.h
sig_sphincs.h
sig_stfl.h
sig_uov.h
defined as
system:
running with a devenv:
tail of the error log
contents of
/home/stella/code/pqt/target/debug/build/oqs-sys-64ec9e4c783c31d8/out/include/oqs: