Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

First time building a kernel, using the following commands on Ubuntu 12.04 LTS.

I've done my due diligence to ensure that I have the dependencies listed in the kernel source documentation.

$:~/ mkdir build-3.13-rc8
$:~/ cd linux-dev    # location of git source
$:~/linux-dev make mrproper
$:~/linux-dev yes "" | make O=~/build-3.13-rc8 oldconfig
$:~/linux-dev make -j4 O=~/build-3.13-rc8

After completion

$:~/linux-dev cd ../build-3.13-rc8
$:~/build-3.13-rc8 sudo make modules_install
$:~/build-3.13-rc8 sudo make install

which results in this output:

(The system is using grub, so the LILO warnings are expected.)

sh /home/jdp/linux-dev/arch/x86/boot/install.sh 3.13.0-rc8 arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
ERROR (dkms apport): kernel package linux-headers-3.13.0-rc8 is not supported
Error! Bad return status for module build on kernel: 3.13.0-rc8 (i686)
Consult /var/lib/dkms/nvidia-304/304.88/build/make.log for more information.
ERROR (dkms apport): kernel package linux-headers-3.13.0-rc8 is not supported
Error! Bad return status for module build on kernel: 3.13.0-rc8 (i686)
Consult /var/lib/dkms/virtualbox/4.1.12/build/make.log for more information.
ERROR (dkms apport): binary package for parallels-kernel-modules: 6.0.13950.714087 not found
Error! Bad return status for module build on kernel: 3.13.0-rc8 (i686)
Consult /var/lib/dkms/parallels-kernel-modules/6.0.13950.714087/build/make.log for more information.
ERROR (dkms apport): kernel package linux-headers-3.13.0-rc8 is not supported
Error! Bad return status for module build on kernel: 3.13.0-rc8 (i686)
Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
update-initramfs: Generating /boot/initrd.img-3.13.0-rc8
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
run-parts: executing /etc/kernel/postinst.d/zz-lilo 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
Warning: Not updating LILO; /etc/lilo.conf not found
run-parts: executing /etc/kernel/postinst.d/zz-runlilo 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
Warning: Not updating LILO; /etc/lilo.conf not found!
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-rc8 /boot/vmlinuz-3.13.0-rc8
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.13.0-rc8
Found initrd image: /boot/initrd.img-3.13.0-rc8
Found linux image: /boot/vmlinuz-3.12.7
Found initrd image: /boot/initrd.img-3.12.7
Found linux image: /boot/vmlinuz-3.2.0-58-generic-pae-bak
Found initrd image: /boot/initrd.img-3.2.0-58-generic-pae-bak

[...] Edited old kernel images out for the sake of brevity, these weren't put here by myself. [...]

Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Ubuntu 12.10 (12.10) on /dev/sdb1
done

and here are a few of the make.log files

$:~/build-3.13-rc8$ cat /var/lib/dkms/nvidia-304/304.88/build/make.log
DKMS make.log for nvidia-304-304.88 for kernel 3.13.0-rc8 (i686)
Tue Jan 14 06:32:46 EST 2014
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the `KBUILD_OUTPUT` or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent `nvidia-installer` command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent `nvidia-installer` command line option.

*** Unable to determine the target kernel version. ***

make[4]: *** [select_makefile] Error 1


$:~/build-3.13-rc8$ cat /var/lib/dkms/virtualbox/4.1.12/build/make.log
DKMS make.log for virtualbox-4.1.12 for kernel 3.13.0-rc8 (i686)
Tue Jan 14 06:32:46 EST 2014
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[7]: *** [silentoldconfig] Error 1
make[6]: *** [silentoldconfig] Error 2
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
make[5]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
make[4]: *** [all] Error 2

The rest of the make.log files vary slightly but all indicate that they weren't able to locate the .config file (I'm assuming during make).

So I finally get around to my questions:

  1. Is the .config file not found because I'm building in an alternate directory?

    AND/OR

  2. Are these drivers/packages just not supported because of the recentness of the kernel?

    AND

  3. Is it bad that mdadm reports that its conf file defines no arrays when the output of:

    $:~/build-3.13-rc8$ sudo mdadm --detail --scan
    

    is blank?

share|improve this question
add comment

protected by fossfreedom Jan 14 at 12:23

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Browse other questions tagged or ask your own question.