Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852137 - net-dialup/freeradius-3.2.0 fails to build src/modules/rlm_perl
Summary: net-dialup/freeradius-3.2.0 fails to build src/modules/rlm_perl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-06-15 10:10 UTC by Michiel Hazelhof
Modified: 2022-06-30 15:44 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,351.18 KB, text/plain)
2022-06-15 10:11 UTC, Michiel Hazelhof
Details
build log (net-dialup%3Afreeradius-3.2.0%3A20220615-101351.log,54.09 KB, text/plain)
2022-06-15 10:16 UTC, Michiel Hazelhof
Details
rlm_perl config.log (rlm_perl config.log,22.13 KB, text/plain)
2022-06-15 14:59 UTC, Michiel Hazelhof
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel Hazelhof 2022-06-15 10:10:51 UTC
Build is broken

Reproducible: Always

Steps to Reproduce:
1. Build
Actual Results:  
configure: error: set --without-rlm_perl to disable it explicitly.
configure: error: ./configure failed for src/modules/rlm_perl
Comment 1 Michiel Hazelhof 2022-06-15 10:11:14 UTC
Created attachment 785405 [details]
config.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-15 10:14:08 UTC
Please include the full build.log and emerge --info.
Comment 3 Michiel Hazelhof 2022-06-15 10:16:50 UTC
Created attachment 785408 [details]
build log
Comment 4 Michiel Hazelhof 2022-06-15 10:18:43 UTC
Was working on that, needed a few minutes, logs have been attached.

emerge --info:


Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-11.3.0, glibc-2.35-r7, 5.18.3-xanmod1-x86_64 x86_64)
=================================================================
System uname: Linux-5.18.3-xanmod1-x86_64-x86_64-Intel-R-_Pentium-R-_Silver_J5005_CPU_@_1.50GHz-with-glibc2.35
KiB Mem:     7988260 total,    143508 free
KiB Swap:   16777212 total,  16706264 free
Head commit of repository gentoo: e44e80db0e8ebc840f39436c8a95921b8d60e7c5

Timestamp of repository gentoobr: Sun, 12 Jun 2022 08:49:18 +0000
Head commit of repository gentoobr: 000085e080c2efa592ffaf0c2d47509f5084d9b3

Timestamp of repository tmacedo: Tue, 07 Jun 2022 07:05:46 +0000
Head commit of repository tmacedo: 9d4c83f1da56bb0ab69071df4cca70b5d89c2f74

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust:             1.61.0-r1::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.2::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: -1000

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/unifi"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--load-average 3.0"
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 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs 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 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -fuse-linker-plugin"
LINGUAS="en"
MAKEOPTS="-j2"
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 aio amd64 apache2 bash-completion bcmath boost bpf btrfs bzip2 cli crypt curl cxx default-lld deflate dnscrypt down-root ecs exif fpm gd git gmp graphite grub gzip hardened hddtemp headless-awt hostonly hsts http2 iconv idn igbinary imagemagick initramfs innodb inotify intl iproute2 ipv6 jemalloc jit libglvnd libidn2 libtirpc lto lz4 lzma lzo mysql mysqli ncurses nftables nptl opcache openmp openssl pam pcntl pcre pdo pie python readline redis regex resolvconf sasl sctp seccomp sftp sharedmem sodium split-usr sqlite ssl ssp symlink systemd sysv-utils tfo threads tls-heartbeat truetype unicode urandom verify-sig vhost-net xattr xmlreader xmlwriter xtables xtpax zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="unixd http2 remoteip dir proxy proxy_wstunnel proxy_fcgi cache_disk proxy proxy_http proxy_http2 unixd cgid actions alias auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user cache deflate disk_cache env expires ext_filter file_cache filter headers ident include info log_config logio mem_cache negotiation rewrite setenvif so socache_shmcb status unique_id vhost_alias mime" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt rdrand sha 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" 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="php8-0 php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" 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
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-15 14:57:00 UTC
Thanks. I think I also need the config.log from src/modules/rlm_perl/config.log.
Comment 6 Michiel Hazelhof 2022-06-15 14:59:53 UTC
Created attachment 785456 [details]
rlm_perl config.log
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-15 15:01:49 UTC
(In reply to Michiel Hazelhof from comment #6)
> Created attachment 785456 [details]
> rlm_perl config.log

 
configure:3484: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -fwrapv -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -isystem /usr/lib64/perl5/5.36/x86_64-linux/CORE -march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -fno-lto      -march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -fuse-linker-plugin -fno-lto conftest.c -Wl,-E -march=native -O2 -pipe -flto=auto -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-nest-optimize -fgraphite-identity -ftree-vectorize -fuse-linker-plugin -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -fuse-linker-plugin -L/usr/lib64/perl5/5.36/x86_64-linux/CORE -lperl -ldl -lm -lcrypt -lutil -lc  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-dialup/freeradius-3.2.0/temp/ccJqTOWI.o: plugin needed to handle lto object
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-dialup/freeradius-3.2.0/temp/ccJqTOWI.o: plugin needed to handle lto object
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64/Scrt1.o: in function `_start':

Seems like dodgy handling of LTO. Given how fragile the freeradius build is (it's not great), I'm inclined to just strip LTO for it.
Comment 8 Michiel Hazelhof 2022-06-15 15:04:01 UTC
Already compiling it with -fno-lto, just tested it with "-fno-loop-interchange -fno-tree-loop-distribution -fno-loop-strip-mine -fno-loop-nest-optimize -fno-graphite-identity" which didn't change anything either.
Comment 9 Michiel Hazelhof 2022-06-30 15:44:20 UTC
When properly unsetting all graphite and lto flags (not just "-fno"), it works :)