Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934928 - net-analyzer/netdata: could not find git for clone of libbpf
Summary: net-analyzer/netdata: could not find git for clone of libbpf
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-25 14:12 UTC by Michiel Hazelhof
Modified: 2024-06-28 06:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (net-analyzernetdata-1.46.120240625-194338.log,13.76 KB, text/plain)
2024-06-25 19:45 UTC, Michiel Hazelhof
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel Hazelhof 2024-06-25 14:12:52 UTC
--   Found zlib, version 1.3.1
CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:2945 (message):
  error: could not find git for clone of libbpf
Call Stack (most recent call first):
  /usr/share/cmake/Modules/ExternalProject.cmake:4456 (_ep_add_download_command)
  packaging/cmake/Modules/NetdataLibBPF.cmake:70 (ExternalProject_Add)
  CMakeLists.txt:244 (netdata_bundle_libbpf)


Portage 3.0.65 (python 3.12.4-final-0, default/linux/amd64/23.0/no-multilib/systemd, gcc-14, glibc-2.39-r9, 6.9.5-x86_64-xanmod1 x86_64)
=================================================================
System uname: Linux-6.9.5-x86_64-xanmod1-x86_64-Intel-R-_Pentium-R-_Silver_J5005_CPU_@_1.50GHz-with-glibc2.39
KiB Mem:    16230724 total,    419344 free
KiB Swap:   20971516 total,  15997856 free
Timestamp of repository gentoo: Tue, 25 Jun 2024 07:34:03 +0000
Head commit of repository gentoo: 1275d5017e7bab96cfb19a68accb409d13c09667

Timestamp of repository joecool-overlay: Fri, 14 Jun 2024 12:36:25 +0000
Head commit of repository joecool-overlay: 48b14e5197474f5534b7be98e23e35a54cb95995

Timestamp of repository src_prepare-overlay: Thu, 20 Jun 2024 07:34:05 +0000
Head commit of repository src_prepare-overlay: 40ae8c43be9f0b78e1b2d2ac603f0807c4120afc

Timestamp of repository tmacedo: Sat, 08 Jun 2024 04:03:55 +0000
Head commit of repository tmacedo: 457a76e42861a317aa6faa1852488fb3421a0aea

sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r5::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.4_p1::gentoo, 3.13.0_beta2_p9::gentoo
dev-lang/rust:             1.78.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.7::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           18.1.7::gentoo
sys-devel/gcc:             13.2.1_p20240503::gentoo, 14.1.1_p20240622::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.7::gentoo
sys-devel/llvm:            18.1.7::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

joecool-overlay
    location: /var/db/repos/joecool-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/joecool-overlay.git
    masters: gentoo
    volatile: False

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/src_prepare-overlay.git
    masters: gentoo
    volatile: False

tmacedo
    location: /var/db/repos/tmacedo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/tmacedo.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--load-average 3.0"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -fuse-ld=mold -Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="64bit aio amd64 apache2 apparmor bash-completion bcmath boost bpf btrfs bzip2 cet cli crypt curl default-lld deflate dnscrypt down-root ecs exif fpm gd gdbm ghostscript git gmp graphite grub gzip hddtemp headless-awt hostonly hsts http2 iconv idn igbinary imagemagick initramfs innodb inotify intl io-uring iproute2 ipv6 jemalloc jit libidn2 libtirpc lto lz4 lzma lzo mysql mysqli ncurses nftables nptl offensive opcache openmp openssl pam pcntl pcre pcre2 pdo pgo pie python readline redis regex resolvconf sasl seccomp sftp sharedmem sodium sqlite ssl ssp symlink systemd sysv-utils sysvipc test-rust tfo threads tls-heartbeat truetype udev unicode urandom uring vhost-net webp xattr xmlreader xmlwriter xtables zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="unixd http2 remoteip dir proxy proxy_wstunnel proxy_fcgi cache_disk proxy proxy_http proxy_http2 unixd cgid actions alias auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user cache deflate disk_cache env expires ext_filter file_cache filter headers ident include info log_config logio mem_cache negotiation rewrite setenvif so socache_shmcb status unique_id vhost_alias mime" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Reproducible: Always

Steps to Reproduce:
1. emerge netdata
Comment 1 Mike Gilbert gentoo-dev 2024-06-25 17:56:57 UTC
Please attach the full build log.
Comment 2 Michiel Hazelhof 2024-06-25 19:45:11 UTC
Created attachment 896424 [details]
build log
Comment 3 Eli Schwartz 2024-06-28 06:56:41 UTC
commit bcc77aef95de5fc30f49f9e05d1864100148f1f7
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: Tue Jan 9 16:08:37 2024
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: Tue Jan 9 16:13:01 2024

    net-analyzer/netdata: autotools removed so use cmake
    
    See: https://github.com/netdata/netdata/pull/15996
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-analyzer/netdata/metadata.xml        |  2 ++
 net-analyzer/netdata/netdata-9999.ebuild | 79 +++++++++++++++++++++++++++++++++----------------------------------------------
 2 files changed, 35 insertions(+), 46 deletions(-)


This added the USE=bpf flag, a feature which was formerly dropped:

commit 9eb14332dc36a88ce79e5618d349ca3ac5774507
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: Fri Feb 21 09:41:58 2020
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: Fri Feb 21 10:08:17 2020

    net-analyzer/netdata: Remove no-op --enable-ebpf
    
    Enabling ebpf is actually much more involved
    
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-analyzer/netdata/netdata-1.20.0.ebuild | 1 -
 net-analyzer/netdata/netdata-9999.ebuild   | 1 -
 2 files changed, 2 deletions(-)



I suspect that this time around it was never actually tested, because there's simply no way this would ever work. Both autotools and cmake used to require you to have libbpf.a already built when you configure netdata, and then it was moved to use git to clone libbpf in cmake via:

https://github.com/netdata/netdata/commit/aa6d30384d26c6df33acd67dc8402ae9e3195297

Even if git was installed, this would fail at the network sandbox.