Jump to content
funtoo forums
  • 0
Sign in to follow this  
synteejol

partage fails to emerge dev-util/cbindgen-0.8.2

Question

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 
 [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 
 [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'

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

/opt/rust-bin-1.32.0/bin/cargo-bin-1.32.0

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
/usr/bin/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

Reference:

https://bugs.funtoo.org/browse/FL-5843

dev-util:cbindgen-0.8.2:20190519-154310.log

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...