[545/1131] x86_64-pc-linux-gnu-gcc -Isrc/plugins/git/daemon/3185d7c@@gnome-builder-git@exe -Isrc/plugins/git/daemon -I../gnome-builder-3.34.1/src/plugins/git/daemon -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libgit2-glib-1.0 -Iinclude -I/var/tmp/portage/dev-util/gnome-builder-3.34.1/work/gnome-builder-3.34.1-build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -Wcast-align -Wdeclaration-after-statement -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=misleading-indentation -Werror=missing-braces -Werror=missing-include-dirs -Werror=nonnull -Werror=overflow -Werror=pointer-arith -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=shadow -Werror=strict-prototypes -Werror=trigraphs -Werror=undef -Werror=write-strings -Wformat-nonliteral -Werror=format-security -Werror=format=2 -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-cast-function-type -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -fno-strict-aliasing -DHAVE_CONFIG_H -D_GNU_SOURCE -DIDE_COMPILATION -DG_DISABLE_CAST_CHECKS -O2 -march=x86-64 -fomit-frame-pointer -g -ggdb -DGIT_SSH=1 -pthread -MD -MQ 'src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o' -MF 'src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o.d' -o 'src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o' -c src/plugins/git/daemon/ipc-git-config.c FAILED: src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o x86_64-pc-linux-gnu-gcc -Isrc/plugins/git/daemon/3185d7c@@gnome-builder-git@exe -Isrc/plugins/git/daemon -I../gnome-builder-3.34.1/src/plugins/git/daemon -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libgit2-glib-1.0 -Iinclude -I/var/tmp/portage/dev-util/gnome-builder-3.34.1/work/gnome-builder-3.34.1-build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -Wcast-align -Wdeclaration-after-statement -Werror=address -Werror=array-bounds -Werror=empty-body -Werror=implicit -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=misleading-indentation -Werror=missing-braces -Werror=missing-include-dirs -Werror=nonnull -Werror=overflow -Werror=pointer-arith -Werror=pointer-to-int-cast -Werror=redundant-decls -Werror=return-type -Werror=sequence-point -Werror=shadow -Werror=strict-prototypes -Werror=trigraphs -Werror=undef -Werror=write-strings -Wformat-nonliteral -Werror=format-security -Werror=format=2 -Wignored-qualifiers -Wimplicit-function-declaration -Wlogical-op -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-cast-function-type -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -Wunused -fno-strict-aliasing -DHAVE_CONFIG_H -D_GNU_SOURCE -DIDE_COMPILATION -DG_DISABLE_CAST_CHECKS -O2 -march=x86-64 -fomit-frame-pointer -g -ggdb -DGIT_SSH=1 -pthread -MD -MQ 'src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o' -MF 'src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o.d' -o 'src/plugins/git/daemon/3185d7c@@gnome-builder-git@exe/meson-generated_.._ipc-git-config.c.o' -c src/plugins/git/daemon/ipc-git-config.c cc1: error: include: No such file or directory [-Werror=missing-include-dirs] cc1: some warnings being treated as errors Reproducible: Always
$ emerge --info Portage 2.3.93 (python 3.6.10-final-0, kobboi/tanagra, gcc-9.2.0, glibc-2.30-r4, 5.4.24 x86_64) ================================================================= System uname: Linux-5.4.24-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.7 KiB Mem: 8146692 total, 479936 free KiB Swap: 1048572 total, 657520 free Head commit of repository gentoo: 1b72ccda17b7f25efee5b8b1b3a89f16334d2ad0 Head commit of repository brother-overlay: d0890f9919545144ced103c503b7b58187717bc2 Head commit of repository flatpak-overlay: dba2292fa92fbe7f51a437ff89d27cbab6105b67 sh bash 5.0_p16 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 3.7.7 [disabled] app-shells/bash: 5.0_p16::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.7::gentoo, 3.8.2::gentoo dev-util/ccache: 3.7.7-r1::gentoo dev-util/cmake: 3.16.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r2::gentoo sys-devel/binutils: 2.33.1-r1::gentoo sys-devel/gcc: 6.5.0-r1::gentoo, 9.2.0-r4::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r4::gentoo Repositories: gentoo location: /var/cache/kobboi/gentoo sync-type: git sync-uri: https://github.com/kobboi/gentoo.git priority: -1000 brother-overlay location: /usr/local/overlay/brother-overlay sync-type: git sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git masters: gentoo flatpak-overlay location: /var/lib/layman/flatpak-overlay sync-type: git sync-uri: https://github.com/fosero/flatpak-overlay.git masters: gentoo priority: 50 Installed sets: @kobboi-machine-tanagra ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/usr/src/debug /usr/lib/debug" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/var/cache/binpkgs" PORTAGE_BINHOST="ssh://christophe@10.8.0.6/usr/portage/packages" 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" USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups cxx dbus djvu dri dts dvd dvdr eds egl emboss encode evo exif ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle iconv icu introspection ipv6 jpeg lcms ldap libass libnotify libsecret libtirpc mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba sdl seccomp smartcard smp spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 618092 [details] build.log.gz
IRC debugging revealed that libgit2.pc appears rather broken as installed by 0.99 on Kobboi's system: prefix="/usr" libdir="/usr/lib64" includedir="include" Name: libgit2 Description: The git library, take 2 Version: 0.99.0 Libs: -L${libdir} -lgit2 Libs.private: -lrt -lpthread -lhttp_parser -lssh2 Requires.private: openssl libpcre zlib Cflags: -I${includedir} My 0.28.4 one: prefix="/usr" libdir=/usr/lib64 includedir=${prefix}/include Name: libgit2 Description: The git library, take 2 Version: 0.28.4 Libs: -L${libdir} -lgit2 Libs.private: -lrt -lpthread -lhttp_parser -lssh2 Requires.private: openssl zlib Cflags: -I${includedir} includedir is broken in 0.99.0
Is this actually with -r1 that contains pkg-config fix, or -r0?
(In reply to Michał Górny from comment #4) > Is this actually with -r1 that contains pkg-config fix, or -r0? christophe@tanagra ~ $ eix -e libgit2 [I] dev-libs/libgit2 Available versions: 0.28.4(0/28)^t (~)0.99.0-r1(0/0.99)^t {examples gssapi libressl +ssh test +threads trace} Installed versions: 0.99.0-r1(0/0.99)^t(10:24:48 02/03/20)(ssh threads -examples -gssapi -libressl -test -trace) Homepage: https://libgit2.org Description: A linkable library for Git christophe@tanagra ~ $ pkg-config --cflags libgit2 -Iinclude
Created attachment 624794 [details, diff] /etc/portage/patches/dev-libs/libgit2-0.99.0-r1/libgit2-0.99.0-87fc539f2ee-use_provided_install_dirs.patch upstream commit fixes this; here's a gentooification suitable for use as a work-around
(In reply to Greg Turner from comment #6) > Created attachment 624794 [details, diff] [details, diff] > /etc/portage/patches/dev-libs/libgit2-0.99.0-r1/libgit2-0.99.0-87fc539f2ee- > use_provided_install_dirs.patch > > upstream commit fixes this; here's a gentooification suitable for use as a > work-around nb: in my case, this is still not enough to get gnome-builder building due to some sort of header token expected-it-to-be-a-number-but-its-really-a-string problem. Perhaps upstream changed something in a backward-incompatible way. But, that issue appeared to be unrelated, (also ime possibly a proper gnome-builder bug rather than a libgit2 one although I'm not sure -- I used a brutal hack to push past that and it did compile thereafter).
Could you try 1.0.0? Upstream reworked pkg-config files again, hopefully they got them right this time.
@mgorny: I can't just yet, I'm also using libgit2, which depends on <dev-libs/libgit2-1:0/0.99=
(In reply to Kobboi from comment #9) > @mgorny: I can't just yet, I'm also using libgit2, which depends on > <dev-libs/libgit2-1:0/0.99= That should have read: "I'm also using dev-libs/libgit2-glib"
ping. Do I need to lock to an older libgit2 in gnome-builder package?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00bf0487dbb811dda18eaa7626e6c9e38b15bf6f commit 00bf0487dbb811dda18eaa7626e6c9e38b15bf6f Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2020-04-26 16:34:24 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-04-26 16:53:13 +0000 dev-libs/libgit2: Remove broken 0.99.0 Closes: https://bugs.gentoo.org/712270 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-libs/libgit2/Manifest | 1 - .../libgit2/files/libgit2-0.99.0-pkg-config.patch | 81 ---------------------- dev-libs/libgit2/libgit2-0.99.0-r1.ebuild | 76 -------------------- 3 files changed, 158 deletions(-)