Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-kernel - new slot - distribution kernel - build error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 85

PostPosted: Thu Feb 20, 2025 8:11 am    Post subject: gentoo-kernel - new slot - distribution kernel - build error Reply with quote

Hello!

I tried to update my world set, but the new kernel slot fails to build. I can still use the machine as I have an older kernel available.

I am using a distribution kernel, so no manual configuration. dracut is enabled on sys-kernel/installkernel.

The error message is:
Code:
+ x86_64-pc-linux-gnu-ld.bfd -m elf_x86_64 -z noexecstack --no-warn-rwx-segments --emit-relocs --discard-none -z max-page-size=0x200000 --build-id=sha1 -X --orphan-handling=warn --script=./arch/x86/kernel/vmlinux.lds --strip-debug -o .tmp_vmlinux.kallsyms1 --whole-archive vmlinux.o .vmlinux.export.o init/version-timestamp.o --no-whole-archive --start-group --end-group .btf.vmlinux.bin.o
.btf.vmlinux.bin.o: file not recognized: file format not recognized
make[3]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.6.74/work/linux-6.6/scripts/Makefile.vmlinux:37: vmlinux] Error 1
make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.6.74/work/linux-6.6/Makefile:1171: vmlinux] Error 2
make[1]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.6.74/work/linux-6.6/Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-kernel/gentoo-kernel-6.6.74/work/build'
make: *** [Makefile:234: __sub-make] Error 2


The world set update would merge as follows:

Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 42.72 s (backtrack: 0/20).

[ebuild  NS    ] sys-kernel/gentoo-kernel-6.6.74:6.6.74::gentoo [6.6.51:6.6.51::gentoo] USE="debug* initramfs strip -experimental (-generic-uki) -hardened -modules-compress -modules-sign -savedconfig -secureboot -test" 0 KiB
[ebuild     U  ] virtual/dist-kernel-6.6.74:0/6.6.74::gentoo [6.6.51:0/6.6.51::gentoo] 0 KiB
[ebuild     U  ] sys-firmware/intel-microcode-20250211_p20250211::gentoo [20240813_p20240815::gentoo] USE="dist-kernel initramfs split-ucode -hostonly -vanilla" 0 KiB
[ebuild     U  ] sys-kernel/linux-firmware-20250211::gentoo [20240909-r1::gentoo] USE="dist-kernel initramfs redistributable -bindist -compress-xz -compress-zstd -deduplicate -savedconfig (-unknown-license)" 0 KiB

Total: 4 packages (3 upgrades, 1 in new slot), Size of downloads: 0 KiB


Here I was wondering why the use flag "debug" was active on a stable kernel
and found that in
/var/db/repos/gentoo/profiles/arch/amd64/package.use :
Code:
# Michał Górny <mgorny@gentoo.org> (2024-09-04)
# Build with debugging support by default to facilitate dev-debug/dtrace
# and sys-apps/systemd[bpf].
>=sys-kernel/gentoo-kernel-6.6.53 debug
>=sys-kernel/vanilla-kernel-6.6.53 debug


The kernel 6.6.74 slot was marked as stable for amd64 on (link)


So I am currently trying to build without the debug use flag. But unsure if this will be a/the solution.
If you have any other hints, they will be highly appreciated!
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 85

PostPosted: Thu Feb 20, 2025 1:16 pm    Post subject: Reply with quote

Update:

Setting
Code:
sys-kernel/gentoo-kernel -debug

in file /etc/portage/package.use/gentoo-kernel
solves this build issue and the kernel was successfully booted.

So I assume that the default profile
Code:
default/linux/amd64/23.0 (stable)

which inherits the debug use flag from /var/db/repos/gentoo/profiles/arch/amd64
is buggy here.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2163

PostPosted: Fri Feb 21, 2025 12:28 am    Post subject: Reply with quote

In general, if the starting proposition is "the default is buggy", then the proposition is likely flawed.

Please show us the full build.log and emerge --info.
Back to top
View user's profile Send private message
Markus09
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2013
Posts: 85

PostPosted: Fri Feb 21, 2025 11:47 am    Post subject: Reply with quote

I restarted the build with the debug use flag. I will post the build.log when it is available.
It will take some time on this older PC.

emerge --info:
Code:
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0, gcc-14, glibc-2.40-r8, 6.6.74-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.74-gentoo-dist-x86_64-Intel-R-_Celeron-R-_CPU_J1900_@_1.99GHz-with-glibc2.40
KiB Mem:     3706868 total,    526128 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Mon, 17 Feb 2025 11:45:00 +0000
Head commit of repository gentoo: b3323239d99af1bd4898f03ec40f9734015d85e1
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.6.1::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.11.11_p1::gentoo, 3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust-bin:         1.83.0-r1::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.12.1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::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-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE linux-fw-redistributable intel-ucode"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
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 -O2 -pipe"
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 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 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
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 bzip2 cet crypt dist-kernel gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp ssl test-rust unicode 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 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" GRUB_PLATFORMS="efi-64" 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="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, 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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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