Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938725 - sys-kernel/gentoo-kernel-6.6.48 fails to configure
Summary: sys-kernel/gentoo-kernel-6.6.48 fails to configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-08-30 07:30 UTC by Xavier Miller
Modified: 2024-08-31 14:27 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller 2024-08-30 07:30:27 UTC
[ebuild  NS    ] sys-kernel/gentoo-kernel-6.6.48:6.6.48::gentoo [6.6.47:6.6.47::gentoo] USE="(savedconfig) strip -debug (-generic-uki) -hardened -initramfs -modules-compress -modules-sign (-secureboot) -test" 0 KiB                       
[ebuild     U  ] virtual/dist-kernel-6.6.48:0/6.6.48::gentoo [6.6.47:0/6.6.47::gentoo] 0 KiB                                                                                                                                                 


I have config files in /etc/portage/savedconfig but it says there is no default .config...


>>> Source prepared.                                                                                                                                                                                                                         
>>> Configuring source in /var/tmp/portage-notmpfs/portage/sys-kernel/gentoo-kernel-6.6.48/work/linux-6.6 ...
 * ERROR: sys-kernel/gentoo-kernel-6.6.48::gentoo failed (configure phase):
 *   Ebuild error: please copy default config into .config
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 3290:  Called kernel-build_src_configure
 *   environment, line 1859:  Called die
 * The specific snippet of code:
 *       [[ -f .config ]] || die "Ebuild error: please copy default config into .config";
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-6.6.48::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-6.6.48::gentoo'`.
 * The complete build log is located at '/var/tmp/portage-notmpfs/portage/sys-kernel/gentoo-kernel-6.6.48/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage-notmpfs/portage/sys-kernel/gentoo-kernel-6.6.48/temp/environment'.
 * Working directory: '/var/tmp/portage-notmpfs/portage/sys-kernel/gentoo-kernel-6.6.48/work/linux-6.6'
 * S: '/var/tmp/portage-notmpfs/portage/sys-kernel/gentoo-kernel-6.6.48/work/linux-6.6'


Reproducible: Always




(this is a ARM7 build root in a RK3399 board)

