i am new to gentoo, and i am getting stuck trying to install a distribution kernel.
i have tried compiling a distribution kernel to the same effect.
here is the error i get from portage:
Code: Select all
ERROR: Installing 6.18.33-p1-gentoo-dist failed
*
* The kernel was not deployed successfully. Inspect the failure
* in the logs above and once you resolve the problems please
* run the equivalent of the following command to try again:
*
* emerge --config '=sys-kernel/gentoo-kernel-bin-6.18.33_p1:6.18.33_p1'
* ERROR: sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo failed (postinst phase):
* Kernel install failed, please fix the problems and run emerge --config
*
* Call stack:
* ebuild.sh, line 143: Called pkg_postinst
* environment, line 1349: Called kernel-install_pkg_postinst
* environment, line 1060: Called kernel-install_install_all '6.18.33-p1-gentoo-dist'
* environment, line 1046: Called dist-kernel_install_kernel '6.18.33-p1-gentoo-dist' '/usr/src/linux-6.18.33-p1-gentoo-dist/arch/x86/boot/bzImage' '/usr/src/linux-6.18.33-p1-gentoo-dist/System.map'
* environment, line 704: Called die
* The specific snippet of code:
* die "Kernel install failed, please fix the problems and run emerge --config";
*
* If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/temp/environment'.
* Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/empty'
* S: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/work'
* FAILED postinst: 1
>>> Completed (1 of 1) sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo
>>> Failed to install sys-kernel/gentoo-kernel-bin-6.18.33_p1, Log file:
>>> '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/temp/build.log'
* Messages for package sys-kernel/gentoo-kernel-bin-6.18.33_p1:
* FAILED postinst: 1
* The kernel was not deployed successfully. Inspect the failure
* in the logs above and once you resolve the problems please
* run the equivalent of the following command to try again:
* emerge --config '=sys-kernel/gentoo-kernel-bin-6.18.33_p1:6.18.33_p1'
* ERROR: sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo failed (postinst phase):
* Kernel install failed, please fix the problems and run emerge --config
* Call stack:
* ebuild.sh, line 143: Called pkg_postinst
* environment, line 1349: Called kernel-install_pkg_postinst
* environment, line 1060: Called kernel-install_install_all '6.18.33-p1-gentoo-dist'
* environment, line 1046: Called dist-kernel_install_kernel '6.18.33-p1-gentoo-dist' '/usr/src/linux-6.18.33-p1-gentoo-dist/arch/x86/boot/bzImage' '/usr/src/linux-6.18.33-p1-gentoo-dist/System.map'
* environment, line 704: Called die
* The specific snippet of code:
* die "Kernel install failed, please fix the problems and run emerge --config";
* If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/temp/environment'.
* Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/empty'
* S: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.33_p1/work'
* GNU info directory index is up-to-date.
* IMPORTANT: 30 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Code: Select all
Portage 3.0.79 (python 3.14.4-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-2.42-r7, 7.0.5-gentoo-dist x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-7.0.5-gentoo-dist-x86_64-Intel-R-_Core-TM-_i5-4570S_CPU_@_2.90GHz-with-glibc2.42
KiB Mem: 8031948 total, 595608 free
KiB Swap: 16777212 total, 14560748 free
Timestamp of repository gentoo: Sun, 07 Jun 2026 00:45:00 +0000
Head commit of repository gentoo: ff3640217a02c399a61fdb1680cc964f63684843
sh bash 5.3_p9-r1
ld GNU ld (Gentoo 2.46.0 p1) 2.46.0
app-misc/pax-utils: 1.3.10::gentoo
app-shells/bash: 5.3_p9-r1::gentoo
dev-build/autoconf: 2.72-r7::gentoo
dev-build/automake: 1.18.1-r1::gentoo
dev-build/cmake: 4.3.3::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r102::gentoo
dev-build/meson: 1.10.2::gentoo
dev-lang/perl: 5.42.0-r1::gentoo
dev-lang/python: 3.13.13_p1::gentoo, 3.14.4_p1::gentoo
dev-lang/rust-bin: 1.93.1::gentoo
llvm-core/clang: 21.1.8::gentoo
llvm-core/llvm: 21.1.8::gentoo
sys-apps/baselayout: 2.18-r1::gentoo
sys-apps/openrc: 0.63.1::gentoo
sys-apps/sandbox: 2.46::gentoo
sys-devel/binutils: 2.46.0::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc: 15.2.1_p20260214::gentoo
sys-devel/gcc-config: 2.12.2::gentoo
sys-kernel/linux-headers: 6.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.42-r7::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-verify-metamanifest: yes
sync-rsync-extra-opts:
Binary Repositories:
gentoo
location: /var/cache/binhost/gentoo
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
verify-signature: True
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-O2 -march=native -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_DIRS XDG_CONFIG_HOME XDG_DATA_DIRS XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-index 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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"
RUSTFLAGS=" -C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 avif bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg jpegxl lcms libnotify libtirpc mad mng modules-sign mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio qml readline screencast sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland webp wxwidgets x264 xattr xcb xft xml xv zlib" ABI_X86="64" ADA_TARGET="gcc_15" 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 bmi1 bmi2 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 oncore skytraq superstar2 tsip tripmate tnt" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_14" PYTHON_TARGETS="python3_14" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo was built with the following:
USE="initramfs -debug (-generic-uki) -modules-compress -test -verify-sig" ABI_X86="(64)"
https://dpaste.com/FAQ8BS64V
output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.18.33_p1::gentoo'`:
Code: Select all
[ebuild R ] sys-kernel/gentoo-kernel-bin-6.18.33_p1 USE="initramfs -debug (-generic-uki) -modules-compress -test -verify-sig"
* IMPORTANT: 30 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.


