From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6381B7F for ; Fri, 21 Jul 2023 03:30:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AD20C433C8 for ; Fri, 21 Jul 2023 03:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689910244; bh=P3Y0G8/zzL+Nhngt7XtAvkZnhEiGjeTZy9ZP98jV8+c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TaKDXTTI0MEadIT8proVhhnPM/KEjCQ9oUz0S5kAB/Lnlw2hpfi+3PwCV15q9zXB9 JeYB1j01UxMrZi4l/2+x29bBaMCmKIPJqnToeUKjYKa7IQnoWob8FkhgKRc0VK4x6h xXY2hltxIS+KstWggXPV+oEobwJYpakq0MiHYIb0ApnlC3Q9lq5mlbPPEOACInsw3L DuKedrqfIvxer1OvzGfbCYf1eGtP949HQNnlLJ6mSUkeV2MVxqVgjl6zLuKg4qCur4 4e+SOwI85PcpmBrLXcF/jehA84NS/EPPRi/vWj8e66QFOsVwROWyDXAwranCht09Wn 2lI3BVbnE/0PQ== Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5658573b1faso968047eaf.1 for ; Thu, 20 Jul 2023 20:30:44 -0700 (PDT) X-Gm-Message-State: ABy/qLZqu8OdJZhVKrzLEdx/lfI5QyYuojBlNg+UZDUa1eLE89B7Bwjk e1jojofCA1/uiEsfGwf1ze3CIzV80pdM/YxN9NM= X-Google-Smtp-Source: APBJJlEbukEvjQ2n/VPRmQTsiDSn1rOtzwNlK20fmI6AD+8Ik06WmpFrbwE3agD/3iKtnFrfOfMCDsb7Ni807E5NnxQ= X-Received: by 2002:a4a:344a:0:b0:566:efc9:1464 with SMTP id n10-20020a4a344a000000b00566efc91464mr767853oof.0.1689910243449; Thu, 20 Jul 2023 20:30:43 -0700 (PDT) Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Fri, 21 Jul 2023 12:30:07 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 6.4.4 breaks module-free builds of Debian kernel packages To: Bagas Sanjaya Cc: Josh Triplett , Nicolas Schier , Sasha Levin , Brian Lindholm , Linux Kernel Mailing List , Linux Regressions , Linux Stable , Linux Kernel Build System Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jul 21, 2023 at 12:19=E2=80=AFPM Bagas Sanjaya wrote: > > Hi, > > I notice a regression report on Bugzilla [1]. Quoting from it: > > > I'm on AMD64 with Debian testing (trixie), where I build my own kernels= (with CONFIG_MODULES unset) using "make bindeb-pkg". The build proceeds th= rough 99% of the process, but fails here: > > > > Kernel: arch/x86/boot/bzImage is ready (#2) > > make -f ./Makefile ARCH=3Dx86 KERNELRELEASE=3D6.4.4-i5 intdeb-pkg > > sh ./scripts/package/builddeb > > *** > > *** The present kernel configuration has modules disabled. > > *** To use the module feature, please run "make menuconfig" etc. > > *** to enable CONFIG_MODULES. > > *** > > make[5]: *** [Makefile:1969: modules_install] Error 1 > > make[4]: *** [scripts/Makefile.package:150: intdeb-pkg] Error 2 > > make[3]: *** [Makefile:1657: intdeb-pkg] Error 2 > > make[2]: *** [debian/rules:16: binary-arch] Error 2 > > dpkg-buildpackage: error: debian/rules binary subprocess returned exit = status 2 > > make[1]: *** [scripts/Makefile.package:139: bindeb-pkg] Error 2 > > make: *** [Makefile:1657: bindeb-pkg] Error 2 > > > > 6.3.13 contained the same error, but I "fixed" that by moving to 6.4.3.= But alas, 6.4.4 now has the same issue. > > > > I worked around the issue by changing "exit 1" to "exit 0" in the main = Makefile (at "modules module_install", per the attached patch), but I don't= know if this is a true fix or something that simply happens to work for my= particular configuration. > > See Bugzilla for the full thread and attached patch that ignores the erro= r. > > Josh: It looks like this regression is caused by a commit of yours > (and also 1240dabe8d58b4). Would you like to take a look on it? > > Anyway, I'm adding this regression to be tracked by regzbot: > > #regzbot introduced: 4243afdb932677 https://bugzilla.kernel.org/show_bug.= cgi?id=3D217689 > #regzbot title: always doing modules_install breaks CONFIG_MODULES=3Dn bu= ilds > > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=3D217689 > > -- > An old man doll... just what I always wanted! - Clara The following commit must be back-ported. commit 8ae071fc216a25f4f797f33c56857f4dd6b4408e Author: Masahiro Yamada Date: Thu Jun 15 20:17:43 2023 +0900 kbuild: make modules_install copy modules.builtin(.modinfo) --=20 Best Regards Masahiro Yamada