# emerge --info '=sys-kernel/gentoo-kernel-6.6.48::gentoo'
Portage 3.0.65 (python 3.12.5-final-0, default/linux/arm/23.0/armv7a_hf, gcc-14, glibc-2.40, 6.10.6 armv8l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.10.6-armv8l-ARMv8_Processor_rev_4_-v8l-with-glibc2.40
KiB Mem:     3852180 total,    220696 free
KiB Swap:   16777396 total,  16529332 free
Timestamp of repository gentoo: Fri, 30 Aug 2024 03:19:00 +0000
Timestamp of repository guru: Wed, 28 Aug 2024 15:18:56 +0000
sh bash 5.2_p32-r1
ld GNU ld (Gentoo 2.43 p2) 2.43.1
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p32-r1::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.30.2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.5_p1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20240817::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.10::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40::gentoo
Repositories:

gentoo
    location: /var/portage/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

audio-overlay
    location: /var/portage/repos/audio-overlay
    masters: gentoo
    volatile: True

guru
    location: /var/portage/repos/guru
    masters: gentoo
    volatile: True

inode64-overlay
    location: /var/portage/repos/inode64-overlay
    masters: gentoo
    volatile: True

local
    location: /usr/local/portage
    masters: gentoo
    volatile: True

crossdev
    location: /data/nas/xavier/portage/helios4/var/db/repos/crossdev
    masters: gentoo
    priority: 10
    volatile: True

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -mtune=cortex-a9 -marm -march=armv7-a+mp+sec+neon-fp16"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/zigbee2mqtt"
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="-O2 -pipe -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -mtune=cortex-a9 -marm -march=armv7-a+mp+sec+neon-fp16"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg"
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=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live candy 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="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LEX="flex"
LINGUAS="fr fr-BE fr-FR nl nl-BE nl-NL en en-GB en-US"
MAKEOPTS="-j5 -l7"
PKGDIR="/var/portage/packages"
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"
USE="arm armv7 bzip2 crypt exif gif headless-awt iconv jpeg lzma mysql ncurses nls openmp openssl pam pcre pdf png pnm readline seccomp sqlite ssl svg system-bootstrap system-llvm test-rust tiff truetype unicode xattr zlib zstd" ADA_TARGET="gcc_12" 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_ARM="edsp neon thumb vfp vfpv3 vfp-d32 v4 v5 v6 v7 thumb2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip 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" L10N="fr fr-BE fr-FR nl nl-BE nl-NL en en-GB en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="exynos fbdev omap 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Andrew Nowa Ammerlaan gentoo-dev 2024-08-30 12:07:52 UTC
Could you please share the full build log?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-30 12:15:04 UTC
Sorry about that.  I guess this was broken by:

commit e290c3c78b7acb59393f46d1d15175d6dbfc77da
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-08-21 17:19:07 +0200
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-08-23 21:25:40 +0200

    kernel-build.eclass: Apply savedconfig on top of merged configs
Comment 3 Andrew Nowa Ammerlaan gentoo-dev 2024-08-30 13:11:51 UTC
Please let us know if [1] resolves your problem

[1] https://github.com/gentoo/gentoo/pull/38345
Comment 4 Xavier Miller 2024-08-30 18:03:05 UTC
(In reply to Andrew Nowa Ammerlaan from comment #3)
> Please let us know if [1] resolves your problem
> 
> [1] https://github.com/gentoo/gentoo/pull/38345

I don't know how to apply this PR locally. It fails as if the PR is already merge in main branch...

However it stills fails with the same error:

 * ERROR: sys-kernel/gentoo-kernel-6.6.48::gentoo failed (configure phase):                                                                                                                                                                  
 *   Ebuild error: please copy default config into .config                                                                                                                                                                                   
 *
Comment 5 Larry the Git Cow gentoo-dev 2024-08-30 19:10:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=622df249fa49dde6589ed2ce35729e17fd6452fe

commit 622df249fa49dde6589ed2ce35729e17fd6452fe
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-08-30 12:49:41 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-08-30 19:07:04 +0000

    sys-kernel/gentoo-kernel: fix applying savedconfig on alt arches
    
    On arches where we do not supply a default .config will still want to
    call kernel-build_merge_configs to apply the savedconfig. Otherwise we
    end up with no .config in src_configure.
    
    Closes: https://bugs.gentoo.org/938725
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sys-kernel/gentoo-kernel/gentoo-kernel-5.10.224.ebuild |  9 +++------
 sys-kernel/gentoo-kernel/gentoo-kernel-5.15.165.ebuild | 12 +++---------
 sys-kernel/gentoo-kernel/gentoo-kernel-6.1.106.ebuild  | 15 +++------------
 sys-kernel/gentoo-kernel/gentoo-kernel-6.1.107.ebuild  | 15 +++------------
 sys-kernel/gentoo-kernel/gentoo-kernel-6.10.6.ebuild   | 18 +++---------------
 sys-kernel/gentoo-kernel/gentoo-kernel-6.10.7.ebuild   | 18 +++---------------
 sys-kernel/gentoo-kernel/gentoo-kernel-6.6.47.ebuild   | 18 +++---------------
 sys-kernel/gentoo-kernel/gentoo-kernel-6.6.48.ebuild   | 18 +++---------------
 8 files changed, 24 insertions(+), 99 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab1966158bb6c39b523383122f346b5eb9f9c13a

commit ab1966158bb6c39b523383122f346b5eb9f9c13a
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-08-30 12:45:17 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-08-30 19:06:57 +0000

    sys-kernel/vanilla-kernel: fix applying savedconfig on arm, hppa, loong
    
    On arches where we do not supply a default .config will still want to
    call kernel-build_merge_configs to apply the savedconfig. Otherwise we
    end up with no .config in src_configure.
    
    Bug: https://bugs.gentoo.org/938725
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sys-kernel/vanilla-kernel/vanilla-kernel-5.10.224.ebuild  |  9 +++------
 sys-kernel/vanilla-kernel/vanilla-kernel-5.10.9999.ebuild |  9 +++------
 sys-kernel/vanilla-kernel/vanilla-kernel-5.15.165.ebuild  |  9 +++------
 sys-kernel/vanilla-kernel/vanilla-kernel-5.15.9999.ebuild |  9 +++------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.1.106.ebuild   |  9 +++------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.1.107.ebuild   |  9 +++------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.10.6.ebuild    | 12 +++---------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.10.7.ebuild    | 12 +++---------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.6.47.ebuild    | 12 +++---------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.6.48.ebuild    | 12 +++---------
 sys-kernel/vanilla-kernel/vanilla-kernel-6.6.9999.ebuild  | 12 +++---------
 11 files changed, 33 insertions(+), 81 deletions(-)
Comment 6 Andrew Nowa Ammerlaan gentoo-dev 2024-08-30 19:12:47 UTC
(In reply to Xavier Miller from comment #4)
> (In reply to Andrew Nowa Ammerlaan from comment #3)
> > Please let us know if [1] resolves your problem
> > 
> > [1] https://github.com/gentoo/gentoo/pull/38345
> 
> I don't know how to apply this PR locally. It fails as if the PR is already
> merge in main branch...
> 
> However it stills fails with the same error:
> 
>  * ERROR: sys-kernel/gentoo-kernel-6.6.48::gentoo failed (configure phase): 
> 
>  *   Ebuild error: please copy default config into .config                  
> 
>  *

I've merged my patch as I am pretty confident it will resolve your problem. Please try if it works now, and re-open this bug if not.
Comment 7 Xavier Miller 2024-08-31 14:27:41 UTC
(In reply to Andrew Nowa Ammerlaan from comment #6)
> I've merged my patch as I am pretty confident it will resolve your problem.
> Please try if it works now, and re-open this bug if not.

Hi! It's compiling now. Thanks!