-   Linux - Software (
-   -   kernel-package fails to compile kernel headers on (*)Ubuntu 16.04.2 (

donald3.heckel 05-26-2017 12:29 PM

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 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:


  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;                                \
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/ 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/ recipe for target 'kernel_headers' failed
make: *** [kernel_headers] Error 2

All help will be greatly appreciated! Thank you.



jefro 05-26-2017 02:56 PM

Yep, might just get a supported kernel and then try.

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.

donald3.heckel 05-26-2017 08:44 PM

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.



All times are GMT -5. The time now is 11:22 PM.