при сборке Cbindgen-0.15.0 в blfs выдает:
root [ /sources/cbindgen-0.15.0 ]# cargo build --release
Compiling proc-macro2 v1.0.21
Compiling libc v0.2.77
Compiling syn v1.0.41
Compiling getrandom v0.1.15
Compiling serde_derive v1.0.116
Compiling serde v1.0.116
Compiling ryu v1.0.5
Compiling bitflags v1.2.1
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.0.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.1.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.10.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.11.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.12.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.13.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.14.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.15.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.2.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.3.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.4.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.5.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.6.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.7.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.8.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.build_script_build.8sl2aqo7-cgu.9.rcgu.o" "-o" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f" "/sources/cbindgen-0.15.0/target/release/build/getrandom-78972862c7f4793f/build_script_build-78972862c7f4793f.16dyastae9ubq23m.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/sources/cbindgen-0.15.0/target/release/deps" "-L" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f484aa6eb0db3aec.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fd7ce1db81bd1670.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9f18046c75084a11.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-1a5d4f619eaec707.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a06a5b2af1dc3f11.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-263a91b4cac8832e.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-4ff7db0018d39318.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-055170efec07394d.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ce4d920c08eaf329.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-079e90aa9ee7ae93.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-c2911e51d2bc32f0.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-20a027e679a930e8.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-cd4ea6b6f53878f9.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-9de1a409441fbdd5.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-d4adf81a33c45493.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-781f645f090477f9.rlib" "-Wl,--end-group" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-52f23afd4f4a3a72.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
= note: /usr/bin/ld: /opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f484aa6eb0db3aec.rlib: error adding symbols: archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: could not compile `getrandom`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.0.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.1.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.10.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.11.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.12.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.13.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.14.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.15.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.2.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.3.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.4.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.5.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.6.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.7.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.8.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.build_script_build.56juy270-cgu.9.rcgu.o" "-o" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c" "/sources/cbindgen-0.15.0/target/release/build/ryu-82a4a090d953cf8c/build_script_build-82a4a090d953cf8c.ymyjg0xozgnpr9.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/sources/cbindgen-0.15.0/target/release/deps" "-L" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f484aa6eb0db3aec.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fd7ce1db81bd1670.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9f18046c75084a11.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-1a5d4f619eaec707.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a06a5b2af1dc3f11.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-263a91b4cac8832e.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-4ff7db0018d39318.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-055170efec07394d.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ce4d920c08eaf329.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-079e90aa9ee7ae93.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-c2911e51d2bc32f0.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-20a027e679a930e8.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-cd4ea6b6f53878f9.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-9de1a409441fbdd5.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-d4adf81a33c45493.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-781f645f090477f9.rlib" "-Wl,--end-group" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-52f23afd4f4a3a72.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
= note: /usr/bin/ld: /opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f484aa6eb0db3aec.rlib: error adding symbols: archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
пришлось убрать повторяющиеся куски так был слишком большой размер
error: aborting due to previous error
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.0.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.1.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.10.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.11.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.12.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.13.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.14.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.15.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.2.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.3.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.4.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.5.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.6.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.7.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.8.rcgu.o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.build_script_build.bui9rw49-cgu.9.rcgu.o" "-o" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6" "/sources/cbindgen-0.15.0/target/release/build/libc-544f3524767e1cc6/build_script_build-544f3524767e1cc6.553mqdahq9y6vlpb.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/sources/cbindgen-0.15.0/target/release/deps" "-L" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f484aa6eb0db3aec.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fd7ce1db81bd1670.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9f18046c75084a11.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-1a5d4f619eaec707.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a06a5b2af1dc3f11.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-263a91b4cac8832e.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-4ff7db0018d39318.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-055170efec07394d.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ce4d920c08eaf329.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-079e90aa9ee7ae93.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-c2911e51d2bc32f0.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-20a027e679a930e8.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-cd4ea6b6f53878f9.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-9de1a409441fbdd5.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-d4adf81a33c45493.rlib" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-781f645f090477f9.rlib" "-Wl,--end-group" "/opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-52f23afd4f4a3a72.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
= note: /usr/bin/ld: /opt/rustc-1.47.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-f484aa6eb0db3aec.rlib: error adding symbols: archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: build failed
rustc 1.47.0 установлен
пробовал:ldconfig, переустановка binutils, танцы с бубном(что именно не помню)