Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

partage fails to emerge dev-util/cbindgen-0.8.2



I was updating world but the operation stops when portage tries to install cbindgen.

here are the last lines of log file


>>> Source unpacked in /var/tmp/portage/dev-util/cbindgen-0.8.2/work
>>> Preparing source in /var/tmp/portage/dev-util/cbindgen-0.8.2/work/cbindgen-0.8.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/cbindgen-0.8.2/work/cbindgen-0.8.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/cbindgen-0.8.2/work/cbindgen-0.8.2 ...
/var/tmp/portage/dev-util/cbindgen-0.8.2/temp/environment: line 451: cargo: command not found
 [31;01m*[0m ERROR: dev-util/cbindgen-0.8.2::dev-kit failed (compile phase):
 [31;01m*[0m   cargo build failed
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  92:  Called src_compile
 [31;01m*[0m   environment, line 690:  Called cargo_src_compile
 [31;01m*[0m   environment, line 451:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       cargo build -j $(makeopts_jobs) $(usex debug "" --release) || die "cargo build failed"
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-util/cbindgen-0.8.2::dev-kit'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-util/cbindgen-0.8.2::dev-kit'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-util/cbindgen-0.8.2/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-util/cbindgen-0.8.2/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-util/cbindgen-0.8.2/work/cbindgen-0.8.2'
 [31;01m*[0m S: '/var/tmp/portage/dev-util/cbindgen-0.8.2/work/cbindgen-0.8.2'


Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

If you have rust-bin installed then it includes cargo.


You have to manually run this command to symlink the cargo-bin-1.32.0 executable to /usr/bin/cargo :

# eselect rust set 1

Verify cargo:

# which cargo
# file `which cargo`
/usr/bin/cargo: symbolic link to /usr/bin/cargo-bin-1.32.0
# file `which cargo-bin-1.32.0`
/usr/bin/cargo-bin-1.32.0: symbolic link to ../../opt/rust-bin-1.32.0/bin/cargo-bin-1.32.0
# file /opt/rust-bin-1.32.0/bin/cargo-bin-1.32.0
/opt/rust-bin-1.32.0/bin/cargo-bin-1.32.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, stripped




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...