I tried to build a kernel package 4.4.0-36.55 on Ubuntu 16.04 64bit. I used the Ubuntu sources:
#make-kpkg --append-to-version=-test-01 --initrd kernel_image
I got this output and error:
Kernel: arch/x86/boot/bzImage is ready (#4)
make[1]: Leaving directory '/usr/src/linux-source-4.4.0/linux-source-4.4.0'
/usr/bin/make -j6 EXTRAVERSION=-test-01 ARCH=x86_64 \
modules
make[1]: Entering directory '/usr/src/linux-source-4.4.0/linux-source-4.4.0'
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Building modules, stage 2.
MODPOST 289 modules
ERROR: "drm_release" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_pool_populate" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_tt_fini" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_crtc_helper_set_config" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_compat_ioctl" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_helper_resume_force_mode" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_move_memcpy" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_config_cleanup" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_config_reset" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_pci_exit" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_destroy" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_validate" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_cvt_mode" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_helper_probe_single_connector_modes" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_global_item_ref" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_kms_helper_hotplug_event" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_encoder_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_object_property_set_value" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_pci_set_busid" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_connector_cleanup" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_mem_global_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_helper_connector_dpms" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_mem_global_release" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_connector_attach_encoder" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_irq_install" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_unref" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_add_to_lru" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_helper_mode_fill_fb_struct" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_object_attach_property" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_put_dev" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_gem_handle_create" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_gem_dumb_destroy" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_kmap" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_tt_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_gem_object_release" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_read" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_dma_acc_size" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_init_mm" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_device_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_err" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_connector_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_kms_helper_poll_enable" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_connector_update_edid_property" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_gem_object_free" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_ioctl" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_framebuffer_unregister_private" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_del_sub_from_lru" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_kunmap" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_irq_uninstall" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_get_pci_dev" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_gem_object_lookup" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_add_modes_noedid" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_crtc_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_connector_unregister" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_gem_object_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_encoder_cleanup" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_device_release" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_crtc_cleanup" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_config_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_create_suggested_offset_properties" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_modeset_lock_all" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_global_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_probed_add" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_manager_func" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_modeset_unlock_all" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_helper_disable_unused_functions" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_pci_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_framebuffer_init" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_pool_unpopulate" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_connector_register" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_crtc_set_gamma_size" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_kms_helper_poll_disable" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_mode_object_find" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_global_release" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_poll" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_open" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_global_item_unref" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "drm_framebuffer_cleanup" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
ERROR: "ttm_bo_mmap" [ubuntu/vbox/vboxvideo/vboxvideo.ko] undefined!
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[2]: *** [__modpost] Error 1
Makefile:1119: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/linux-source-4.4.0/linux-source-4.4.0'
debian/ruleset/targets/common.mk:295: recipe for target 'debian/stamp/build/kernel' failed
make: *** [debian/stamp/build/kernel] Error 2
Looks like, that make-kpkg has problem with some modules.
On this computer I have not installed VirtualBox.
On computers with Vbox installed there are no problems.
I thinks this bug is related to #1580482.
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1619277
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.