* Package: x11-drivers/nvidia-kernel-modules-390.116  * Repository: core-gl-kit  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux kms userland_GNU uvm  * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.2.9_p2-r1-debian-sources * Gentoo supports kernels which are supported by NVIDIA * which are limited to the following kernels: * >> Unpacking source... >>> Source unpacked in /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work >>> Preparing source in /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules ... * Applying nvidia-kernel-modules-390.116-uvm8.patch ...  [ ok ] >>> Source prepared. >>> Configuring source in /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules ... * abi_x86_64.amd64: running multilib-minimal_abi_src_configure >>> Source configured. >>> Compiling source in /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules ... ln: failed to create symbolic link 'Module.symvers': File exists * Preparing nvidia module make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux CC=x86_64-pc-linux-gnu-gcc NV_VERBOSE=1 clean module rm -f -r conftest make[1]: Entering directory '/Source/linux-debian-sources-5.2.9_p2-r1' make -f ./scripts/Makefile.clean obj=/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules rm -rf /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/.tmp_versions rm -f /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/Module.symvers make[1]: Leaving directory '/Source/linux-debian-sources-5.2.9_p2-r1' make[1]: Entering directory '/Source/linux-debian-sources-5.2.9_p2-r1' test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) mkdir -p /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/.tmp_versions ; rm -f /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/.tmp_versions/* make -f ./scripts/Makefile.build obj=/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules CONFTEST: INIT_WORK CONFTEST: remap_pfn_range CONFTEST: hash__remap_4k_pfn CONFTEST: follow_pfn CONFTEST: vmap CONFTEST: set_pages_uc CONFTEST: set_memory_uc CONFTEST: set_memory_array_uc CONFTEST: change_page_attr 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: xen_ioemu_inject_msi CONFTEST: phys_to_dma CONFTEST: get_dma_ops CONFTEST: write_cr4 CONFTEST: of_get_property CONFTEST: of_find_node_by_phandle CONFTEST: of_node_to_nid CONFTEST: pnv_pci_get_npu_dev CONFTEST: for_each_online_node CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: request_threaded_irq CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: dma_map_resource CONFTEST: backlight_device_register CONFTEST: register_acpi_notifier CONFTEST: timer_setup CONFTEST: kmem_cache_create_usercopy CONFTEST: do_gettimeofday CONFTEST: remap_page_range CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: fatal_signal_pending CONFTEST: list_cut_position CONFTEST: vzalloc CONFTEST: wait_on_bit_lock_argument_count CONFTEST: bitmap_clear CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: drm_dev_unref CONFTEST: drm_reinit_primary_mode_group CONFTEST: get_user_pages_remote CONFTEST: get_user_pages CONFTEST: drm_gem_object_lookup CONFTEST: drm_atomic_state_free CONFTEST: drm_driver_has_gem_prime_res_obj CONFTEST: drm_atomic_helper_connector_dpms CONFTEST: drm_connector_funcs_have_mode_in_name CONFTEST: vmf_insert_pfn CONFTEST: drm_framebuffer_get CONFTEST: drm_gem_object_get CONFTEST: drm_dev_put CONFTEST: is_export_symbol_gpl_of_node_to_nid CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs CONFTEST: is_export_symbol_present_swiotlb_dma_ops 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: swiotlb_dma_ops CONFTEST: dma_map_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_present CONFTEST: vm_fault_has_address CONFTEST: kernel_write CONFTEST: strnstr CONFTEST: iterate_dir CONFTEST: kstrtoull CONFTEST: backlight_properties_type CONFTEST: fault_flags CONFTEST: atomic64_type CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: pnv_npu2_init_context 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_driver_has_set_busid CONFTEST: drm_crtc_state_has_connectors_changed CONFTEST: drm_init_function_args CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg CONFTEST: drm_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type CONFTEST: kref_has_refcount_of_type_refcount_t CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg CONFTEST: drm_crtc_helper_funcs_has_atomic_enable CONFTEST: drm_mode_object_find_has_file_priv_arg CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: drm_atomic_modeset_nonblocking_commit_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test x86_64-pc-linux-gnu-gcc -Wp,-MD,/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia/.nv-frontend.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -I/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/common/inc -I/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"390.116\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -I/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv_frontend"' -DKBUILD_MODNAME='"nvidia"' -c -o /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia/nv-frontend.o /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia/nv-frontend.c In file included from /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/common/inc/nv-linux.h:136, from /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia/nv-frontend.c:13: /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/common/inc/nv-list-helpers.h:94:19: error: redefinition of ‘list_is_first’ 94 | static inline int list_is_first(const struct list_head *list, | ^~~~~~~~~~~~~ In file included from ./include/linux/preempt.h:11, from ./include/linux/spinlock.h:51, from /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/common/inc/nv-lock.h:16, from /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/common/inc/nv-linux.h:19, from /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia/nv-frontend.c:13: ./include/linux/list.h:231:19: note: previous definition of ‘list_is_first’ was here 231 | static inline int list_is_first(const struct list_head *list, | ^~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:284: /Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules/nvidia/nv-frontend.o] Error 1 make[1]: *** [Makefile:1610: _module_/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules] Error 2 make[1]: Leaving directory '/Source/linux-debian-sources-5.2.9_p2-r1' make: *** [Makefile:79: modules] Error 2 * ERROR: x11-drivers/nvidia-kernel-modules-390.116::core-gl-kit failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-kernel-modules-390.116::core-gl-kit'`, * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-kernel-modules-390.116::core-gl-kit'`. * The complete build log is located at '/home/Portage-Logs/x11-drivers:nvidia-kernel-modules-390.116:20190916-195223.log'. * For convenience, a symlink to the build log is located at '/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/temp/build.log'. * The ebuild environment file is located at '/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/temp/environment'. * Working directory: '/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules' * S: '/Build/portage/x11-drivers/nvidia-kernel-modules-390.116/work/kernel-modules'