PIE mode breaks building kernel modules

Bug #1575451 reported by David Daynard on 2016-04-27
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned
nvidia-graphics-drivers-352 (Ubuntu)
Undecided
Unassigned
nvidia-graphics-drivers-361 (Ubuntu)
Undecided
Unassigned

Bug Description

DKMS make.log for nvidia-364-364.19 for kernel 4.4.0-22-generic (x86_64)
Tue Apr 26 21:55:12 EDT 2016
make "CC=cc" KBUILD_VERBOSE= -C /lib/modules/4.4.0-22-generic/build M=/var/lib/dkms/nvidia-364/364.19/build ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.4.0-22-generic/build NV_KERNEL_OUTPUT=/lib/modules/4.4.0-22-generic/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset nvidia-drm" INSTALL_MOD_DIR=kernel/drivers/video modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-22-generic'
arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:670: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
  SYMLINK /var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia-364/364.19/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: INIT_WORK
 CONFTEST: remap_pfn_range
 CONFTEST: follow_pfn
 CONFTEST: vmap
 CONFTEST: set_pages_uc
 CONFTEST: set_memory_uc
 CONFTEST: change_page_attr
 CONFTEST: set_memory_array_uc
 CONFTEST: pci_get_class
 CONFTEST: pci_choose_state
 CONFTEST: vm_insert_page
 CONFTEST: acpi_device_id
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: kmem_cache_create
 CONFTEST: on_each_cpu
 CONFTEST: smp_call_function
 CONFTEST: acpi_evaluate_integer
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: pci_domain_nr
 CONFTEST: pci_dma_mapping_error
 CONFTEST: sg_alloc_table
 CONFTEST: sg_init_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 CONFTEST: proc_create_data
 CONFTEST: pde_data
 CONFTEST: proc_remove
 CONFTEST: pm_vt_switch_required
 CONFTEST: drm_driver_has_set_busid
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: write_cr4
 CONFTEST: of_parse_phandle
 CONFTEST: get_dma_ops
 CONFTEST: for_each_online_node
 CONFTEST: node_end_pfn
 CONFTEST: pci_bus_address
 CONFTEST: remap_page_range
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 CONFTEST: fatal_signal_pending
 CONFTEST: list_cut_position
 CONFTEST: hlist_for_each_entry
 CONFTEST: vzalloc
 CONFTEST: wait_on_bit_lock_argument_count
 CONFTEST: bitmap_clear
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: drm_atomic_set_mode_for_crtc
 CONFTEST: drm_atomic_clean_old_fb
 CONFTEST: i2c_adapter
 CONFTEST: pm_message_t
 CONFTEST: irq_handler_t
 CONFTEST: acpi_device_ops
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: proc_dir_entry
 CONFTEST: scatterlist
 CONFTEST: sg_table
 CONFTEST: file_operations
 CONFTEST: vm_operations_struct
 CONFTEST: atomic_long_type
 CONFTEST: pci_save_state
 CONFTEST: file_inode
 CONFTEST: task_struct
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: dma_map_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: fault_flags
 CONFTEST: atomic64_type
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: kernel_write
 CONFTEST: strnstr
 CONFTEST: iterate_dir
 CONFTEST: kstrtoull
 CONFTEST: get_user_pages_remote
 CONFTEST: drm_bus_present
 CONFTEST: drm_bus_has_bus_type
 CONFTEST: drm_bus_has_get_irq
 CONFTEST: drm_bus_has_get_name
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: drm_crtc_state_has_connectors_changed
 CONFTEST: drm_init_functions_have_name_arg
 CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
 CONFTEST: dom0_kernel_present
 CONFTEST: drm_available
 CONFTEST: nvidia_grid_build
 CONFTEST: drm_atomic_available
  CC [M] /var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-frontend.o
  CC [M] /var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-instance.o
  CC [M] /var/lib/dkms/nvidia-364/364.19/build/nvidia/nv.o
/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-frontend.c:1:0: error: code model kernel does not support PIC mode
 /* _NVRM_COPYRIGHT_BEGIN_
 ^
  CC [M] /var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-acpi.o
/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-instance.c:1:0: error: code model kernel does not support PIC mode
 /* _NVRM_COPYRIGHT_BEGIN_
 ^
  CC [M] /var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-chrdev.o
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-frontend.o' failed
make[2]: *** [/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-frontend.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-instance.o' failed
make[2]: *** [/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-instance.o] Error 1
/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-acpi.c:1:0: error: code model kernel does not support PIC mode
 /* _NVRM_COPYRIGHT_BEGIN_
 ^
/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv.c:1:0: error: code model kernel does not support PIC mode
 /* _NVRM_COPYRIGHT_BEGIN_
 ^
/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-chrdev.c:1:0: error: code model kernel does not support PIC mode
 /* _NVRM_COPYRIGHT_BEGIN_
 ^
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv.o' failed
make[2]: *** [/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv.o] Error 1
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-chrdev.o' failed
make[2]: *** [/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-chrdev.o] Error 1
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-acpi.o' failed
make[2]: *** [/var/lib/dkms/nvidia-364/364.19/build/nvidia/nv-acpi.o] Error 1
Makefile:1396: recipe for target '_module_/var/lib/dkms/nvidia-364/364.19/build' failed
make[1]: *** [_module_/var/lib/dkms/nvidia-364/364.19/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-22-generic'
Makefile:81: recipe for target 'modules' failed
make: *** [modules] Error 2

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: gcc-5 5.3.1-16ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Tue Apr 26 21:58:25 2016
InstallationDate: Installed on 2015-12-19 (129 days ago)
InstallationMedia: Linux Mint 17.3 "Rosa" - Release amd64 20151128
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gcc-5
UpgradeStatus: No upgrade log present (probably fresh install)

David Daynard (nardholio) wrote :
Matthias Klose (doko) on 2016-04-27
affects: gcc-5 (Ubuntu) → linux (Ubuntu)

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1575451

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.

Changed in linux (Ubuntu):
status: New → Incomplete
David Daynard (nardholio) wrote :

I can't run apport-collect because this is marked as a duplicate.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-352 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-361 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers