LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   4.15 : error: lib/Kconfig: does not exist in index (https://www.linuxquestions.org/questions/linux-kernel-70/4-15-error-lib-kconfig-does-not-exist-in-index-4175619158/)

DBabo 12-07-2017 06:18 PM

4.15 : error: lib/Kconfig: does not exist in index
 
while attempting to build the 4.15 rc2 kernel on FC25:

Code:

cd ~/rpmbuild/ && rm -rf ./*  &&
rpmdev-setuptree && cp -v ~/Downloads/kernel* ~/rpmbuild/ &&
rpm -Uhv ${src} && cd ~/rpmbuild/SPECS &&
rpmbuild -bp --target=$(uname -m) kernel.spec


"log":
<skip>
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.46lwW6
+ umask 022
+ cd /home/az/rpmbuild/BUILD
+ patch_command='patch -p1 -F1 -s'
++ find /home/az/rpmbuild/BUILD -maxdepth 1 -type d -name 'kernel-4.*'
++ grep -x -v /home/az/rpmbuild/BUILD/kernel-4.14.fc25
+ sharedirs=
+ :
+ '[' -d kernel-4.14.fc25 ']'
+ '[' '!' -d kernel-4.14.fc25/vanilla-4.15-rc2 ']'
+ '[' -d kernel-4.14.fc25/vanilla-4.14 ']'
+ rm -f pax_global_header
+ [[ ! -z '' ]]
+ cd /home/az/rpmbuild/BUILD
+ rm -rf kernel-4.14.fc25
+ /usr/bin/mkdir -p kernel-4.14.fc25
+ cd kernel-4.14.fc25
+ /usr/bin/xz -dc /home/az/rpmbuild/SOURCES/linux-4.14.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mv linux-4.14 vanilla-4.14
+ [[ ! -z '' ]]
+ cp -al vanilla-4.14 vanilla-4.15-rc2
+ cd vanilla-4.15-rc2
+ cp /home/az/rpmbuild/SOURCES/remove-binary-diff.pl .
+ xzcat /home/az/rpmbuild/SOURCES/patch-4.15-rc2.xz
+ patch -p1 -F1 -s
+ ./remove-binary-diff.pl
+ git init
Initialized empty Git repository in /home/az/rpmbuild/BUILD/kernel-4.14.fc25/vanilla-4.15-rc2/.git/
+ git config user.email kernel-team@fedoraproject.org
+ git config user.name 'Fedora Kernel Team'
+ git config gc.auto 0
+ git add .
+ git commit -a -q -m baseline
+ cd ..
+ cp -al vanilla-4.15-rc2 linux-4.15.0-0.rc2.git0.1.fc25.x86_64
+ cd linux-4.15.0-0.rc2.git0.1.fc25.x86_64
+ '[' '!' -d .git ']'
+ git am /home/az/rpmbuild/SOURCES/0001-iio-Use-event-header-from-kernel-tree.patch /home/az/rpmbuild/SOURCES/lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch /home/az/rpmbuild/SOURCES/input-kill-stupid-messages.patch /home/az/rpmbuild/SOURCES/die-floppy-die.patch /home/az/rpmbuild/SOURCES/no-pcspkr-modalias.patch /home/az/rpmbuild/SOURCES/silence-fbcon-logo.patch /home/az/rpmbuild/SOURCES/Kbuild-Add-an-option-to-enable-GCC-VTA.patch /home/az/rpmbuild/SOURCES/crash-driver.patch /home/az/rpmbuild/SOURCES/lis3-improve-handling-of-null-rate.patch /home/az/rpmbuild/SOURCES/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch /home/az/rpmbuild/SOURCES/criu-no-expert.patch /home/az/rpmbuild/SOURCES/ath9k-rx-dma-stop-check.patch /home/az/rpmbuild/SOURCES/xen-pciback-Don-t-disable-PCI_COMMAND-on-PCI-device-.patch /home/az/rpmbuild/SOURCES/Input-synaptics-pin-3-touches-when-the-firmware-repo.patch /home/az/rpmbuild/SOURCES/efi-lockdown.patch /home/az/rpmbuild/SOURCES/KEYS-Allow-unrestricted-boot-time-addition-of-keys-t.patch /home/az/rpmbuild/SOURCES/Add-EFI-signature-data-types.patch /home/az/rpmbuild/SOURCES/Add-an-EFI-signature-blob-parser-and-key-loader.patch /home/az/rpmbuild/SOURCES/MODSIGN-Import-certificates-from-UEFI-Secure-Boot.patch /home/az/rpmbuild/SOURCES/MODSIGN-Support-not-importing-certs-from-db.patch /home/az/rpmbuild/SOURCES/disable-i8042-check-on-apple-mac.patch /home/az/rpmbuild/SOURCES/drm-i915-hush-check-crtc-state.patch /home/az/rpmbuild/SOURCES/usb-phy-tegra-Add-38.4MHz-clock-table-entry.patch /home/az/rpmbuild/SOURCES/arm-revert-mmc-omap_hsmmc-Use-dma_request_chan-for-reque.patch /home/az/rpmbuild/SOURCES/ARM-tegra-usb-no-reset.patch /home/az/rpmbuild/SOURCES/arm-imx6-hummingboard2.patch /home/az/rpmbuild/SOURCES/arm64-Add-option-of-13-for-FORCE_MAX_ZONEORDER.patch /home/az/rpmbuild/SOURCES/qcom-msm89xx-fixes.patch /home/az/rpmbuild/SOURCES/USB-ulpi-fix-bus-node-lookup.patch /home/az/rpmbuild/SOURCES/bcm283x-dma-mapping-skip-USB-devices-when-configuring-DMA-during-probe.patch /home/az/rpmbuild/SOURCES/arm64-socionext-96b-enablement.patch /home/az/rpmbuild/SOURCES/0010-Input-silead-Add-support-for-capactive-home-button-f.patch /home/az/rpmbuild/SOURCES/Fix-for-module-sig-verification.patch /home/az/rpmbuild/SOURCES/input-rmi4-remove-the-need-for-artifical-IRQ.patch /home/az/rpmbuild/SOURCES/v3-2-2-Input-synaptics---Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch /home/az/rpmbuild/SOURCES/0001-Bluetooth-btusb-Add-a-Kconfig-option-to-enable-USB-a.patch /home/az/rpmbuild/SOURCES/0001-HID-multitouch-Properly-deal-with-Win8-PTP-reports-w.patch /home/az/rpmbuild/SOURCES/0002-HID-multitouch-Only-look-at-non-touch-fields-in-firs.patch /home/az/rpmbuild/SOURCES/0003-HID-multitouch-Combine-all-left-button-events-in-a-f.patch
Applying: iio: Use type header from kernel tree
Applying: lib/cpumask: Make CPUMASK_OFFSTACK usable without debug dependency
error: lib/Kconfig: does not exist in index
Patch failed at 0002 lib/cpumask: Make CPUMASK_OFFSTACK usable without debug dependency
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
error: Bad exit status from /var/tmp/rpm-tmp.46lwW6 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.46lwW6 (%prep)


cd ./rpmbuild/BUILD/kernel-4.14.fc25/linux-4.15.0-0.rc2.git0.1.fc25.x86_64
[az@netdev linux-4.15.0-0.rc2.git0.1.fc25.x86_64]$ ls -l .git/rebase-apply/patch
-rw-r--r-- 1 az az 512 Dec  7 19:07 .git/rebase-apply/patch
[az@netdev linux-4.15.0-0.rc2.git0.1.fc25.x86_64]$ more  .git/rebase-apply/patch
---
 lib/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index 3a2ef67db6c7..4af1e7e5a611 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -396,7 +396,8 @@ config CHECK_SIGNATURE
        bool
 
 config CPUMASK_OFFSTACK
-        bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
+        bool "Force CPU masks off stack"
+        depends on SMP
        help
          Use dynamic allocation for cpumask_var_t, instead of putting
          them on the stack.  This is a bit more expensive, but avoids
[az@netdev linux-4.15.0-0.rc2.git0.1.fc25.x86_64]$

If i skip it fails again:
Code:

git am --skip
Applying: input: kill stupid messages
Applying: die-floppy-die
Applying: no pcspkr modalias
Applying: silence fbcon logo
Applying: Kbuild: Add an option to enable GCC VTA
error: lib/Kconfig.debug: does not exist in index
Patch failed at 0007 Kbuild: Add an option to enable GCC VTA
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".



I'm not sure what to do @ this point.

Appreciate our advice

Mara 12-13-2017 04:00 PM

Are you sure the the kernel source file you've downloaded is the right one? The lib/Kconfig file does exist in the latest git repo so it's strange that it fails to get patched (the later error is of the same type).

Could you just list what you have in your kernel git? Simple ls will be enough

DBabo 12-13-2017 05:09 PM

Mara,
Thank you for responding.
I got the source by installing srpm. So unless the maintainer messed somth up...

I excluded these "offending" patches from the kernel.spec and compilation went thru.

Also. This source is for rc2. I think they put out rc3 already - may explain the discrepancies.

Mara 12-17-2017 03:09 PM

If some of the patches were creating problems it means that you were out of luck and got a non-working version. Good to hear that it's fine now. You may try to re-download or check a tagged version for a specific release maybe.


All times are GMT -5. The time now is 03:49 AM.