Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error emerging sys-apps/keyutils
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Mh7tiger
n00b
n00b


Joined: 29 Apr 2024
Posts: 24

PostPosted: Mon Jan 20, 2025 6:03 am    Post subject: Error emerging sys-apps/keyutils Reply with quote

Hi, I am on LLVM stage3 and profile and now can't compile sys-apps/keyutils:

Output of
Code:
emerge --info '=sys-apps/keyutils-1.6.3-r1::gentoo'
:
Code:
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/llvm, gcc-14, glibc-2.40-r5, 6.6.67-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.67-gentoo-dist-x86_64-Intel-R-_Core-TM-_i5-6300HQ_CPU_@_2.30GHz-with-glibc2.40
KiB Mem:     7979356 total,    822976 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 19 Jan 2025 00:45:00 +0000
Head commit of repository gentoo: 31c1a238c60eaa092cb674008c77d0644dde09e5
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.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.8::gentoo, 3.13.1::gentoo
llvm-core/clang:           19.1.4::gentoo
llvm-core/lld:             19.1.4::gentoo
llvm-core/llvm:            19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::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-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1

Binary Repositories:

gentoobinhost
    priority: 9999
    sync-uri: http://ftp.fi.muni.cz/pub/linux/gentoo/releases/amd64/binpackages/23.0/x86-64_llvm

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=native -O3 -pipe -flto=thin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=native -O3 -pipe -flto=thin"
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="-march=native -O3 -pipe -flto=thin"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks 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 sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe -flto=thin"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed"
LEX="flex"
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"
RUSTFLAGS="-C target-cpu=native -C linker-plugin-lto"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="acl amd64 bzip2 cet clang crypt dist-kernel elogind gdbm iconv intel ipv6 jemalloc kde libtirpc llvm-libunwind lto multilib ncurses networkmanager nls nvidia openmp pam pcre pgo pipewire pulseaudio readline seccomp ssl tcmalloc test-rust unicode vulkan wayland xattr zlib" ABI_X86="64" ADA_TARGET="gcc_13" 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="glibc" 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="libinput" KERNEL="linux" 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="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy nvidia" 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, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YACC, YFLAGS


The build log:
Code:
 * Package:    sys-apps/keyutils-1.6.3-r1:0/1.9
 * Repository: gentoo
 * Maintainer: robbat2@gentoo.org base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     6.6.67-gentoo-dist
 * Checking for suitable kernel configuration options ...                                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking keyutils-1.6.3.tar.gz to /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work
>>> Source unpacked in /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work
>>> Preparing source in /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3 ...
 * Applying keyutils-1.6-makefile-fixup.patch ...                                                                                                                                    [ ok ]
 * Applying keyutils-1.5.10-disable-tests.patch ...                                                                                                                                  [ ok ]
 * Applying keyutils-1.5.9-header-extern-c.patch ...
