Hi all,
I am getting following log while building igb in openAVB source.
root@prakash:/home/prakash/Open_AVB_Automotive_Profile# make igb
mkdir -p kmod/igb && make subdir=kmod/igb -C kmod/igb
make[1]: Entering directory /home/prakash/Open_AVB_Automotive_Profile/kmod/igb' make -C /lib/modules/4.12.8/build SUBDIRS=/home/prakash/Open_AVB_Automotive_Profile/kmod/igb modules make[2]: Entering directory/home/prakash/linux-4.12.8'
CC [M] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.o
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:219:1: warning: initialization from incompatible pointer type [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:219:1: warning: (near initialization for ‘igb_mmap_ops.fault’) [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:292:15: error: variable ‘igb_miscdev’ has initializer but incomplete type
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:3: error: unknown field ‘minor’ specified in initializer
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:12: error: ‘MISC_DYNAMIC_MINOR’ undeclared here (not in a function)
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:3: warning: excess elements in struct initializer [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:3: warning: (near initialization for ‘igb_miscdev’) [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:294:3: error: unknown field ‘name’ specified in initializer
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:294:3: warning: excess elements in struct initializer [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:294:3: warning: (near initialization for ‘igb_miscdev’) [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:295:3: error: unknown field ‘fops’ specified in initializer
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:295:3: warning: excess elements in struct initializer [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:295:3: warning: (near initialization for ‘igb_miscdev’) [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: In function ‘igb_init_module’:
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:383:2: error: implicit declaration of function ‘misc_register’ [-Werror=implicit-function-declaration]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: In function ‘igb_exit_module’:
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:408:2: error: implicit declaration of function ‘misc_deregister’ [-Werror=implicit-function-declaration]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: In function ‘igb_set_interrupt_capability’:
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:1072:4: error: implicit declaration of function ‘pci_enable_msix’ [-Werror=implicit-function-declaration]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: At top level:
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:2326:2: warning: initialization from incompatible pointer type [enabled by default]
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:2326:2: warning: (near initialization for ‘igb_netdev_ops.ndo_set_vf_vlan’) [enabled by default]
cc1: some warnings being treated as errors
make[3]: [/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.o] Error 1
make[2]: [module/home/prakash/Open_AVB_Automotive_Profile/kmod/igb] Error 2
make[2]: Leaving directory /home/prakash/linux-4.12.8' make[1]: *** [default] Error 2 make[1]: Leaving directory/home/prakash/Open_AVB_Automotive_Profile/kmod/igb'
make: *** [igb] Error 2
root@prakash:/home/prakash/Open_AVB_Automotive_Profile#
Please, help in building igb module. I am using a PC with Ubuntu 12.04 and kernel v4.12
Hi all, I am getting following log while building igb in openAVB source.
root@prakash:/home/prakash/Open_AVB_Automotive_Profile# make igb mkdir -p kmod/igb && make subdir=kmod/igb -C kmod/igb make[1]: Entering directory
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb' make -C /lib/modules/4.12.8/build SUBDIRS=/home/prakash/Open_AVB_Automotive_Profile/kmod/igb modules make[2]: Entering directory
/home/prakash/linux-4.12.8' CC [M] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.o /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:219:1: warning: initialization from incompatible pointer type [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:219:1: warning: (near initialization for ‘igb_mmap_ops.fault’) [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:292:15: error: variable ‘igb_miscdev’ has initializer but incomplete type /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:3: error: unknown field ‘minor’ specified in initializer /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:12: error: ‘MISC_DYNAMIC_MINOR’ undeclared here (not in a function) /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:3: warning: excess elements in struct initializer [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:293:3: warning: (near initialization for ‘igb_miscdev’) [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:294:3: error: unknown field ‘name’ specified in initializer /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:294:3: warning: excess elements in struct initializer [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:294:3: warning: (near initialization for ‘igb_miscdev’) [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:295:3: error: unknown field ‘fops’ specified in initializer /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:295:3: warning: excess elements in struct initializer [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:295:3: warning: (near initialization for ‘igb_miscdev’) [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: In function ‘igb_init_module’: /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:383:2: error: implicit declaration of function ‘misc_register’ [-Werror=implicit-function-declaration] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: In function ‘igb_exit_module’: /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:408:2: error: implicit declaration of function ‘misc_deregister’ [-Werror=implicit-function-declaration] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: In function ‘igb_set_interrupt_capability’: /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:1072:4: error: implicit declaration of function ‘pci_enable_msix’ [-Werror=implicit-function-declaration] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c: At top level: /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:2326:2: warning: initialization from incompatible pointer type [enabled by default] /home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.c:2326:2: warning: (near initialization for ‘igb_netdev_ops.ndo_set_vf_vlan’) [enabled by default] cc1: some warnings being treated as errors make[3]: [/home/prakash/Open_AVB_Automotive_Profile/kmod/igb/igb_main.o] Error 1 make[2]: [module/home/prakash/Open_AVB_Automotive_Profile/kmod/igb] Error 2 make[2]: Leaving directory/home/prakash/linux-4.12.8' make[1]: *** [default] Error 2 make[1]: Leaving directory
/home/prakash/Open_AVB_Automotive_Profile/kmod/igb' make: *** [igb] Error 2 root@prakash:/home/prakash/Open_AVB_Automotive_Profile#Please, help in building igb module. I am using a PC with Ubuntu 12.04 and kernel v4.12
Thanks and Regards, Narreddi