LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-07-2017, 06:18 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
Question 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

Last edited by DBabo; 12-07-2017 at 06:25 PM.
 
Old 12-13-2017, 04:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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
 
Old 12-13-2017, 05:09 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
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.
 
Old 12-17-2017, 03:09 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


Reply

Tags
4.15rc2, rpmbuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lib/firmware directory does not exist Ongbuntu Slackware 2 09-19-2013 02:23 AM
insmod Error inserting `/lib/raid456.ko` -1 File Exist Saed.Abdu Red Hat 3 06-08-2011 01:08 AM
kernel make [scripts/kconfig/mconf] Error 1 hemi_426 Slackware 3 05-27-2008 12:36 AM
kernel make [scripts/kconfig/mconf] Error 1 hemi_426 Linux - Software 1 05-26-2008 10:33 PM
compiling kconfig error sreenath Programming 0 06-01-2006 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration