Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946390 - sys-devel/gettext-0.23 fails to build on musl/llvm: po-error.c:39:5: error: use of undeclared identifier 'error_at_line'
Summary: sys-devel/gettext-0.23 fails to build on musl/llvm: po-error.c:39:5: error: u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-12-13 19:51 UTC by Spekadyon
Modified: 2024-12-14 10:43 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.gz,98.13 KB, application/gzip)
2024-12-13 19:54 UTC, Spekadyon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spekadyon 2024-12-13 19:51:21 UTC
sys-devel/gettext-0.23 fails to build on a musl/llvm profile, due to the error_at_line symbol being not found.

This error is triggered only if the package sys-libs/error-standalone is merged. gettext builds fine if sys-libs/error-standalone is removed.


Reproducible: Always

Steps to Reproduce:
1. emerge sys-libs/error-standalone (or any package depending on error-standalone, e.g. debugedit)
2. emerge sys-devel/gettext

Actual Results:  
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/po-error.c:39:5: error: use of undeclared identifier 'error_at_line'; did you mean 'verror_at_line'?
   39 |   = error_at_line;
      |     ^~~~~~~~~~~~~
      |     verror_at_line
../gnulib-lib/error.h:598:13: note: 'verror_at_line' declared here
  598 | extern void verror_at_line (int __status, int __errnum, const char *__fname,
      |             ^
/var/tmp/portage/sys-devel/gettext-0.23/work/gettext-0.23/gettext-tools/src/po-error.c:36:8: error: incompatible function pointer types initializing 'void (*)(int, int, const char *, unsigned int, const char *, ...)' with an expression of type 'void (int, int, const char *, unsigned int, const char *, struct __va_list_tag *)' [-Wincompatible-function-pointer-types]
   36 | void (*po_error_at_line) (int status, int errnum,
      |        ^
   37 |                           const char *filename, unsigned int lineno,
   38 |                           const char *format, ...)
   39 |   = error_at_line;
      |     ~~~~~~~~~~~~~
2 errors generated.


Expected Results:  
No error
Comment 1 Spekadyon 2024-12-13 19:54:45 UTC
Created attachment 913957 [details]
build.log
Comment 2 Spekadyon 2024-12-13 19:55:46 UTC
% emerge --info
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr/musl/llvm, gcc-13, musl-1.2.5-r1, 6.12.3-gentoo x86_64)
=================================================================
System uname: Linux-6.12.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-4720HQ_CPU_@_2.60GHz-with-libc
KiB Mem:    16280272 total,   1530004 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 13 Dec 2024 05:15:00 +0000
Head commit of repository gentoo: bfc597cacab9f53fd8ef9a78b4d83341cdb0e54b
Timestamp of repository ahyangyi-overlay: Mon, 19 Aug 2024 08:04:07 +0000
Head commit of repository ahyangyi-overlay: fb0872bc8d432ac9a4bc1bc4ba844b3de77e66dd

Timestamp of repository guru: Thu, 12 Dec 2024 22:05:17 +0000
Head commit of repository guru: c91a7f53487d6052d0ba8ae27d59f48c4b7e8f1e

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake:           3.30.3::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.0-r1::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.8::gentoo
dev-lang/rust-bin:         1.74.1-r101::gentoo, 1.83.0::gentoo
llvm-core/clang:           17.0.6::gentoo, 18.1.8::gentoo, 19.1.0::gentoo
llvm-core/lld:             18.1.8::gentoo, 19.1.0::gentoo
llvm-core/llvm:            17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.0::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.40::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241115::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.5-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

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

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

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-musl"
CC="clang"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-musl"
CONFIG_PROTECT="/etc /usr/lib/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"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
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="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait 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="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed"
LEX="flex"
LINGUAS="en en-US fr"
MAKEOPTS="-j8"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
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"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
SHELL="/bin/zsh"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet clang crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac gif gtk gui iconv icu ipv6 jpeg kde kf6compat kwallet lcms libnotify libtirpc llvm-libunwind mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pic pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-US fr" 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-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RUSTFLAGS, SIZE, YACC, YFLAGS
Comment 3 Larry the Git Cow gentoo-dev 2024-12-14 10:43:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=055efe211af854c3cc4d25e166f4b378776b8efd

commit 055efe211af854c3cc4d25e166f4b378776b8efd
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-12-14 05:30:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-14 10:42:42 +0000

    sys-libs/error-standalone: add 2.0
    
    Closes: https://bugs.gentoo.org/946390
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/error-standalone/Manifest                 |  1 +
 .../error-standalone/error-standalone-2.0.ebuild   | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9de336e30627daf244c59c04833661a6e3796327

commit 9de336e30627daf244c59c04833661a6e3796327
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-12-14 06:01:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-14 10:42:43 +0000

    dev-util/debugedit: use error-standalone-2.0
    
    Bug: https://bugs.gentoo.org/946390
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Closes: https://github.com/gentoo/gentoo/pull/39709
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/debugedit/debugedit-5.1-r3.ebuild | 64 ++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67022c7de7d70dc3a9328e561ea5db3d1f8bfc73

commit 67022c7de7d70dc3a9328e561ea5db3d1f8bfc73
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-12-14 05:37:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-14 10:42:43 +0000

    sys-devel/dwz: use error-standalone-2.0
    
    Bug: https://bugs.gentoo.org/946390
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/dwz/dwz-0.15-r4.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40b4d59400d036d9b3ae0badc56bfa57d419ebd2

commit 40b4d59400d036d9b3ae0badc56bfa57d419ebd2
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-12-14 05:34:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-14 10:42:41 +0000

    dev-util/debugedit: prepare for error-standalone-2.0
    
    Bug: https://bugs.gentoo.org/946390
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/debugedit/debugedit-5.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e398ec5b8e0466ccd70a4a7052544c4f8b621dc

commit 8e398ec5b8e0466ccd70a4a7052544c4f8b621dc
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2024-12-14 05:32:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-14 10:42:41 +0000

    sys-devel/dwz: prepare for error-standalone-2.0
    
    Bug: https://bugs.gentoo.org/946390
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/dwz/dwz-0.15-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)