patching file keyutils.h
Hunk #1 succeeded at 19 with fuzz 2 (offset 4 lines).
Hunk #2 succeeded at 283 with fuzz 2 (offset 99 lines).                                                                                                                              [ ok ]
 * Applying keyutils-1.6.3-fix-rpmspec-check.patch ...                                                                                                                               [ ok ]
 * Applying keyutils-1.6.3-tests.patch ...                                                                                                                                           [ ok ]
 * Will copy sources from /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3
 * abi_x86_64.amd64: copying to /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3-abi_x86_64.amd64
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j4 PREFIX=/usr ETCDIR=/etc BINDIR=/bin SBINDIR=/sbin SHAREDIR=/usr/share/keyutils MANDIR=/usr/share/man INCLUDEDIR=/usr/include LIBDIR=/usr/lib64 USRLIBDIR=/usr/lib64 'CFLAGS=-march=native -O3 -pipe -flto=thin' 'CXXFLAGS=-march=native -O3 -pipe -flto=thin' RPATH= BUILDFOR= NO_ARLIB=1
clang -I. -DPKGBUILD="\"2025-01-20\"" -DPKGVERSION="\"keyutils-1.6.3\"" -DAPIVERSION="\"libkeyutils-1.10\"" -march=native -O3 -pipe -flto=thin -fPIC -o keyutils.os -c keyutils.c
clang -I. -march=native -O3 -pipe -flto=thin -o keyctl_testing.o -c keyctl_testing.c
clang -I. -march=native -O3 -pipe -flto=thin -o keyctl_watch.o -c keyctl_watch.c
clang -I. -march=native -O3 -pipe -flto=thin -o request-key.o -c request-key.c
clang -I. -march=native -O3 -pipe -flto=thin -o keyctl.o -c keyctl.c
clang -I. -march=native -O3 -pipe -flto=thin -o key.dns_resolver.o -c key.dns_resolver.c
clang++ -I. -march=native -O3 -pipe -flto=thin -x c++-header -fsyntax-only keyutils.h
touch cxx.stamp
clang -I. -march=native -O3 -pipe -flto=thin -o dns.afsdb.o -c dns.afsdb.c
clang -march=native -O3 -pipe -flto=thin -fPIC -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -shared -Wl,-soname,libkeyutils.so.1 -Wl,--version-script,version.lds -o libkeyutils.so.1.10 keyutils.os
ld.lld: error: version script assignment of 'KEYUTILS_1.7' to symbol 'keyctl_restrict' failed: symbol not defined
ld.lld: error: version script assignment of 'KEYUTILS_1.7' to symbol 'keyctl_dh_compute_kdf_alloc' failed: symbol not defined
ld.lld: warning: attempt to reassign symbol 'keyctl_pkey_query' of version 'KEYUTILS_1.6' to version 'KEYUTILS_1.8'
ld.lld: warning: attempt to reassign symbol 'keyctl_pkey_encrypt' of version 'KEYUTILS_1.6' to version 'KEYUTILS_1.8'
ld.lld: warning: attempt to reassign symbol 'keyctl_pkey_decrypt' of version 'KEYUTILS_1.6' to version 'KEYUTILS_1.8'
ld.lld: warning: attempt to reassign symbol 'keyctl_pkey_sign' of version 'KEYUTILS_1.6' to version 'KEYUTILS_1.8'
ld.lld: warning: attempt to reassign symbol 'keyctl_pkey_verify' of version 'KEYUTILS_1.6' to version 'KEYUTILS_1.8'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:138: libkeyutils.so.1.10] Error 1
 * ERROR: sys-apps/keyutils-1.6.3-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-apps/keyutils-1.6.3-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/keyutils-1.6.3-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/keyutils-1.6.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/keyutils-1.6.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-apps/keyutils-1.6.3-r1/work/keyutils-1.6.3'

Output of
Code:
emerge -pqv '=sys-apps/keyutils-1.6.3-r1::gentoo'
:
Code:

Local copy of remote index is up-to-date and will be used.
[ebuild  N    ] sys-apps/keyutils-1.6.3-r1  USE="-static -static-libs -test" ABI_X86="(64) -32 (-x32)"

 * IMPORTANT: 20 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Please how can this be fixed? Thanks in advance.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31431
Location: here

PostPosted: Mon Jan 20, 2025 6:23 am    Post subject: Reply with quote

Look sys-apps/keyutils-1.6.3 - [clang] ld.lld: error: version script assignment of KEYUTILS_1.7 to symbol keyctl_restrict failed: symbol not defined bug.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Mh7tiger
n00b
n00b


Joined: 29 Apr 2024
Posts: 24

PostPosted: Mon Jan 20, 2025 7:54 am    Post subject: Reply with quote

fedeliallalinea wrote:
Look sys-apps/keyutils-1.6.3 - [clang] ld.lld: error: version script assignment of KEYUTILS_1.7 to symbol keyctl_restrict failed: symbol not defined bug.

Thank you very much, this solved my issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum