Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953970 - dev-libs/apr-1.7.5 - www-servers/apache fails to build when apr is built using slibtool
Summary: dev-libs/apr-1.7.5 - www-servers/apache fails to build when apr is built usin...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2025-04-17 19:46 UTC by Kim B. Sindalsen
Modified: 2025-04-18 17:38 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,122.00 KB, application/octet-stream)
2025-04-17 20:00 UTC, Kim B. Sindalsen
Details
build.log (build.log,123.92 KB, application/octet-stream)
2025-04-17 20:03 UTC, Kim B. Sindalsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim B. Sindalsen 2025-04-17 19:46:02 UTC
www-servers/apache fails to build when dev-libs/apr is built using slibtool
See https://forums.gentoo.org/viewtopic-t-1173751.html

/usr/share/apr/build/libtool --silent --mode=link x86_64-pc-linux-gnu-gcc    -O2 -pipe -march=goldmont --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -Werror=strict-aliasing -Werror=odr -Wstack-protector -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstack-protector -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -flto=auto -fno-fat-lto-objects    -L/var/tmp/portage/dev-libs/apr-util-1.6.3/temp  -fuse-ld=mold -Wl,--as-needed -Wl,-O2 -flto -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--no-as-needed -o gen_test_char -L/var/tmp/portage/dev-libs/apr-util-1.6.3/temp gen_test_char.lo
./gen_test_char > test_char.h
/bin/sh: line 1: ./gen_test_char: No such file or directory
make[2]: *** [Makefile:37: test_char.h] Error 127
make[2]: Leaving directory '/var/tmp/portage/www-servers/apache-2.4.63-r1/work/httpd-2.4.63/server'
make[1]: *** [/var/tmp/portage/www-servers/apache-2.4.63-r1/work/httpd-2.4.63/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/www-servers/apache-2.4.63-r1/work/httpd-2.4.63/server'
make: *** [/var/tmp/portage/www-servers/apache-2.4.63-r1/work/httpd-2.4.63/build/rules.mk:75: all-recursive] Error 1
 * ERROR: www-servers/apache-2.4.63-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=www-servers/apache-2.4.63-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-servers/apache-2.4.63-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/www-servers/apache-2.4.63-r1:20250417-174841.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/www-servers/apache-2.4.63-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/apache-2.4.63-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-servers/apache-2.4.63-r1/work/httpd-2.4.63'
 * S: '/var/tmp/portage/www-servers/apache-2.4.63-r1/work/httpd-2.4.63'

>>> Failed to emerge www-servers/apache-2.4.63-r1, Log file:

>>>  '/var/log/portage/build/www-servers/apache-2.4.63-r1:20250417-174841.log'


When build dev-libs/apr using regular libtool www-servers/apache builds fine (using regular libtool for apache, too)

Reproducible: Always




lamp ~ # emerge --info
Portage 3.0.68 (python 3.13.3-final-0, default/linux/amd64/23.0/no-multilib/hardened, gcc-15, glibc-2.41-r1, 6.12.23-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.12.23-gentoo-x86_64-x86_64-Intel-R-_Atom-TM-_CPU_C3758R_@_2.40GHz-with-glibc2.41
KiB Mem:    16393524 total,  14248268 free
KiB Swap:    6291452 total,   6291452 free
Timestamp of repository eras-overlay: Tue, 15 Apr 2025 14:37:54 +0000
Head commit of repository eras-overlay: 45e3ce92f943653d2d265556d128d83cc185eca2

Timestamp of repository guru: Wed, 16 Apr 2025 13:05:29 +0000
Head commit of repository guru: e5d7eb8bb7db9156458092d0400e1a164f4309e8

Timestamp of repository gentoo: Wed, 16 Apr 2025 23:45:00 +0000
Head commit of repository gentoo: 43253b89e220d115552423f776a6ea338e2b6e4b
sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.7::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.2::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.12.10::gentoo, 3.13.3::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.61::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             15.0.1_pre20250413::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

local
    location: /var/db/repos/local
    sync-type: rsync
    sync-uri: rsync://ns.vlh.dk/vlh-portage
    masters: gentoo
    priority: -1
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: no

eras-overlay
    location: /var/db/repos/eras-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eras-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

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://ns.vlh.dk/gentoo-portage
    priority: 1
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no

Binary Repositories:

binhost
    priority: 10
    sync-uri: http://ns.vlh.dk/packages

Installed sets: @common
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=goldmont --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -Werror=strict-aliasing -Werror=odr -Wstack-protector -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstack-protector -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -flto=auto -fno-fat-lto-objects"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -march=goldmont --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -Werror=strict-aliasing -Werror=odr -Wstack-protector -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstack-protector -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -flto=auto -fno-fat-lto-objects -flifetime-dse=1"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --binpkg-respect-use=y --binpkg-changed-deps=y"
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=goldmont --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -Werror=strict-aliasing -Werror=odr -Wstack-protector -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstack-protector -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -flto=auto -fno-fat-lto-objects"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks export-pms-vars fixlafiles getbinpkg 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 split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=goldmont --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -Werror=strict-aliasing -Werror=odr -Wstack-protector -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstack-protector -fgraphite-identity -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -flto=auto -fno-fat-lto-objects"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-fuse-ld=mold -Wl,--as-needed -Wl,-O2 -flto -Wl,--defsym=__gentoo_check_ldflags__=0"
LEX="flex"
LIBTOOL="rlibtool"
LINGUAS="en"
MAKE="make LIBTOOL=rlibtool"
MAKEFLAGS="LIBTOOL=rlibtool"
MAKEOPTS="-j4"
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="acl amd64 apache2 apparmor audit berkdb bzip2 caps cet crypt exif gdbm graphite hardened iconv icu idn ipv6 jemalloc libtirpc lto mysql ncurses nls openmp pam pcre pgo pic pie readline seccomp ssl ssp test-rust truetype udev unicode usb verify-sig xattr xml xtpax zip zlib" ABI_X86="64" 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 http2 proxy proxy_http proxy_wstunnel" CPU_FLAGS_X86="mmx mmxext sse sse2 aes pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-3 lua5-4" PERL_FEATURES="ithreads quadmath" PHP_TARGETS="php8-3" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_12 python3_13" RUBY_TARGETS="ruby32"
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, 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
Comment 1 Kim B. Sindalsen 2025-04-17 20:00:48 UTC
Created attachment 925162 [details]
build.log
Comment 2 Kim B. Sindalsen 2025-04-17 20:01:12 UTC
Comment on attachment 925162 [details]
build.log

build log of dev-libs/apr with slibtool
Comment 3 Kim B. Sindalsen 2025-04-17 20:03:41 UTC
Created attachment 925163 [details]
build.log

build.log for www-servers/apache when dev-libs/apr is built with slibtool
Comment 4 Kim B. Sindalsen 2025-04-17 20:04:40 UTC
Comment on attachment 925162 [details]
build.log

build.log for dev-libs/apr with slibtool