Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927452

Summary: dev-util/cargo-c-0.9.30 - error: failed to run custom build command for libgit2-sys v0.16.2+1.7.2
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: RESOLVED FIXED    
Severity: normal CC: kripton, leonchik1976, luke5083, moltonel, swimbunny2000
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=943391
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-util:cargo-c-0.9.30:20240321-055840.log
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-03-21 18:51:00 UTC
too long lines were shrinked:

     Running `rustc --crate-name elliptic_curve --edition=2021 /var/tmp/portage/dev-util/cargo-c-0.9.30/work/cargo_home/gentoo/elliptic-curve-0.13.8/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 
     Running `/var/tmp/portage/dev-util/cargo-c-0.9.30/work/cargo-c-0.9.30/target/release/build/libgit2-sys-9c3882dfd1792922/build-script-build`
The following warnings were emitted during compilation:

warning: libgit2-sys@0.16.2+1.7.2: failed to probe system libgit2: 

error: failed to run custom build command for `libgit2-sys v0.16.2+1.7.2`

Caused by:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd_merged_usr-20240318-012534

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.2
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.76.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.402_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.1 linux/amd64

  HEAD of ::gentoo
commit d3d1d2da0c411a609e57d4f39096c21be96c1d6d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Mar 21 05:49:00 2024 +0000

    2024-03-21 05:48:59 UTC

emerge -qpvO dev-util/cargo-c
[ebuild   R   ] dev-util/cargo-c-0.9.30  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2024-03-21 18:51:01 UTC
Created attachment 888072 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-03-21 18:51:02 UTC
Created attachment 888073 [details]
dev-util:cargo-c-0.9.30:20240321-055840.log
Comment 3 Toralf Förster gentoo-dev 2024-03-21 18:51:04 UTC
Created attachment 888074 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-03-21 18:51:05 UTC
Created attachment 888075 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-03-21 18:51:06 UTC
Created attachment 888076 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-03-21 18:51:07 UTC
Created attachment 888077 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-03-21 18:51:08 UTC
Created attachment 888078 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-03-21 18:51:09 UTC
Created attachment 888079 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-03-21 18:51:10 UTC
Created attachment 888080 [details]
temp.tar.xz
Comment 10 Vincent de Phily 2024-09-22 10:15:45 UTC
I'm hitting this too, now that cargo-c-0.10.4 got marked stable. It seems to requires a newer libgit2 (that I can't install yet due to other packages on my system):

    PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 x86_64-pc-linux-gnu-pkg-config --libs --cflags libgit2 libgit2 >= 1.8.1 libgit2 < 1.9.0

OTOH, cargo-c-0.10.0 compiles fine with both libgit2-1.7.2 and rust-1.80.1


So the fix might be to:
* depend on libgt2 >= 1.8.1 in cargo-c-0.10.4
* stabilize cargo-c-0.10.0


Thanks
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-13 18:36:53 UTC
(In reply to Vincent de Phily from comment #10)
> I'm hitting this too, now that cargo-c-0.10.4 got marked stable. It seems to
> requires a newer libgit2 (that I can't install yet due to other packages on
> my system):
> 
>     PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
> x86_64-pc-linux-gnu-pkg-config --libs --cflags libgit2 libgit2 >= 1.8.1
> libgit2 < 1.9.0
> 
> OTOH, cargo-c-0.10.0 compiles fine with both libgit2-1.7.2 and rust-1.80.1
> 
> 
> So the fix might be to:
> * depend on libgt2 >= 1.8.1 in cargo-c-0.10.4
> * stabilize cargo-c-0.10.0
> 
> 
> Thanks

Filed bug 943391, thanks.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-13 21:29:34 UTC
(In reply to Vincent de Phily from comment #10)
> * depend on libgt2 >= 1.8.1 in cargo-c-0.10.4

It already does?
Comment 13 Larry the Git Cow gentoo-dev 2024-12-29 07:42:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9303554c9496cda76f3bbe96dddaa9bf53bfa8a2

commit 9303554c9496cda76f3bbe96dddaa9bf53bfa8a2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-29 07:41:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-29 07:41:20 +0000

    dev-util/cargo-c: pin to libgit2-1.8*
    
    Stupid crate again.
    
    Closes: https://bugs.gentoo.org/927452
    Closes: https://bugs.gentoo.org/947146
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/cargo-c/cargo-c-0.10.4-r1.ebuild | 3 ++-
 dev-util/cargo-c/cargo-c-0.10.7.ebuild    | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)