cargo does not build currently
Hi all
Some problem with the build of cargo just popped up. I am doing currently builds on the master branches. It turns out after a sync of my sources cargo does not build anymore. It spits weird error messages that it cannot find the crate for libc:
can't find crate for libc
Somehow things got mixed:
error[E0460]: found possibly newer version of crate std which libnghttp2_sys depends on
I attached the build output in case of interest.
Has anyone an idea how I can fix this?
Thanks for any hints!
Greets
Dave
DEBUG: Executing shell function do_compile
NOTE: Using rust targets from /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rust-targets/
NOTE: cargo = /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/cargo-1.80.1-x86_64-unknown-linux-gnu/bin/cargo
NOTE: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/cargo-1.80.1-x86_64-unknown-linux-gnu/bin/cargo build -v --frozen --target x86_64-unknown-linux-gnu --release --manifest-path=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo//Cargo.toml
warning: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/sources-unpack/cargo_home/config is deprecated in favor of config.toml
note: if you need to support cargo 1.38 or earlier, you can symlink config to config.toml
Fresh unicode-ident v1.0.12
Fresh proc-macro2 v1.0.79
Fresh pkg-config v0.3.30
Fresh vcpkg v0.2.15
Fresh regex-syntax v0.8.3
Fresh once_cell v1.19.0
Fresh version_check v0.9.4
Fresh autocfg v1.2.0
Fresh tinyvec_macros v0.1.1
Fresh smallvec v1.13.2
Fresh gix-trace v0.1.9
Fresh fastrand v2.1.0
Fresh scopeguard v1.2.0
Fresh faster-hex v0.9.0
Fresh same-file v1.0.6
Fresh bitflags v2.5.0
Fresh quote v1.0.35
Fresh libc v0.2.155
Fresh aho-corasick v1.1.3
Fresh tinyvec v1.6.0
Fresh walkdir v2.5.0
Fresh adler v1.0.2
Fresh bytes v1.6.0
Fresh sha1_smol v1.0.0
Fresh itoa v1.0.11
Fresh powerfmt v0.2.0
Fresh time-core v0.1.2
Fresh num-conv v0.1.0
Fresh num_threads v0.1.7
Fresh winnow v0.6.5
Fresh syn v2.0.57
Fresh regex-automata v0.4.6
Fresh unicode-normalization v0.1.23
Fresh crossbeam-utils v0.8.19
Fresh parking_lot_core v0.9.9
Fresh miniz_oxide v0.7.2
Fresh time-macros v0.2.18
Fresh home v0.5.9
Fresh zeroize v1.7.0
Fresh linux-raw-sys v0.4.13
Fresh zerocopy v0.7.32
Fresh allocator-api2 v0.2.16
Fresh subtle v2.5.0
Fresh const-oid v0.9.6
Fresh memmap2 v0.9.4
Fresh getrandom v0.2.12
Fresh percent-encoding v2.3.1
Fresh cc v1.0.90
Fresh thiserror-impl v1.0.61
Fresh bstr v1.9.1
Fresh serde_derive v1.0.203
Fresh lock_api v0.4.11
Fresh crossbeam-channel v0.5.12
Fresh rustix v0.38.32
Fresh rand_core v0.6.4
Fresh unicode-bidi v0.3.15
Fresh form_urlencoded v1.2.1
Fresh base64ct v1.6.0
Fresh unicode-bom v2.0.3
Fresh log v0.4.21
Fresh gix-sec v0.10.7
Fresh static_assertions v1.1.0
Fresh openssl-probe v0.1.5
Fresh shell-words v1.1.0
Fresh ryu v1.0.17
Fresh thiserror v1.0.61
Fresh serde v1.0.203
Fresh parking_lot v0.12.1
Fresh gix-utils v0.1.12
Fresh typenum v1.17.0
Fresh ahash v0.8.11
Fresh tempfile v3.10.1
Fresh idna v0.5.0
Fresh pem-rfc7468 v0.7.0
Fresh kstring v2.0.0
Fresh ff v0.13.0
Fresh socket2 v0.5.6
Fresh tracing-core v0.1.32
Fresh base16ct v0.2.0
Fresh cfg-if v1.0.0
Fresh tracing-attributes v0.1.27
Fresh gix-hash v0.14.2
Fresh prodash v28.0.0
Fresh deranged v0.3.11
Fresh gix-path v0.10.9
Fresh hashbrown v0.14.3
Fresh gix-validate v0.8.5
Fresh generic-array v0.14.7
Fresh gix-chunk v0.4.8
Fresh url v2.5.2
Fresh gix-quote v0.4.12
Fresh der v0.7.9
Fresh serde_json v1.0.120
Fresh group v0.13.0
Fresh pin-project-lite v0.2.14
Fresh cpufeatures v0.2.12
Fresh gix-bitmap v0.2.11
Fresh fnv v1.0.7
Fresh time v0.3.36
Fresh block-buffer v0.10.4
Fresh crypto-common v0.1.6
Fresh gix-hashtable v0.5.2
Fresh openssl-sys v0.9.92
Fresh gix-config-value v0.14.7
Fresh spki v0.7.3
Fresh libnghttp2-sys v0.1.9+1.58.0
Fresh gix-command v0.3.8
Fresh crypto-bigint v0.5.5
Fresh tracing v0.1.40
Fresh utf8parse v0.2.1
Fresh equivalent v1.0.1
Fresh regex-syntax v0.6.29
Fresh anstyle v1.0.7
Fresh libz-sys v1.1.16
Fresh crc32fast v1.4.0
Fresh toml_datetime v0.6.6
Fresh serde_spanned v0.6.6
Fresh gix-date v0.8.7
Fresh digest v0.10.7
Fresh pkcs8 v0.10.2
Dirty curl-sys v0.4.73+curl-8.8.0: stale, unknown reason
Compiling curl-sys v0.4.73+curl-8.8.0
Fresh gix-prompt v0.8.6
Fresh indexmap v2.2.6
Fresh regex-automata v0.1.10
Fresh libssh2-sys v0.3.0
Fresh anstyle-parse v0.2.3
Fresh anyhow v1.0.86
Fresh num-traits v0.2.18
Fresh gix-packetline v0.17.5
Fresh filetime v0.2.23
Fresh crossbeam-epoch v0.9.18
Fresh regex v1.10.5
Fresh colorchoice v1.0.0
Fresh memchr v2.7.4
Fresh is_terminal_polyfill v1.70.0
Fresh clru v0.6.1
Fresh base64 v0.22.1
Fresh gix-features v0.38.2
Fresh gix-actor v0.31.5
Fresh hmac v0.12.1
Fresh sec1 v0.7.3
Fresh signature v2.2.0
Fresh sha2 v0.10.8
Fresh overload v0.1.1
Fresh lazy_static v1.4.0
Fresh anstyle-query v1.0.2
Fresh minimal-lexical v0.2.1
Fresh crossbeam-deque v0.8.5
Fresh ordered-float v2.10.1
Fresh toml_edit v0.22.14
Fresh matchers v0.1.0
Dirty libgit2-sys v0.17.0+1.8.1: stale, unknown reason
Compiling libgit2-sys v0.17.0+1.8.1
Fresh flate2 v1.0.30
Fresh bitmaps v2.1.0
Fresh gix-packetline-blocking v0.17.4
Fresh tracing-log v0.2.0
Fresh erased-serde v0.4.4
Running `rustc --crate-name curl_sys --edition=2018 /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="http2"' --cfg 'feature="libnghttp2-sys"' --cfg 'feature="openssl-sys"' --cfg 'feature="ssl"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "force-system-lib-on-osx", "http2", "libnghttp2-sys", "mesalink", "ntlm", "openssl-sys", "poll_7_68_0", "protocol-ftp", "rustls", "rustls-ffi", "spnego", "ssl", "static-curl", "static-ssl", "upkeep_7_62_0", "windows-static-ssl", "zlib-ng-compat"))' -C metadata=3d3c4bc3e6e193e8 -C extra-filename=-3d3c4bc3e6e193e8 --out-dir /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/wrapper/target-rust-ccld -C strip=debuginfo -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/release/deps --extern libc=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibc-5e5cd59d019e777a.rmeta --extern libnghttp2_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibnghttp2_sys-b926499fdfd9cc31.rmeta --extern libz_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-7e43eee19b64271e.rmeta --extern openssl_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-18b7bfdce1a3737d.rmeta --cap-lints allow -L /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib --remap-path-prefix=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0=/usr/src/debug/cargo-native/1.81.0 -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/build/curl-sys-f2f335c842835de1/out/build -l static=curl -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/build/libnghttp2-sys-9866d4c3ecc8f248/out/i/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib --cfg libcurl_vendored --cfg link_libnghttp2 --cfg link_libz --cfg link_openssl`
Fresh gix-object v0.42.3
Fresh gix-fs v0.11.2
Fresh gix-commitgraph v0.24.3
Fresh gix-glob v0.16.4
Fresh gix-url v0.27.4
Fresh hkdf v0.12.4
Fresh rfc6979 v0.4.0
Fresh sharded-slab v0.1.7
Fresh anstream v0.6.14
Fresh nu-ansi-term v0.46.0
Fresh nom v7.1.3
Fresh globset v0.4.14
Fresh terminal_size v0.3.0
Fresh maybe-async v0.2.10
Fresh thread_local v1.1.8
Fresh encoding_rs v0.8.33
Fresh typeid v1.0.0
Fresh ppv-lite86 v0.2.17
Fresh strsim v0.11.0
Running `rustc --crate-name libgit2_sys --edition=2018 /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/vendor/libgit2-sys-0.17.0+1.8.1/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="https"' --cfg 'feature="libssh2-sys"' --cfg 'feature="openssl-sys"' --cfg 'feature="ssh"' --cfg 'feature="ssh_key_from_memory"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("https", "libssh2-sys", "openssl-sys", "ssh", "ssh_key_from_memory", "vendored", "vendored-openssl", "zlib-ng-compat"))' -C metadata=1fb34915426e8a51 -C extra-filename=-1fb34915426e8a51 --out-dir /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/wrapper/target-rust-ccld -C strip=debuginfo -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/release/deps --extern libc=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibc-5e5cd59d019e777a.rmeta --extern libssh2_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibssh2_sys-57879571b3262c61.rmeta --extern libz_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-7e43eee19b64271e.rmeta --extern openssl_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-18b7bfdce1a3737d.rmeta --cap-lints allow -L /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib --remap-path-prefix=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0=/usr/src/debug/cargo-native/1.81.0 -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/build/libgit2-sys-e9c652e6e0f0b922/out/build -l static=git2 -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib --cfg libgit2_vendored`
Fresh gix-tempfile v14.0.0
Fresh gix-revwalk v0.13.2
Fresh gix-attributes v0.22.3
Fresh elliptic-curve v0.13.8
Fresh gix-ignore v0.11.3
Fresh gix-credentials v0.24.4
Fresh clap_lex v0.7.0
Fresh arc-swap v1.7.1
Fresh fiat-crypto v0.2.7
Fresh serde-untagged v0.1.6
Fresh color-print-proc-macro v0.3.6
Fresh gix-diff v0.44.1
Fresh rand_chacha v0.3.1
Fresh ignore v0.4.22
Fresh semver v1.0.23
Fresh tracing-subscriber v0.3.18
Fresh sized-chunks v0.6.5
Fresh libsqlite3-sys v0.28.0
Fresh toml v0.8.14
Fresh gix-lock v14.0.0
Fresh gix-traverse v0.39.2
Fresh gix-revision v0.27.2
Fresh gix-pathspec v0.7.6
Fresh ecdsa v0.16.9
Fresh primeorder v0.13.6
Fresh gix-pack v0.51.1
Fresh orion v0.17.6
Fresh clap_builder v4.5.8
Fresh gix-negotiate v0.13.2
Fresh gix-filter v0.11.3
Fresh serde-value v0.7.0
Fresh cargo-credential v0.4.6 (/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo/credential/cargo-credential)
Fresh hashlink v0.9.0
Fresh rand_xoshiro v0.6.0
Fresh ed25519-compact v2.1.1
Fresh gix-macros v0.1.5
Fresh jobserver v0.1.28
Fresh libloading v0.8.4
Fresh fallible-iterator v0.3.0
Fresh either v1.10.0
Fresh unicode-xid v0.2.4
Fresh gix-ref v0.45.0
Fresh gix-index v0.33.1
Fresh gix-refspec v0.23.1
Fresh p384 v0.13.0
Fresh gix-odb v0.61.1
Fresh fallible-streaming-iterator v0.1.9
Fresh ct-codecs v1.1.1
Fresh unicode-width v0.1.13
Fresh hex v0.4.3
Fresh shell-escape v0.1.5
Fresh itertools v0.13.0
Fresh im-rc v15.1.0
Fresh cargo-credential-libsecret v0.4.7 (/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo/credential/cargo-credential-libsecret)
Fresh cargo-util-schemas v0.5.0 (/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo/crates/cargo-util-schemas)
Fresh clap v4.5.8
Fresh unicase v2.7.0
Fresh rand v0.8.5
Fresh tracing-chrome v0.7.2
Fresh color-print v0.3.6
Fresh sha1 v0.10.6
Fresh rustfix v0.8.5 (/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo/crates/rustfix)
Fresh gix-discover v0.33.0
Fresh gix-worktree v0.34.1
Fresh gix-config v0.38.0
Fresh annotate-snippets v0.11.4
Fresh cargo-util v0.2.14 (/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo/crates/cargo-util)
Fresh rusqlite v0.31.0
Fresh pasetors v0.6.8
Fresh cargo-platform v0.1.8 (/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo/crates/cargo-platform)
Fresh serde_ignored v0.1.10
Fresh tar v0.4.41
Fresh opener v0.7.1
Fresh os_info v3.8.2
Fresh http-auth v0.1.9
Fresh supports-unicode v3.0.0
Fresh pathdiff v0.2.1
Fresh humantime v2.1.0
Fresh supports-hyperlinks v3.0.0
Fresh bytesize v1.3.0
Fresh glob v0.3.1
Fresh lazycell v1.3.0
Fresh gix-dir v0.6.0
Fresh gix-submodule v0.12.0
Building [=======================> ] 327/338: libgit2-sys, curl-sys
error[E0460]: found possibly newer version of crate `std` which `libnghttp2_sys` depends on
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:6:1
|
6 | extern crate libnghttp2_sys;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.rlib
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.so
crate `libnghttp2_sys`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibnghttp2_sys-b926499fdfd9cc31.rmetaerror[E0460]: found possibly newer version of crate std which libz_sys depends on
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:8:1
|
8 | extern crate libz_sys;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.rlib
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.so
crate `libz_sys`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-7e43eee19b64271e.rmetaerror[E0460]: found possibly newer version of crate std which openssl_sys depends on
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:10:1
|
10 | extern crate openssl_sys;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.rlib
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.so
crate `openssl_sys`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-18b7bfdce1a3737d.rmetaerror[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:14:5
| 14 | use libc::c_ulong; | ^^^^ can't find crate
error[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:15:5
|
15 | use libc::{c_char, c_double, c_int, c_long, c_short, c_uint, c_void, size_t, time_t};
| ^^^^ can't find crateerror[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:18:9
| 18 | pub use libc::fd_set; | ^^^^ can't find crate
error[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:29:22
| 29 | pub type __enum_ty = libc::c_uint; | ^^^^ can't find crate
error[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:40:26
| 40 | pub type curl_socket_t = libc::c_int; | ^^^^ can't find crate
error[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs:1026:15
|1026 | pub addr: libc::sockaddr,
| ^^^^ can't find crate
error[E0460]: found possibly newer version of crate std which libz_sys depends on
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/libgit2-sys-0.17.0+1.8.1/lib.rs:5:1
|
5 | extern crate libz_sys as libz;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.rlib
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.so
crate `libz_sys`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-7e43eee19b64271e.rmetaerror[E0463]: can't find crate for libc
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/libgit2-sys-0.17.0+1.8.1/lib.rs:7:5
|
7 | use libc::{c_char, c_int, c_uchar, c_uint, c_void, size_t};
| ^^^^ can't find crateerror[E0463]: can't find crate for libssh2_sys
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/libgit2-sys-0.17.0+1.8.1/lib.rs:9:5
| 9 | use libssh2_sys as libssh2; | ^^^^^^^^^^^ can't find crate
error[E0460]: found possibly newer version of crate std which openssl_sys depends on
--> /usr/src/debug/cargo-native/1.81.0/rustc-1.81.0-src/vendor/libgit2-sys-0.17.0+1.8.1/lib.rs:4330:5
|
4330 | openssl_sys::init();
| ^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.rlib
crate `std`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-14a3e5e8e34ed383.so
crate `openssl_sys`: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-18b7bfdce1a3737d.rmetaSome errors have detailed explanations: E0460, E0463. For more information about an error, try rustc --explain E0460.
error: could not compile curl-sys (lib) due to 9 previous errors
Caused by:
process didn't exit successfully: `rustc --crate-name curl_sys --edition=2018 /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/vendor/curl-sys-0.4.73+curl-8.8.0/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="http2"' --cfg 'feature="libnghttp2-sys"' --cfg 'feature="openssl-sys"' --cfg 'feature="ssl"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "force-system-lib-on-osx", "http2", "libnghttp2-sys", "mesalink", "ntlm", "openssl-sys", "poll_7_68_0", "protocol-ftp", "rustls", "rustls-ffi", "spnego", "ssl", "static-curl", "static-ssl", "upkeep_7_62_0", "windows-static-ssl", "zlib-ng-compat"))' -C metadata=3d3c4bc3e6e193e8 -C extra-filename=-3d3c4bc3e6e193e8 --out-dir /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/wrapper/target-rust-ccld -C strip=debuginfo -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/release/deps --extern libc=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibc-5e5cd59d019e777a.rmeta --extern libnghttp2_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibnghttp2_sys-b926499fdfd9cc31.rmeta --extern libz_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-7e43eee19b64271e.rmeta --extern openssl_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-18b7bfdce1a3737d.rmeta --cap-lints allow -L /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib --remap-path-prefix=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0=/usr/src/debug/cargo-native/1.81.0 -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/build/curl-sys-f2f335c842835de1/out/build -l static=curl -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/build/libnghttp2-sys-9866d4c3ecc8f248/out/i/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib --cfg libcurl_vendored --cfg link_libnghttp2 --cfg link_libz --cfg link_openssl` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
Building [=======================> ] 328/338: libgit2-sys The following warnings were emitted during compilation:
warning: [email protected]+1.8.1: failed to probe system libgit2:
warning: [email protected]+1.8.1: libgit2/src/util/hash/openssl.c: In function ‘git_hash_sha256_init’:
warning: [email protected]+1.8.1: libgit2/src/util/hash/openssl.c:163:9: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
warning: [email protected]+1.8.1: 163 | if (SHA256_Init(&ctx->c) != 1) {
warning: [email protected]+1.8.1: | ^~
warning: [email protected]+1.8.1: In file included from libgit2/src/util/hash/openssl.h:14,
warning: [email protected]+1.8.1: from libgit2/src/util/hash/openssl.c:8:
warning: [email protected]+1.8.1: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/include/openssl/sha.h:73:27: note: declared here
warning: [email protected]+1.8.1: 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
warning: [email protected]+1.8.1: | ^~~~~~~~~~~
warning: [email protected]+1.8.1: libgit2/src/util/hash/openssl.c: In function ‘git_hash_sha256_update’:
warning: [email protected]+1.8.1: libgit2/src/util/hash/openssl.c:175:9: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
warning: [email protected]+1.8.1: 175 | if (SHA256_Update(&ctx->c, data, len) != 1) {
warning: [email protected]+1.8.1: | ^~
warning: [email protected]+1.8.1: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/include/openssl/sha.h:74:27: note: declared here
warning: [email protected]+1.8.1: 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
warning: [email protected]+1.8.1: | ^~~~~~~~~~~~~
warning: [email protected]+1.8.1: libgit2/src/util/hash/openssl.c: In function ‘git_hash_sha256_final’:
warning: [email protected]+1.8.1: libgit2/src/util/hash/openssl.c:187:9: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
warning: [email protected]+1.8.1: 187 | if (SHA256_Final(out, &ctx->c) != 1) {
warning: [email protected]+1.8.1: | ^~
warning: [email protected]+1.8.1: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/include/openssl/sha.h:76:27: note: declared here
warning: [email protected]+1.8.1: 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
warning: [email protected]+1.8.1: | ^~~~~~~~~~~~
error: could not compile libgit2-sys (lib) due to 4 previous errors
Caused by:
process didn't exit successfully: `rustc --crate-name libgit2_sys --edition=2018 /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/vendor/libgit2-sys-0.17.0+1.8.1/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="https"' --cfg 'feature="libssh2-sys"' --cfg 'feature="openssl-sys"' --cfg 'feature="ssh"' --cfg 'feature="ssh_key_from_memory"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("https", "libssh2-sys", "openssl-sys", "ssh", "ssh_key_from_memory", "vendored", "vendored-openssl", "zlib-ng-compat"))' -C metadata=1fb34915426e8a51 -C extra-filename=-1fb34915426e8a51 --out-dir /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/wrapper/target-rust-ccld -C strip=debuginfo -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/release/deps --extern libc=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibc-5e5cd59d019e777a.rmeta --extern libssh2_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibssh2_sys-57879571b3262c61.rmeta --extern libz_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/liblibz_sys-7e43eee19b64271e.rmeta --extern openssl_sys=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-18b7bfdce1a3737d.rmeta --cap-lints allow -L /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib --remap-path-prefix=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0=/usr/src/debug/cargo-native/1.81.0 -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/build/target/x86_64-unknown-linux-gnu/release/build/libgit2-sys-e9c652e6e0f0b922/out/build -l static=git2 -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib -L native=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/lib --cfg libgit2_vendored` (exit status: 1)
WARNING: /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/temp/run.do_compile.2985496:190 exit 101 from '"/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/cargo-1.80.1-x86_64-unknown-linux-gnu/bin/cargo" build -v --frozen --target x86_64-unknown-linux-gnu --release --manifest-path=/mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/rustc-1.81.0-src/src/tools/cargo//Cargo.toml "$@"'
WARNING: Backtrace (BB generated script):
#1: oe_cargo_build, /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/temp/run.do_compile.2985496, line 190 #2: cargo_do_compile, /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/temp/run.do_compile.2985496, line 162 #3: do_compile, /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/temp/run.do_compile.2985496, line 157 #4: main, /mnt/data/yocto/cf200/build/tmp/work/x86_64-linux/cargo-native/1.81.0/temp/run.do_compile.2985496, line 203
Run bitbake -c clean cargo and try again. Something in those recipes doesn’t do incremental builds properly.
Alex
Quoted 32 lines · David Daniel via lists.yoctoproject.org
Hi all
Some problem with the build of cargo just popped up. I am doing currently builds on the master branches. It turns out after a sync of my sources cargo does not build anymore. It spits weird error messages that it cannot find the crate for libc:can't find crate for
libcSomehow things got mixed:
error[E0460]: found possibly newer version of crate
stdwhichlibnghttp2_sysdepends onI attached the build output in case of interest.
Has anyone an idea how I can fix this?
Thanks for any hints!Greets
Dave-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#64764):
https://lists.yoctoproject.org/g/yocto/message/64764
Mute This Topic: https://lists.yoctoproject.org/mt/111122235/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
If you're seeing the same failure as me, its cargo-native and python3-cryptography-native - I've just pulled the latest changes and both failed to build here, cleaning them up seems to have fixed it.
Quoted 38 lines · Alexander Kanavin via lists.yoctoproject.org
Run bitbake -c clean cargo and try again. Something in those recipes doesn’t do incremental builds properly.
Alex
Quoted 13 lines · David Daniel via lists.yoctoproject.org
Hi all
Some problem with the build of cargo just popped up. I am doing currently builds on the master branches. It turns out after a sync of my sources cargo does not build anymore. It spits weird error messages that it cannot find the crate for libc:can't find crate for
libcSomehow things got mixed:
error[E0460]: found possibly newer version of crate
stdwhichlibnghttp2_sysdepends onQuoted 10 lines
I attached the build output in case of interest.
Has anyone an idea how I can fix this?
Thanks for any hints!Greets
Dave-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64765): https://lists.yoctoproject.org/g/yocto/message/64765
Mute This Topic: https://lists.yoctoproject.org/mt/111122235/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 1 line
Alex Kiernan
It would help to come up with a set of reproducible steps, e.g.:
- check out revision X
- bitbake cargo-native
- check out revision Y (as close to X as possible)
- bitbake cargo-native which reliably fails
and file a ticket in bugzilla for it. The issue is definitely real.
Alex
Quoted 50 lines · Alex Kiernan
If you're seeing the same failure as me, its cargo-native and python3-cryptography-native - I've just pulled the latest changes and both failed to build here, cleaning them up seems to have fixed it.
Quoted 30 lines · Alexander Kanavin via lists.yoctoproject.org
Run bitbake -c clean cargo and try again. Something in those recipes doesn’t do incremental builds properly.
Alex
Quoted 13 lines · David Daniel via lists.yoctoproject.org
Hi all
Some problem with the build of cargo just popped up. I am doing currently builds on the master branches. It turns out after a sync of my sources cargo does not build anymore. It spits weird error messages that it cannot find the crate for libc:can't find crate for
libcSomehow things got mixed:
error[E0460]: found possibly newer version of crate
stdwhichlibnghttp2_sysdepends onQuoted 10 lines
I attached the build output in case of interest.
Has anyone an idea how I can fix this?
Thanks for any hints!Greets
DaveQuoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64765): https://lists.yoctoproject.org/g/yocto/message/64765
Mute This Topic: https://lists.yoctoproject.org/mt/111122235/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Alex Kiernan
Yeah, I can look at that.
Quoted 68 lines · On Fri, 14 Feb 2025, 11:23 Alexander Kanavin, <[email protected]> wrote:
It would help to come up with a set of reproducible steps, e.g.:
- check out revision X
- bitbake cargo-native
- check out revision Y (as close to X as possible)
- bitbake cargo-native which reliably failsand file a ticket in bugzilla for it. The issue is definitely real.
Alex
Quoted 10 lines · Alex Kiernan
If you're seeing the same failure as me, its cargo-native and python3-cryptography-native - I've just pulled the latest changes and both failed to build here, cleaning them up seems to have fixed it.
Quoted 2 lines · Alexander Kanavin via lists.yoctoproject.org
Run bitbake -c clean cargo and try again. Something in those recipes
doesn’t do incremental builds properly.
Quoted 4 lines
Quoted 4 lines
Alex
On Tue 11. Feb 2025 at 14.55, David Daniel via lists.yoctoproject.org
Quoted 7 lines · <[email protected]> wrote:
Quoted 7 lines
Quoted 7 lines
Hi all
Some problem with the build of cargo just popped up. I am doing currently builds on the master branches. It turns out after a sync of my sources cargo does not build anymore. It spits weird error messages that it cannot find the crate for libc:Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
can't find crate for
libcSomehow things got mixed:
error[E0460]: found possibly newer version of crate
stdwhich
libnghttp2_sysdepends onQuoted 12 lines
Quoted 12 lines
Quoted 11 lines
I attached the build output in case of interest.
Has anyone an idea how I can fix this?
Thanks for any hints!Greets
DaveQuoted 3 lines
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#64765):https://lists.yoctoproject.org/g/yocto/message/64765
Quoted 3 lines
Quoted 3 lines
Mute This Topic: https://lists.yoctoproject.org/mt/111122235/3618097
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [Quoted 6 lines
Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
--
Alex Kiernan