Bug#815986: nvidia-kernel-dkms:amd64: does not build for x86_64 kernel on i386 userspace
Tomas Janousek
tomi at nomi.cz
Fri Feb 26 13:40:43 UTC 2016
Hi,
On Fri, Feb 26, 2016 at 01:59:07PM +0100, Andreas Beckmann wrote:
> The make.log from -3 (or -4 which I uploaded this morning) would be
> nice. It should contain the invocation of conftest.sh, which gets passed
> all the flags it will use later on.
Okay, I'm attaching it. I think that the easiest solution would be to patch
conftest.sh:build_cflags to add -m64 if the arch is x86_64. The kernel build
does this in arch/x86/Makefile regardless of whether gcc defaults to 32/64, so
conftest could do that too.
Regards,
--
Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, http://work.lisk.in/
-------------- next part --------------
make: Vstupuje se do adresáře „/tmp/nvidia/352.79-3/nvidia-current-352.79“
NVIDIA: calling KBUILD...
make KBUILD_OUTPUT=/lib/modules/4.4.3-lis64+/build KBUILD_VERBOSE=1 -C /lib/modules/4.4.3-lis64+/source SUBDIRS=/tmp/nvidia/352.79-3/nvidia-current-352.79 ARCH=x86_64 modules
make[1]: Vstupuje se do adresáře „/data/tomi/src/linux-liskin-4.4“
make -C /lib/modules/4.4.3-lis64+/build KBUILD_SRC=/data/tomi/src/linux-liskin-4.4 \
-f /data/tomi/src/linux-liskin-4.4/Makefile modules
make[2]: Vstupuje se do adresáře „/data/tomi/src/linux-liskin-4.4“
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 /tmp/nvidia/352.79-3/nvidia-current-352.79/.tmp_versions ; rm -f /tmp/nvidia/352.79-3/nvidia-current-352.79/.tmp_versions/*
make -f /data/tomi/src/linux-liskin-4.4/scripts/Makefile.build obj=/tmp/nvidia/352.79-3/nvidia-current-352.79
CONFTEST=/bin/sh /tmp/nvidia/352.79-3/nvidia-current-352.79/conftest.sh "gcc" "gcc" x86_64 /lib/modules/4.4.3-lis64+/source /lib/modules/4.4.3-lis64+/build
CONFTEST_CFLAGS=-O2 -D__KERNEL__ -DKBUILD_BASENAME="#conftest15666" -DKBUILD_MODNAME="#conftest15666" -nostdinc -isystem /usr/lib/gcc/i586-linux-gnu/5/include -I/lib/modules/4.4.3-lis64+/source/include/asm-x86/mach-default -I/lib/modules/4.4.3-lis64+/source/arch/x86/include/asm/mach-default -I/lib/modules/4.4.3-lis64+/build/include2 -I/lib/modules/4.4.3-lis64+/build/include -include /lib/modules/4.4.3-lis64+/build/include/generated/autoconf.h -I/lib/modules/4.4.3-lis64+/source/include -I/lib/modules/4.4.3-lis64+/source/include/uapi -I/lib/modules/4.4.3-lis64+/source/include/xen -I/lib/modules/4.4.3-lis64+/build/include/generated/uapi -I/lib/modules/4.4.3-lis64+/source/arch/x86/include -I/lib/modules/4.4.3-lis64+/source/arch/x86/include/uapi -I/lib/modules/4.4.3-lis64+/build/arch/x86/include/generated -I/lib/modules/4.4.3-lis64+/build/arch/x86/include/generated/uapi
for SANITY_CHECK in cc_version_check rivafb_sanity_check nvidiafb_sanity_check dom0_sanity_check xen_sanity_check ; do \
if ! /bin/sh /tmp/nvidia/352.79-3/nvidia-current-352.79/conftest.sh "gcc" "gcc" x86_64 /lib/modules/4.4.3-lis64+/source /lib/modules/4.4.3-lis64+/build $SANITY_CHECK full_output; then \
exit 1; \
fi; \
done
touch /tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/sanity-checks.stamp
CONFTEST patches.h:
static struct {
const char *short_description;
const char *description;
} __nv_patches[] = {
{ NULL, NULL } };
CONFTEST headers.h:
#undef NV_ASM_SYSTEM_H_PRESENT
#define NV_DRM_DRMP_H_PRESENT
#define NV_DRM_DRM_GEM_H_PRESENT
#define NV_GENERATED_AUTOCONF_H_PRESENT
#define NV_GENERATED_COMPILE_H_PRESENT
#define NV_GENERATED_UTSRELEASE_H_PRESENT
#define NV_LINUX_EFI_H_PRESENT
#define NV_LINUX_KCONFIG_H_PRESENT
#define NV_LINUX_SCREEN_INFO_H_PRESENT
#define NV_LINUX_SEMAPHORE_H_PRESENT
#define NV_LINUX_PRINTK_H_PRESENT
#define NV_LINUX_RATELIMIT_H_PRESENT
#undef NV_LINUX_PRIO_TREE_H_PRESENT
#define NV_LINUX_LOG2_H_PRESENT
#undef NV_XEN_IOEMU_H_PRESENT
CONFTEST: INIT_WORK
CONFTEST macros.h:
#error INIT_WORK() conftest failed!
CONFTEST: remap_pfn_range
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: 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_pci_set_busid
CONFTEST: xen_ioemu_inject_msi
CONFTEST: phys_to_dma
CONFTEST: get_dma_ops
CONFTEST: write_cr4
CONFTEST: for_each_online_node
CONFTEST: node_end_pfn
CONFTEST functions.h:
#define NV_REMAP_PFN_RANGE_PRESENT
#define NV_FOLLOW_PFN_PRESENT
#define NV_SET_PAGES_UC_PRESENT
#define NV_SET_MEMORY_UC_PRESENT
#define NV_SET_MEMORY_ARRAY_UC_PRESENT
#define NV_CHANGE_PAGE_ATTR_PRESENT
#define NV_PCI_GET_CLASS_PRESENT
#define NV_PCI_CHOOSE_STATE_PRESENT
#define NV_VM_INSERT_PAGE_PRESENT
#undef NV_ACPI_DEVICE_ID_HAS_DRIVER_DATA
#undef NV_ACQUIRE_CONSOLE_SEM_PRESENT
#define NV_CONSOLE_LOCK_PRESENT
#error kmem_cache_create() conftest failed!
#error on_each_cpu() conftest failed!
#error smp_call_function() conftest failed!
#undef NV_ACPI_EVALUATE_INTEGER_PRESENT
typedef unsigned long nv_acpi_integer_t;
#define NV_IOREMAP_CACHE_PRESENT
#define NV_IOREMAP_WC_PRESENT
#error acpi_walk_namespace() conftest failed!
#define NV_PCI_DOMAIN_NR_PRESENT
#error pci_dma_mapping_error() conftest failed!
#undef NV_SG_ALLOC_TABLE_PRESENT
#undef NV_SG_ALLOC_TABLE_FROM_PAGES_PRESENT
#define NV_PCI_GET_DOMAIN_BUS_AND_SLOT_PRESENT
#define NV_GET_NUM_PHYSPAGES_PRESENT
#define NV_EFI_ENABLED_PRESENT
#define NV_PROC_CREATE_DATA_PRESENT
#define NV_PDE_DATA_PRESENT
#define NV_PROC_REMOVE_PRESENT
#define NV_PM_VT_SWITCH_REQUIRED_PRESENT
#define NV_DRM_PCI_SET_BUSID_PRESENT
#undef NV_XEN_IOEMU_INJECT_MSI
#define NV_PHYS_TO_DMA_PRESENT
#define NV_GET_DMA_OPS_PRESENT
#undef NV_WRITE_CR4_PRESENT
#define NV_FOR_EACH_ONLINE_NODE_PRESENT
#define NV_NODE_END_PFN_PRESENT
CONFTEST symbols.h:
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: 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 types.h:
#undef NV_I2C_ADAPTER_HAS_CLIENT_REGISTER
#undef NV_PM_MESSAGE_T_PRESENT
#undef NV_PM_MESSAGE_T_HAS_EVENT
#undef NV_IRQ_HANDLER_T_PRESENT
#undef NV_ACPI_DEVICE_OPS_HAS_MATCH
#undef NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT
#undef NV_ACPI_DEVICE_ID_HAS_DRIVER_DATA
#undef NV_OUTER_FLUSH_ALL_PRESENT
#undef NV_PROC_DIR_ENTRY_HAS_OWNER
#undef NV_SCATTERLIST_HAS_PAGE_LINK
#undef NV_SG_TABLE_PRESENT
#undef NV_FILE_OPERATIONS_HAS_IOCTL
#undef NV_FILE_OPERATIONS_HAS_UNLOCKED_IOCTL
#undef NV_FILE_OPERATIONS_HAS_COMPAT_IOCTL
#undef NV_VM_OPERATIONS_STRUCT_HAS_FAULT
#undef NV_VM_OPERATIONS_STRUCT_HAS_ACCESS
#define NV_PCI_SAVE_STATE_ARGUMENT_COUNT 2
#undef NV_FILE_HAS_INODE
#undef NV_TASK_STRUCT_HAS_CRED
#undef NV_KUID_T_PRESENT
#undef NV_DMA_OPS_PRESENT
#undef NV_DMA_MAP_OPS_PRESENT
#undef NV_NONCOHERENT_SWIOTLB_DMA_OPS_PRESENT
CONFTEST: dom0_kernel_present
CONFTEST: drm_available
CONFTEST: nvidia_grid_build
CONFTEST generic.h:
#undef NV_DOM0_KERNEL_PRESENT
#undef NV_DRM_AVAILABLE
#undef NV_GRID_BUILD
gcc -Wp,-MD,/tmp/nvidia/352.79-3/nvidia-current-352.79/.nv-frontend.o.d -nostdinc -isystem /usr/lib/gcc/i586-linux-gnu/5/include -I/data/tomi/src/linux-liskin-4.4/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/data/tomi/src/linux-liskin-4.4/include -Iinclude -I/data/tomi/src/linux-liskin-4.4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/data/tomi/src/linux-liskin-4.4/include/uapi -Iinclude/generated/uapi -include /data/tomi/src/linux-liskin-4.4/include/linux/kconfig.h -I/tmp/nvidia/352.79-3/nvidia-current-352.79 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -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 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/nvidia/352.79-3/nvidia-current-352.79 -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"352.79\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_frontend)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/nvidia/352.79-3/nvidia-current-352.79/.tmp_nv-frontend.o /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/conftest.h:2:0,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:15,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/functions.h:13:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/functions.h:14:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/functions.h:15:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/functions.h:20:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/functions.h:22:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/conftest.h:4:0,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:15,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/tmp/nvidia/352.79-3/nvidia-current-352.79/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^
In file included from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/stddef.h:1:0,
from /data/tomi/src/linux-liskin-4.4/include/linux/stddef.h:4,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/posix_types.h:4,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/types.h:13,
from /data/tomi/src/linux-liskin-4.4/include/linux/types.h:5,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/capability.h:16,
from /data/tomi/src/linux-liskin-4.4/include/linux/capability.h:15,
from /data/tomi/src/linux-liskin-4.4/include/linux/sched.h:15,
from /data/tomi/src/linux-liskin-4.4/include/linux/utsname.h:5,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:40,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
/data/tomi/src/linux-liskin-4.4/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/data/tomi/src/linux-liskin-4.4/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from /data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/preempt.h:5:0,
from /data/tomi/src/linux-liskin-4.4/include/linux/preempt.h:59,
from /data/tomi/src/linux-liskin-4.4/include/linux/spinlock.h:50,
from /data/tomi/src/linux-liskin-4.4/include/linux/seqlock.h:35,
from /data/tomi/src/linux-liskin-4.4/include/linux/time.h:5,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/timex.h:56,
from /data/tomi/src/linux-liskin-4.4/include/linux/timex.h:56,
from /data/tomi/src/linux-liskin-4.4/include/linux/sched.h:19,
from /data/tomi/src/linux-liskin-4.4/include/linux/utsname.h:5,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:40,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
this_cpu_add(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
this_cpu_add(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
this_cpu_add(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
this_cpu_add(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
/data/tomi/src/linux-liskin-4.4/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
^
In file included from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/stddef.h:1:0,
from /data/tomi/src/linux-liskin-4.4/include/linux/stddef.h:4,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/posix_types.h:4,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/types.h:13,
from /data/tomi/src/linux-liskin-4.4/include/linux/types.h:5,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/capability.h:16,
from /data/tomi/src/linux-liskin-4.4/include/linux/capability.h:15,
from /data/tomi/src/linux-liskin-4.4/include/linux/sched.h:15,
from /data/tomi/src/linux-liskin-4.4/include/linux/utsname.h:5,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:40,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/uaccess.h:717:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
/data/tomi/src/linux-liskin-4.4/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/uaccess.h:735:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
/data/tomi/src/linux-liskin-4.4/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: At top level:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:129:15: error: conflicting types for ‘kuid_t’
typedef uid_t kuid_t;
^
In file included from /data/tomi/src/linux-liskin-4.4/include/linux/ipc.h:5:0,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/sem.h:4,
from /data/tomi/src/linux-liskin-4.4/include/linux/sem.h:7,
from /data/tomi/src/linux-liskin-4.4/include/linux/sched.h:35,
from /data/tomi/src/linux-liskin-4.4/include/linux/utsname.h:5,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:40,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/linux/uidgid.h:22:3: note: previous declaration of ‘kuid_t’ was here
} kuid_t;
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:131:21: error: conflicting types for ‘__kuid_val’
static inline uid_t __kuid_val(kuid_t uid)
^
In file included from /data/tomi/src/linux-liskin-4.4/include/linux/ipc.h:5:0,
from /data/tomi/src/linux-liskin-4.4/include/uapi/linux/sem.h:4,
from /data/tomi/src/linux-liskin-4.4/include/linux/sem.h:7,
from /data/tomi/src/linux-liskin-4.4/include/linux/sched.h:35,
from /data/tomi/src/linux-liskin-4.4/include/linux/utsname.h:5,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:40,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/linux/uidgid.h:33:21: note: previous definition of ‘__kuid_val’ was here
static inline uid_t __kuid_val(kuid_t uid)
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:144:2: error: #error "struct file_operations compile test likely failed!"
#error "struct file_operations compile test likely failed!"
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:329:2: error: #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
#error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:333:6: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined [-Wundef]
#if (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 6)
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:335:8: warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined [-Wundef]
#elif (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 7)
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:341:2: error: #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
#error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:882:2: error: #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
#error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:902:2: error: #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
#error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: In function ‘nv_execute_on_all_cpus’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:911:11: error: implicit declaration of function ‘NV_ON_EACH_CPU’ [-Werror=implicit-function-declaration]
ret = NV_ON_EACH_CPU(func, info, 1);
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: At top level:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1164:13: error: conflicting types for ‘pm_message_t’
typedef u32 pm_message_t;
^
In file included from /data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/apic.h:5:0,
from /data/tomi/src/linux-liskin-4.4/arch/x86/include/asm/smp.h:12,
from /data/tomi/src/linux-liskin-4.4/include/linux/smp.h:59,
from /data/tomi/src/linux-liskin-4.4/include/linux/sched.h:34,
from /data/tomi/src/linux-liskin-4.4/include/linux/utsname.h:5,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:40,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/linux/pm.h:64:3: note: previous declaration of ‘pm_message_t’ was here
} pm_message_t;
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1431:6: warning: "NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT" is not defined [-Wundef]
#if (NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT == 5)
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: In function ‘nv_dma_maps_swiotlb’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1572:41: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
const struct dma_mapping_ops *ops = get_dma_ops(&dev->dev);
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1591:26: error: dereferencing pointer to incomplete type ‘const struct dma_mapping_ops’
swiotlb_in_use = (ops->map_sg == swiotlb_map_sg);
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: At top level:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1729:6: warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
#if (NV_INIT_WORK_ARGUMENT_COUNT == 2)
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1739:8: warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
#elif (NV_INIT_WORK_ARGUMENT_COUNT == 3)
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1749:2: error: #error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
#error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: In function ‘nv_pci_save_state’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1895:5: error: too many arguments to function ‘pci_save_state’
pci_save_state(dev, &nv->pci_cfg_space[0]);
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:109:0,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/linux/pci.h:1066:5: note: declared here
int pci_save_state(struct pci_dev *dev);
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h: In function ‘nv_pci_restore_state’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1902:5: error: too many arguments to function ‘pci_restore_state’
pci_restore_state(dev, &nv->pci_cfg_space[0]);
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:109:0,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/data/tomi/src/linux-liskin-4.4/include/linux/pci.h:1067:6: note: declared here
void pci_restore_state(struct pci_dev *dev);
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:1975:0,
from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-proto.h: At top level:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-proto.h:25:6: warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
#if (NV_INIT_WORK_ARGUMENT_COUNT == 3)
^
In file included from /tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:13:0:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c: In function ‘nvidia_frontend_unlocked_ioctl’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:2087:35: error: ‘struct file’ has no member named ‘f_dentry’
#define NV_FILE_INODE(file) (file)->f_dentry->d_inode
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:330:34: note: in expansion of macro ‘NV_FILE_INODE’
return nvidia_frontend_ioctl(NV_FILE_INODE(file), file, cmd, i_arg);
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c: In function ‘nvidia_frontend_compat_ioctl’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-linux.h:2087:35: error: ‘struct file’ has no member named ‘f_dentry’
#define NV_FILE_INODE(file) (file)->f_dentry->d_inode
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:339:34: note: in expansion of macro ‘NV_FILE_INODE’
return nvidia_frontend_ioctl(NV_FILE_INODE(file), file, cmd, i_arg);
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c: In function ‘nvidia_frontend_unlocked_ioctl’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:331:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c: In function ‘nvidia_frontend_compat_ioctl’:
/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.c:340:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
/data/tomi/src/linux-liskin-4.4/scripts/Makefile.build:258: návod pro cíl „/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.o“ selhal
make[3]: *** [/tmp/nvidia/352.79-3/nvidia-current-352.79/nv-frontend.o] Chyba 1
/data/tomi/src/linux-liskin-4.4/Makefile:1384: návod pro cíl „_module_/tmp/nvidia/352.79-3/nvidia-current-352.79“ selhal
make[2]: *** [_module_/tmp/nvidia/352.79-3/nvidia-current-352.79] Chyba 2
make[2]: Opouští se adresář „/data/tomi/src/linux-liskin-4.4“
Makefile:146: návod pro cíl „sub-make“ selhal
make[1]: *** [sub-make] Chyba 2
make[1]: Opouští se adresář „/data/tomi/src/linux-liskin-4.4“
nvidia-modules-common.mk:260: návod pro cíl „module“ selhal
make: *** [module] Chyba 2
make: Opouští se adresář „/tmp/nvidia/352.79-3/nvidia-current-352.79“
More information about the pkg-nvidia-devel
mailing list