/lang/rust - fatal error: 'float. h' file not found
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jun 2024 13:00:36 UTC
FreeBSD 14.1-RELEASE here. Upgrading of security/py-cryptography pulls in lang/rust which fails to install successfully because float.h is not found. But actually float.h is there. Anyone else seeing this? => SHA256 Checksum OK for rust/crates/windows_x86_64_msvc-0.48.5.crate. ===> Moving crates to /usr/ports/security/py-cryptography/work-py311/cryptography-42.0.8/cargo-crates ===> Patching for py311-cryptography-42.0.8,1 ===> py311-cryptography-42.0.8,1 depends on package: py311-cffi>=1.12 - found ===> py311-cryptography-42.0.8,1 depends on package: py311-setuptools>=61.0.0 - found ===> py311-cryptography-42.0.8,1 depends on package: py311-setuptools-rust>=1.7.0 - found ===> py311-cryptography-42.0.8,1 depends on package: py311-wheel>=0 - found ===> py311-cryptography-42.0.8,1 depends on package: rust>=1.78.0 - not found ===> License APACHE20 MIT accepted by the user ===> rust-1.78.0 depends on file: /usr/local/sbin/pkg - found => rustc-1.78.0-src.tar.xz doesn't seem to exist in /usr/ports/distfiles/rust. => Attempting to fetch https://static.rust-lang.org/dist/rustc-1.78.0-src.tar.xz rustc-1.78.0-src.tar.xz 25% of 151 MB 2317 kBps 01m28s ``` cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown CFLAGS_wasm32_unknown_unknown = Some("-ffunction-sections -fdata-sections -fPIC --target=wasm32-unknown-unknown -pipe -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/usr/ports/lang/rust/work/rustc-1.78.0-src=/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6") cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:warning=In file included from /usr/ports/lang/rust/work/rustc-1.78.0-src/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c:13: cargo:warning=/usr/ports/lang/rust/work/rustc-1.78.0-src/src/llvm-project/compiler-rt/lib/builtins/int_lib.h:92:10: fatal error: 'float. h' file not found cargo:warning= 92 | #include <float.h> cargo:warning= | ^~~~~~~~~ cargo:warning=1 error generated. --- stderr error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-pipe" "-fstack-protector-strong" "-fno-strict-aliasing" "-fdebug-prefix-map=/usr/ports/lang/rust/work/rustc-1.78.0-src=/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6" "-fno-builtin" "-fvisibility=hidden" "-ffreestanding" "-DVISIBILITY_HIDDEN" "-o" "/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage2-std/wasm32-unknown-unknown/release/build/compiler_builtins-54e9c282fe860763/out/00d83b8a602ca115-absvdi2.o" "-c" "/usr/ports/lang/rust/work/rustc-1.78.0-src/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c" with args "clang" did not execute successfully (status code exit status: 1). warning: build failed, waiting for other jobs to finish... command did not execute successfully: cd "/usr/ports/lang/rust/work/rustc-1.78.0-src" && env -u MAKEFLAGS -u MFLAGS AR_wasm32_unknown_unknown="ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_PROFILE_RELEASE_STRIP="false" CARGO_TARGET_DIR="/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage2-std" CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER="clang" CC_wasm32_unknown_unknown="clang" CFG_COMPILER_BUILD_TRIPLE="x86_64-unknown-freebsd" CFG_COMPILER_HOST_TRIPLE="wasm32-unknown-unknown" CFG_DISABLE_UNSTABLE_FEATURES="1" CFG_RELEASE_CHANNEL="stable" CFG_VIRTUAL_RUST_SOURCE_BASE_DIR="/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6" CFLAGS_wasm32_unknown_unknown="-ffunction-sections -fdata-sections -fPIC --target=wasm32-unknown-unknown -pipe -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/usr/ports/lang/rust/work/rustc-1.78.0-src=/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6" CXXFLAGS_wasm32_unknown_unknown="-ffunction-sections -fdata-sections -fPIC --target=wasm32-unknown-unknown -pipe -fstack-protector-strong -fno-strict-aliasing -fdebug-prefix-map=/usr/ports/lang/rust/work/rustc-1.78.0-src=/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6" CXX_wasm32_unknown_unknown="clang++" LIBC_CHECK_CFG="1" RANLIB_wasm32_unknown_unknown="ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/usr/ports/lang/rust/work/_build/wasm32-unknown-unknown/native" RUSTC="/usr/ports/lang/rust/work/_build/bootstrap/debug/rustc" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_CARGO_REGISTRY_SRC_TO_REMAP="/usr/ports/lang/rust/work/rustc-1.78.0-src/vendor=/rust/deps" RUSTC_DEBUGINFO_MAP="/usr/ports/lang/rust/work/rustc-1.78.0-src=/rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6" RUSTC_ERROR_METADATA_DST="/usr/ports/lang/rust/work/_build/tmp/extended-error-metadata" RUSTC_FORCE_UNSTABLE="1" RUSTC_HOST_FLAGS="-Zunstable-options --check-cfg=cfg(bootstrap) -Clinker=clang" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage2/lib" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes" RUSTC_REAL="/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage2/bin/rustc" RUSTC_SNAPSHOT="/usr/ports/lang/rust/work/bootstrap/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/usr/ports/lang/rust/work/bootstrap/lib" RUSTC_STAGE="2" RUSTC_SYSROOT="/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage2" RUSTC_VERBOSE="2" RUSTC_WRAPPER="/usr/ports/lang/rust/work/_build/bootstrap/debug/rustc" RUSTDOC="/usr/ports/lang/rust/work/_build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-Csymbol-mangling-version=legacy -Zunstable-options --check-cfg=cfg(feature,values(any())) -Zunstable-options --check-cfg=cfg(bootstrap) --check-cfg=cfg(stdarch_intel_sde) --check-cfg=cfg(no_fp_fmt_parse) --check-cfg=cfg(no_global_oom_handling) --check-cfg=cfg(no_rc) --check-cfg=cfg(no_sync) --check-cfg=cfg(netbsd10) --check-cfg=cfg(backtrace_in_libstd) --check-cfg=cfg(target_env,values(\"libnx\",\"p2\")) --check-cfg=cfg(target_arch,values(\"arm64ec\",\"spirv\",\"nvptx\",\"xtensa\")) -Wrustdoc::invalid_codeblock_attributes --crate-version 1.78.0\t(9b00956e5\t2024-04-29)\t(built\tfrom\ta\tsource\ttarball) -Clinker=clang -Zcrate-attr=doc(html_root_url=\" https://doc.rust-lang.org/1.78.0/\") -Zcrate-attr=warn(rust_2018_idioms)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-Csymbol-mangling-version=legacy -Zunstable-options --check-cfg=cfg(feature,values(any())) -Zunstable-options --check-cfg=cfg(bootstrap) --check-cfg=cfg(stdarch_intel_sde) --check-cfg=cfg(no_fp_fmt_parse) --check-cfg=cfg(no_global_oom_handling) --check-cfg=cfg(no_rc) --check-cfg=cfg(no_sync) --check-cfg=cfg(netbsd10) --check-cfg=cfg(backtrace_in_libstd) --check-cfg=cfg(target_env,values(\"libnx\",\"p2\")) --check-cfg=cfg(target_arch,values(\"arm64ec\",\"spirv\",\"nvptx\",\"xtensa\")) -Zmacro-backtrace -Zunstable-options -Csplit-debuginfo=off -Cprefer-dynamic -Zinline-mir -Cembed-bitcode=yes -Zcrate-attr=doc(html_root_url=\" https://doc.rust-lang.org/1.78.0/\")" RUST_COMPILER_RT_ROOT="/usr/ports/lang/rust/work/rustc-1.78.0-src/src/llvm-project/compiler-rt" RUST_TEST_THREADS="32" WINAPI_NO_BUNDLED_LIBRARIES="1" __CARGO_DEFAULT_LIB_METADATA="stablestd" "/usr/ports/lang/rust/work/bootstrap/bin/cargo" "build" "--target" "wasm32-unknown-unknown" "--release" "-Zcheck-cfg" "-Zbinary-dep-depinfo" "-j" "32" "-v" "-v" "--frozen" "--features" " panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/usr/ports/lang/rust/work/rustc-1.78.0-src/library/sysroot/Cargo.toml" "--message-format" "json-render-diagnostics" expected success, got: exit status: 101 Traceback (most recent call last): File "/usr/ports/lang/rust/work/rustc-1.78.0-src/x.py", line 50, in <module> bootstrap.main() File "/usr/ports/lang/rust/work/rustc-1.78.0-src/src/bootstrap/bootstrap.py", line 1164, in main bootstrap(args) File "/usr/ports/lang/rust/work/rustc-1.78.0-src/src/bootstrap/bootstrap.py", line 1140, in bootstrap run(args, env=env, verbose=build.verbose, is_bootstrap=True) File "/usr/ports/lang/rust/work/rustc-1.78.0-src/src/bootstrap/bootstrap.py", line 187, in run raise RuntimeError(err) RuntimeError: failed to run: /usr/ports/lang/rust/work/_build/bootstrap/debug/bootstrap dist --jobs=32 *** Error code 1 Stop. make[1]: stopped in /usr/ports/lang/rust *** Error code 1 Stop. make: stopped in /usr/ports/security/py-cryptography ``` -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]