fails to compile against sys-libs/binutils-libs-2.39-r1 In file included from /usr/include/bfd.h:13, from /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:67: /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/lookup-symbol.c: In function '_symtab_init': /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:113:59: error: 'PTR' undeclared (first use in this function) 113 | symcount = bfd_read_minisymbols (symtab->bfd, false, (PTR) &symtab->syms, &size); | ^~~ /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/lookup-symbol.c:113:59: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [Makefile:641: libcairo_trace_la-lookup-symbol.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/trace.c: In function '_encode_string_literal': /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/trace.c:1827:17: warning: this statement may fall through [-Wimplicit-fallthrough=] 1827 | max -= 2; | ~~~~^~~~ /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/util/cairo-trace/trace.c:1828:9: note: here 1828 | case '\t': | ^~~~ make[4]: Leaving directory '/var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0-abi_x86_32.x86/util/cairo-trace' make[3]: *** [Makefile:1007: all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0-abi_x86_32.x86/util' make[2]: *** [Makefile:784: all] Error 2 make[2]: Leaving directory '/var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0-abi_x86_32.x86/util' make[1]: *** [Makefile:914: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0-abi_x86_32.x86' make: *** [Makefile:765: all] Error 2 * ERROR: x11-libs/cairo-1.16.0-r5::gentoo failed (compile phase): * emake failed emerge --info Portage 3.0.35 (python 3.11.0-candidate-1, default/linux/amd64/17.1, gcc-12.2.0, glibc-2.35-r8, 6.0.0-rc3 x86_64) ================================================================= System uname: Linux-6.0.0-rc3-x86_64-AMD_Athlon-tm-_II_X2_240_Processor-with-glibc2.35 KiB Mem: 4026808 total, 2429672 free KiB Swap: 11010040 total, 10371632 free Timestamp of repository poly-c: Thu, 30 Jun 2022 10:01:43 +0000 Timestamp of repository gentoo: Sun, 04 Sep 2022 08:16:58 +0000 Head commit of repository gentoo: f0f52bc81933eaa30f321897b1c05fb38cbe9e1f Timestamp of repository FireBurn: Wed, 31 Aug 2022 22:16:54 +0000 Head commit of repository FireBurn: 8010577d8c8dff97d0bec7c57c06ebfb84c5f614 Timestamp of repository gamerlay: Wed, 24 Aug 2022 05:02:36 +0000 Head commit of repository gamerlay: c223d749d9e59deb84faad67aa53ce7a66fa0922 Timestamp of repository gerislay: Sat, 03 Sep 2022 18:47:00 +0000 Head commit of repository gerislay: 6b35b9513257572e577cb4192232870f0b49ae23 Timestamp of repository java: Wed, 24 Aug 2022 05:02:38 +0000 Head commit of repository java: 845d70cdfaecc9379aceee98fd3cc0906548a7b5 Head commit of repository kde: 9b1a485416eda6cb895a15c6cca6e2f6e1cb6eb3 Head commit of repository netfab-overlay: 3f5cf613f0192186423d74e844e65a880879c234 Timestamp of repository pg_overlay: Thu, 01 Sep 2022 23:01:44 +0000 Head commit of repository pg_overlay: 7d1d8b31af5f0fd34aec6445deed0550cbe5ac1b Timestamp of repository qt: Wed, 24 Aug 2022 05:02:40 +0000 Head commit of repository qt: 2d86ecd395e839f0587f065734c750316ffee982 Timestamp of repository seden: Sat, 03 Sep 2022 18:46:58 +0000 Head commit of repository seden: 9ffaa219785bba7cfbff705408028b45a7c63b5f Timestamp of repository stefantalpalaru: Fri, 02 Sep 2022 01:31:40 +0000 Head commit of repository stefantalpalaru: 35ac6b06de877fabe0ec68d4ce4646f2e9a82a55 Timestamp of repository x11: Tue, 16 Aug 2022 14:16:50 +0000 Head commit of repository x11: e5819f1dc428078814a4225a73ddae55201fbece sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.38 p4) 2.38 ccache version 4.6.3 [enabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.6_p3::gentoo, 3.11.0_rc1_p1::gentoo dev-lang/rust-bin: 1.62.1::gentoo dev-util/ccache: 4.6.3::gentoo dev-util/cmake: 3.24.1::gentoo dev-util/meson: 0.63.1::gentoo sys-apps/baselayout: 2.8-r2::gentoo sys-apps/openrc: 0.45.2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo, 2.39-r1::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo sys-devel/gcc: 12.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.6::gentoo sys-devel/llvm: 14.0.6-r2::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: poly-c location: /var/db/repos/poly-c masters: gentoo priority: -1001 gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 FireBurn location: /var/db/repos/FireBurn sync-type: git sync-uri: https://github.com/gentoo-mirror/FireBurn.git masters: gentoo gamerlay location: /var/db/repos/gamerlay sync-type: git sync-uri: https://github.com/gentoo-mirror/gamerlay.git masters: gentoo gerislay location: /var/db/repos/gerislay sync-type: git sync-uri: https://github.com/gentoo-mirror/gerislay.git masters: gentoo java location: /var/db/repos/java sync-type: git sync-uri: https://github.com/gentoo-mirror/java.git masters: gentoo kde location: /var/db/repos/kde sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo netfab-overlay location: /var/db/repos/netfab-overlay sync-type: git sync-uri: https://github.com/netfab/overlay masters: gentoo overlay_jl location: /var/db/repos/overlay_jl masters: gentoo pg_overlay location: /var/db/repos/pg_overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/pg_overlay.git masters: gentoo qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo seden location: /var/db/repos/seden sync-type: git sync-uri: https://github.com/gentoo-mirror/seden.git masters: gentoo stefantalpalaru location: /var/db/repos/stefantalpalaru sync-type: git sync-uri: https://github.com/gentoo-mirror/stefantalpalaru.git masters: gentoo x11 location: /var/db/repos/x11 sync-type: git sync-uri: https://github.com/gentoo-mirror/x11.git masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" 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" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --keep-going --quiet-build=y --verbose-conflicts" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-march=native -mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch 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="-march=native -mtune=native -O2 -pipe" GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ https://mirrors.dotsrc.org/gentoo/ https://mirror.leaseweb.com/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de" MAKEOPTS="-j3" 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 X Xaw3d a52 aac aacplus aacs aalib ace acl acpi activefilter admin adns aften alsa ambisonics amd64 ap apm apng archive arping audacious audiofile automount avif bash bazaar bdplus binary-drivers bluray boost btrfs bzip2 cairo ccache cdda cddb cdio cdr cdrom charconv chm chroot cjk clang cli client colordiff colorpicker colors compress corefonts cpio cpufreq_bench cpuload crypt css cue cups curl custom-modes d3d9 dav1d dbus declarative dga dhcp dom doom doomsday dri dri3 drm dts duktape dump dv dvb dvd dvdnav eap eap-sim eap-tls ebook egl elogind encode enscript epub equalizer exif extensions extras faac faad farstream fat fax fbcon fdformat fdk ffmpeg fftw firefox flac fluidsynth fontconfig foomatic foomaticdb fortran freedoom ftp fuse gadu gd gegl geoip gif git glamor gpg gphoto2 graphite grub gstreamer gtk gtk3 gtk4 gui gzip haptic hddtemp hdf hdf5 heretic hexen hid highlight history hpcups hpijs http http2 hwdb iconv icu id3tag idn imagemagick initramfs inotify introspection ipc ipod ipv6 iso jack jbootstrap jit jpeg jpeg2k jpegxl kde kdenlive keyfinder ladspa lame lcms legacy-systray lensfun libaom libass libcanberra libdrm libglvnd libinput libmpv libnotify libplacebo librtmp libsamplerate libssh2 libtirpc libv4l libwww lightdm live lm-sensors lm_sensors logrotate lua lv2 lximage lz4 lzma lzo mad magic man matroska md5sum meanwhile melt mercurial metalink midi mikmod mime minizip mixer mjpeg mmap mms mng mobi mod modern-top modplug mono mount mouse mozilla mp3 mp4 mpeg mpeg2 mplayer mtp multilib multimedia multislot musepack musicbrainz nano-syntax ncat ncurses ndiff network networkmonitor newnet nls nmap-update normalize nowlistening nping nptl ntfs ntfsprogs ntp nvidia nvram obex ocr odbc odf offload ogg ogm openal opencl opengl openh264 openmp openssl opus osdmenu otr p2p pam pango panorama parse-clocks pcap pci pcre pcre16 pdf pdfimport phonon pipes pkcs11 plasma plugins pm-utils png policykit postproc postscript powermanagement ppds printsupport privacy projectm pulseaudio pvr python qalculate qml qrcode qt5 qtkeychain quicktime radio rar raw readline recording reiser4 reiserfs remote-access replaygain rtc rtmp rubberband sbsms scanner screencast screensaver scripttools sdl seccomp secure-delete sensors serial serialport sftp sha512 shorten shout skins slang smi sndfile sockets sound soundtouch source-highlight speech speex spell split-usr sql sqlite sqlite3 squashfs ssh ssl staging startup-notification statistics statusnotifier stk stream subtitles sudo svg symlink sync-plugin-portage syslog sysstat system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite sysv-utils szip taglib text texteffect tftp tftpd themes theora threads thumbnail tiff timidity tracepath traceroute translator truetype twolame udev udf udisks unicode update_drivedb upower urlpicpreview usb utils v4l v4l2 vaapi vala vamp vdpau vector-icons video videos virtualbox vkd3d vnc vorbis vpx vroot vst vulkan vulkaninfo wad wav wavpack wayland webgl webp webpresence widgets winbind winpopup wmf worldclock wps wxwidgets x264 x265 xattr xcb xcomposite xfs xine xinerama xkb xml xmp xorg xosd xpm xrandr xscreensaver xv xvid yahoo zenmap zink zip zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2020" 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 sse4a" CURL_SSL="openssl" 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="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="radeon amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 803176 [details] build.log
Created attachment 803182 [details] build.log gzipped
Upstream has fixed it in master branch. https://gitlab.freedesktop.org/cairo/cairo/-/commit/74f2da7b70179a363b5a4649b9c5d6fd18d9cbc0
Created attachment 803194 [details, diff] patch Just drop this in /etc/portage/patches/x11-libs/cairo-1.16.0
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3392d007e80240e76b457782760e558afb1b2a4f commit 3392d007e80240e76b457782760e558afb1b2a4f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-04 18:06:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-04 18:06:13 +0000 x11-libs/cairo: fix build with binutils-2.39 Closes: https://bugs.gentoo.org/868405 Signed-off-by: Sam James <sam@gentoo.org> x11-libs/cairo/cairo-1.16.0-r5.ebuild | 1 + .../files/cairo-1.16.0-binutils-2.39-ptr.patch | 29 ++++++++++++++++++++++ 2 files changed, 30 insertions(+)