Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879067 - x11-libs/cairo-1.17.6[debug]: ERROR: Problem encountered: symbol lookup via bfd was enabled via options but is not available (bfd might be too old) (sys-libs/binutils-libs installs a "broken" bfd.h)
Summary: x11-libs/cairo-1.17.6[debug]: ERROR: Problem encountered: symbol lookup via b...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-01 19:19 UTC by John Helmert III
Modified: 2024-01-23 06:26 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,7.06 KB, text/x-log)
2022-11-01 19:19 UTC, John Helmert III
Details
meson-log.txt (meson-log.txt,72.31 KB, text/plain)
2022-11-01 19:20 UTC, John Helmert III
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-11-01 19:19:36 UTC
Created attachment 826509 [details]
build.log

Relevant bit of build.log:

Checking if "bfd_section_flags" with dependency -lbfd: links: NO

../cairo-1.17.6/meson.build:724:2: ERROR: Problem encountered: symbol lookup via bfd was enabled via options but is not available (bfd might be too old)

build.log and meson-log.txt attached.

Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.36-r5, 5.15.74-gentoo-dist-hardened x86_64)
=================================================================
System uname: Linux-5.15.74-gentoo-dist-hardened-x86_64-AMD_Ryzen_7_5800X_8-Core_Processor-with-glibc2.36
KiB Mem:    65768180 total,  12426212 free
KiB Swap:    8388604 total,   7918076 free
Timestamp of repository gentoo: Tue, 01 Nov 2022 18:02:04 +0000
Head commit of repository gentoo: 99594e7fd9048b28431b3679d1058476967c120f

Head commit of repository ajak: 6624cefa9ecf7c948ba90c754df91fa50c67aa1a

Timestamp of repository guru: Tue, 01 Nov 2022 10:31:46 +0000
Head commit of repository guru: 9a05d6b5931829de84383061e842bda701cb5862

Timestamp of repository musl: Thu, 20 Oct 2022 06:32:11 +0000
Head commit of repository musl: 06c4ea14e7e7a896a880bf5efc308c5dd9aa1fa2

Timestamp of repository pentoo: Tue, 01 Nov 2022 08:46:47 +0000
Head commit of repository pentoo: 1a1213c93e8ca23ba4d7ecfed24d2704f52eccb5

Timestamp of repository steam-overlay: Thu, 20 Oct 2022 06:32:14 +0000
Head commit of repository steam-overlay: f40a22632e77a46be0153821f4a7f7847029533b

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.7.2 [disabled]
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-r1::gentoo
dev-lang/python:           2.7.18_p15-r1::gentoo, 3.9.15_p1::gentoo, 3.10.8_p1::gentoo, 3.11.0::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/ccache:           4.7.2::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252::gentoo
sys-devel/autoconf:        2.13-r3::gentoo, 2.71-r4::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.1_p20221007::gentoo, 12.2.1_p20221008::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    sync-git-verify-commit-signature: yes

ajak
    location: /var/db/repos/ajak
    sync-type: git
    sync-uri: https://gitlab.com/ajak/ajak
    masters: gentoo

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /var/ossec/etc"
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="-march=znver1 -O2 -pipe"
DISTDIR="/var/cache/distfiles/"
EMERGE_DEFAULT_OPTS="--quiet-build=y --binpkg-respect-use=y"
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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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="-O2 -pipe"
GENTOO_MIRRORS="https://distfiles.gentoo.org"
INSTALL_MASK="/etc/portage/savedconfig"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16 -l16"
PKGDIR="/var/cache/binpkgs/"
PORTAGE_BINHOST="http://raptor.wg.ajak.xyz/znver1/"
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 acl alsa amd64 bluetooth bzip2 clang cli crypt dbus dist-kernel dri emacs examples fortran gdbm gtk gui iconv icu ipv6 libglvnd libtirpc lto multilib ncurses nls notmuch nptl opengl openmp pam pcre pgo pipewire policykit pulseaudio readline screencast seccomp ssl systemd test-rust udev unicode verify-sig vulkan wayland xattr zlib" ABI_X86="64 32" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon 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, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-11-01 19:20:02 UTC
Created attachment 826511 [details]
meson-log.txt
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-02 04:10:46 UTC
```
Compiler stderr:
 In file included from /usr/include/bfd.h:13,
                 from /var/tmp/portage/x11-libs/cairo-1.17.6/work/cairo-1.17.6/meson-cc-tests/bfd-section-flags.c:1:
/usr/include/i686-pc-linux-gnu/bfd.h:35:2: error: #error config.h must be included before this header
   35 | #error config.h must be included before this header
      |  ^~~~~

Checking if "bfd_section_flags" with dependency -lbfd: links: NO 
```

Indeed, in /usr/include/i686-pc-linux-gnu/bfd.h:
```
[...]
/* PR 14072: Ensure that config.h is included first.  */
#if !defined PACKAGE && !defined PACKAGE_VERSION
#error config.h must be included before this header
#endif
[...]
```
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-02 04:13:26 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=14243 is the really telling one.
Comment 4 Edgar Dragon 2022-12-17 03:49:46 UTC
I need to package.mask x11-libs/cairo-1.17.6 due this issue. Only x11-libs/cairo-1.16.0-r6 builds. I suggest unstabling x11-libs/cairo-1.17.6.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-17 04:40:40 UTC
(In reply to Edgar Dragon from comment #4)
> I need to package.mask x11-libs/cairo-1.17.6 due this issue. Only
> x11-libs/cairo-1.16.0-r6 builds. I suggest unstabling x11-libs/cairo-1.17.6.

Or just disable USE=debug.
Comment 6 Larry the Git Cow gentoo-dev 2022-12-17 04:46:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=404f391b6a35da78f94c7c739ac20b9ecb460e23

commit 404f391b6a35da78f94c7c739ac20b9ecb460e23
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-17 04:45:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-17 04:45:49 +0000

    profiles/base: mask >=x11-libs/cairo-1.17.6[debug]
    
    Bug: https://bugs.gentoo.org/879067
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-23 06:26:47 UTC
Fedora just patches it out: https://src.fedoraproject.org/rpms/binutils/blob/f39/f/binutils-no-config-h-check.patch