LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-26-2017, 12:29 PM   #1
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Rep: Reputation: Disabled
Post kernel-package fails to compile kernel headers on (*)Ubuntu 16.04.2


Hello everyone,

I am very happy to have just acquired a new laptop (HP ProBook 6460b intel i5 quad core processor). I just got though installing Kubuntu 16.04.2 onto this newly obtained powerhouse and I am attempting to build the latest kernel sources from kernel.org using kernel package. Unfortunately, only the kernel binaries will build, but no headers. With these complications, I am experiencing very similar difficulties on my linux desktop/server as well (running Ubuntu 16.04.2) in which any headers past kernel version 4.9.10 fail to compile. These headers seem to be essential in installing the modules/drivers for my Broadcom BCM43223 (b43) chip and Virtualbox on my new machine. Any suggestions?

Errors Follow as:

Code:
  LD [M]  virt/lib/irqbypass.ko
make[1]: Leaving directory '/usr/src/linux-4.11.2'
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
 awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/stamp/build/info
uname -a >> debian/stamp/build/info
echo using the compiler: >> debian/stamp/build/info
if [ -f include/generated/compile.h ]; then                      \
   grep LINUX_COMPILER include/generated/compile.h |             \
     sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >>             \
               debian/stamp/build/info;                                  \
        elif [ -f include/linux/compile.h  ]; then                       \
    grep LINUX_COMPILER include/linux/compile.h |                \
      sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >>            \
                debian/stamp/build/info;                                 \
         fi
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules          debian/stamp/binary/pre-linux-headers-4.11.2
make[1]: Entering directory '/usr/src/linux-4.11.2'
====== making target debian/stamp/install/linux-headers-4.11.2 [new prereqs: ]======
This is kernel package version 13.018.
rm -rf /usr/src/linux-4.11.2/debian/linux-headers-4.11.2
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/src/linux-headers-4.11.2
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/examples
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/etc/kernel/header_postinst.d
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/etc/kernel/header_preinst.d
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/etc/kernel/header_postrm.d
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/etc/kernel/header_prerm.d
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/src/linux-headers-4.11.2/arch/x86
install -p -d -o root -g root  -m  755 /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/src/linux-headers-4.11.2/arch/x86/kernel/
install -p    -o root -g root  -m  644 debian/changelog                /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/changelog.Debian
install -p    -o root -g root  -m  644 ./debian/pkg/headers/README    /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/debian.README
install -p    -o root -g root  -m  644 .config                          /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/config-4.11.2
test ! -f debian/stamp/conf/vars                || \
          install -p    -o root -g root  -m  644 debian/stamp/conf/vars         /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/conf.vars
install -p    -o root -g root  -m  644 CREDITS                         /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/
install -p    -o root -g root  -m  644 MAINTAINERS                     /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/
install -p    -o root -g root  -m  644 REPORTING-BUGS                  /usr/src/linux-4.11.2/debian/linux-headers-4.11.2/usr/share/doc/linux-headers-4.11.2/
install: cannot stat 'REPORTING-BUGS': No such file or directory
debian/ruleset/targets/headers.mk:40: recipe for target 'debian/stamp/install/linux-headers-4.11.2' failed
make[1]: *** [debian/stamp/install/linux-headers-4.11.2] Error 1
make[1]: Leaving directory '/usr/src/linux-4.11.2'
debian/ruleset/local.mk:102: recipe for target 'kernel_headers' failed
make: *** [kernel_headers] Error 2
All help will be greatly appreciated! Thank you.

Sincerely,

D3H

Last edited by donald3.heckel; 05-26-2017 at 12:31 PM.
 
Old 05-26-2017, 02:56 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Yep, might just get a supported kernel and then try. https://packages.ubuntu.com/search?k...eaders-generic.

Doubt this will work. sudo apt-get install linux-headers-$(uname -r)

Guess you could make a package from scratch.

This is what happens to you and I when we go off the mainstream kernel.
 
Old 05-26-2017, 08:44 PM   #3
donald3.heckel
Member
 
Registered: Aug 2014
Posts: 60

Original Poster
Rep: Reputation: Disabled
Hello Jefro,

Thank you for your reply. I know right? I guess those devs want to put us into a little box. Speaking of building stuff from scratch, I tried that with kernel package, but it just stopped working sooner or later. I will give the aforementioned suggestions a try and let you know how they work out.

Sincerely,

D3H

Last edited by donald3.heckel; 05-26-2017 at 08:46 PM.
 
  


Reply



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] Updated to kernel 3.0.4 but now source package can not find kernel headers. ReaperX7 Slackware 2 10-03-2011 06:48 PM
Automatic removal of kernel headers package when kernel packages are removed bgoodr Debian 3 12-30-2008 08:14 PM
compile kernel-headers hraposo Debian 6 01-16-2007 06:06 PM
do kernel headers come with kernel-source package? janos Linux - Kernel 1 05-30-2006 09:38 AM
How to restore out-of-box kernel settings if my kernel compile fails? brgr88 Slackware 8 04-18-2006 06:51 AM

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

All times are GMT -5. The time now is 12:47 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