История изменений
Исправление xxoaea, (текущая версия) :
Пробовал данную последовательность установки rust в результате получил:
sudo bash /tmp/rust-1.67.1-i686-unknown-linux-gnu/install.sh --prefix=/home/mint/opt/rust
install: creating uninstall script at /home/mint/opt/rust/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'rust-std-i686-unknown-linux-gnu'
install: installing component 'rust-docs'
install: installing component 'rust-docs-json-preview'
install: installing component 'cargo'
install: installing component 'rustfmt-preview'
install: installing component 'rust-analyzer-preview'
install: installing component 'llvm-tools-preview'
install: installing component 'clippy-preview'
install: installing component 'rust-analysis-i686-unknown-linux-gnu'
rust installed.
$ cd /tmp/rust-1.67.1-i686-unknown-linux-gnu/
$ export LD_LIBRARY_PATH=/home/user1/opt/rust/lib
$ export PATH=/home/user1/opt/rust/bin:/home/user1/opt/rust/libexec:$PATH
$ cargo new hello_world
Created binary (application) `hello_world` package $ cd hello_world/
$ cargo run
Compiling hello_world v0.1.0 (/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world)
error: linking with `cc` failed: exit status: 1 | = note: «cc» "-m32" «/tmp/rustcD7VlOb/symbols.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.1wp0s3x6jpdjue34.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.2djjb0rdoqj1tmir.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.3c64mvahqbs5bom1.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.3fc2ywey5o75n8o3.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.4oji1gjf4jufmpst.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.ndl1oxwxt1astyp.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.4g4er343xrdy78nd.rcgu.o» "-Wl,--as-needed" "-L" «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps» "-L" «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib» "-Wl,-Bstatic" «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libstd-181e3e46aa7bfb98.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_unwind-0cdb2f6ac634c1a2.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libobject-0ea383c070fc6ba2.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libmemchr-ae96e4b559973d55.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libaddr2line-5f1e5fa1aa582dc6.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libgimli-1183b972d6b8ce9c.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-28c2ea0125c106f0.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libstd_detect-4bb50bb80ff9d5d9.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libhashbrown-66631a77f2f09ca9.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libminiz_oxide-d6fe3615ed5d4203.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libadler-e403536cce1f8cfd.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6eadcf83807829a3.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libunwind-98c7e738f0d905b9.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libcfg_if-b93299f60603aaee.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6ac1892d81cd9d31.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc-546a4a503ef2f7a3.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_core-cd488050556383f2.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libcore-f250f030fc22ddff.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libcompiler_builtins-fcbe5e9d0754c110.rlib» "-Wl,- Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib» "-o" «/tmp/rust-1.67.1-i686-unknown-linux- gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829» "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lutil
/usr/bin/ld: cannot find -lrt
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
error: could not compile `hello_world` due to previous error
Исходная версия xxoaea, :
Пробовал данную последовательность установки rust в результате получил:
sudo bash /tmp/rust-1.67.1-i686-unknown-linux-gnu/install.sh --prefix=/home/mint/opt/rust install: creating uninstall script at /home/mint/opt/rust/lib/rustlib/uninstall.sh install: installing component 'rustc' install: installing component 'rust-std-i686-unknown-linux-gnu' install: installing component 'rust-docs' install: installing component 'rust-docs-json-preview' install: installing component 'cargo' install: installing component 'rustfmt-preview' install: installing component 'rust-analyzer-preview' install: installing component 'llvm-tools-preview' install: installing component 'clippy-preview' install: installing component 'rust-analysis-i686-unknown-linux-gnu'
rust installed.
$ cd /tmp/rust-1.67.1-i686-unknown-linux-gnu/ $ export LD_LIBRARY_PATH=/home/user1/opt/rust/lib $ export PATH=/home/user1/opt/rust/bin:/home/user1/opt/rust/libexec:$PATH $ cargo new hello_world Created binary (application) `hello_world` package $ cd hello_world/ $ cargo run Compiling hello_world v0.1.0 (/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world) error: linking with `cc` failed: exit status: 1 | = note: «cc» "-m32" «/tmp/rustcD7VlOb/symbols.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.1wp0s3x6jpdjue34.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.2djjb0rdoqj1tmir.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.3c64mvahqbs5bom1.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.3fc2ywey5o75n8o3.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.4oji1gjf4jufmpst.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.ndl1oxwxt1astyp.rcgu.o» «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829.4g4er343xrdy78nd.rcgu.o» "-Wl,--as-needed" "-L" «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps» "-L" «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib» "-Wl,-Bstatic" «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libstd-181e3e46aa7bfb98.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libpanic_unwind-0cdb2f6ac634c1a2.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libobject-0ea383c070fc6ba2.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libmemchr-ae96e4b559973d55.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libaddr2line-5f1e5fa1aa582dc6.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libgimli-1183b972d6b8ce9c.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_demangle-28c2ea0125c106f0.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libstd_detect-4bb50bb80ff9d5d9.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libhashbrown-66631a77f2f09ca9.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libminiz_oxide-d6fe3615ed5d4203.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libadler-e403536cce1f8cfd.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6eadcf83807829a3.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libunwind-98c7e738f0d905b9.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libcfg_if-b93299f60603aaee.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/liblibc-6ac1892d81cd9d31.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/liballoc-546a4a503ef2f7a3.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_std_workspace_core-cd488050556383f2.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libcore-f250f030fc22ddff.rlib» «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib/libcompiler_builtins-fcbe5e9d0754c110.rlib» "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" «/home/user1/opt/rust/lib/rustlib/i686-unknown-linux-gnu/lib» "-o" «/tmp/rust-1.67.1-i686-unknown-linux-gnu/hello_world/target/debug/deps/hello_world-267a6e8ab4578829» "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" = note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory /usr/bin/ld: cannot find -lutil /usr/bin/ld: cannot find -lrt /usr/bin/ld: cannot find -lpthread /usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -ldl /usr/bin/ld: cannot find -lc /usr/bin/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status
error: could not compile `hello_world` due to previous error