Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fail to compile e1000e on kernel 4.0.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
raphyz
n00b
n00b


Joined: 06 Oct 2015
Posts: 1

PostPosted: Tue Oct 06, 2015 3:54 am    Post subject: fail to compile e1000e on kernel 4.0.5 Reply with quote

Hi

I am now upgrading to kernel 4.0.5

I have an ethernet card:
lspci | grep -i eth
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)

The driver I previously used for this card was e1000e.

However trying to emerge it to the new kernel I fail with the following errors:

Emerging (2 of 2) net-misc/e1000e-2.4.14::x-portage
* e1000e-2.4.14.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux-4.0.5-gentoo
* Found kernel object directory:
* /lib/modules/4.0.5-gentoo/build
* Found sources for kernel version:
* 4.0.5-gentoo
* Checking for suitable kernel configuration options...
* CONFIG_E1000E has to be configured to Module to enable the replacement with this driver.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Unpacking e1000e-2.4.14.tar.gz to /var/tmp/portage/net-misc/e1000e-2.4.14/work
>>> Source unpacked in /var/tmp/portage/net-misc/e1000e-2.4.14/work
>>> Preparing source in /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src ...
ln: failed to create symbolic link ‘Module.symvers’: File exists
* Preparing e1000e module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KSRC=/usr/src/linux-4.0.5-gentoo default
make -C /usr/src/linux-4.0.5-gentoo SUBDIRS=/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src modules
make[1]: Entering directory '/usr/src/linux-4.0.5-gentoo'
CC [M] /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.o
CC [M] /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ethtool.o
CC [M] /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/param.o
CC [M] /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/82571.o
CC [M] /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ich8lan.o
In file included from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ethtool.c:40:0:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:390:22: error: field ‘cc’ has incomplete type
struct cyclecounter cc;
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:391:21: error: field ‘tc’ has incomplete type
struct timecounter tc;
^
In file included from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:55:0:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:390:22: error: field ‘cc’ has incomplete type
struct cyclecounter cc;
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:391:21: error: field ‘tc’ has incomplete type
struct timecounter tc;
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ethtool.c: In function ‘e1000e_set_ethtool_ops’:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ethtool.c:2640:2: error: implicit declaration of function ‘SET_ETHTOOL_OPS’ [-Werror=implicit-function-declaration]
SET_ETHTOOL_OPS(netdev, (struct ethtool_ops *)&e1000_ethtool_ops);
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c: In function ‘e1000e_systim_to_hwtstamp’:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:503:2: error: implicit declaration of function ‘timecounter_cyc2time’ [-Werror=implicit-function-declaration]
ns = timecounter_cyc2time(&adapter->tc, systim);
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c: In function ‘e1000_rx_hash’:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:946:6: error: ‘struct sk_buff’ has no member named ‘rxhash’
skb->rxhash = le32_to_cpu(rss);
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c: In function ‘e1000e_config_hwtstamp’:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:4087:2: error: implicit declaration of function ‘timecounter_init’ [-Werror=implicit-function-declaration]
timecounter_init(&adapter->tc, &adapter->cc,
^
In file included from include/linux/list.h:8:0,
from include/linux/module.h:9,
from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:31:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c: In function ‘e1000e_cyclecounter_read’:
include/linux/kernel.h:800:48: warning: initialization from incompatible pointer type [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:4522:34: note: in expansion of macro ‘container_of’
struct e1000_adapter *adapter = container_of(cc, struct e1000_adapter,
^
include/linux/kernel.h:800:48: warning: (near initialization for ‘adapter’) [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:4522:34: note: in expansion of macro ‘container_of’
struct e1000_adapter *adapter = container_of(cc, struct e1000_adapter,
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ethtool.o' failed
make[2]: *** [/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ethtool.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c: In function ‘e1000_transfer_dhcp_info’:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:5941:2: error: implicit declaration of function ‘vlan_tx_tag_present’ [-Werror=implicit-function-declaration]
if (vlan_tx_tag_present(skb) &&
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:5942:6: error: implicit declaration of function ‘vlan_tx_tag_get’ [-Werror=implicit-function-declaration]
!((vlan_tx_tag_get(skb) == adapter->hw.mng_cookie.vlan_id) &&
^
In file included from ./arch/x86/include/asm/apic.h:5:0,
from ./arch/x86/include/asm/smp.h:12,
from include/linux/smp.h:59,
from include/linux/topology.h:33,
from include/linux/gfp.h:8,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:31:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c: At top level:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:7913:21: error: ‘e1000e_pm_runtime_suspend’ undeclared here (not in a function)
SET_RUNTIME_PM_OPS(e1000e_pm_runtime_suspend, e1000e_pm_runtime_resume,
^
include/linux/pm.h:347:21: note: in definition of macro ‘SET_RUNTIME_PM_OPS’
.runtime_suspend = suspend_fn, \
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:7913:48: error: ‘e1000e_pm_runtime_resume’ undeclared here (not in a function)
SET_RUNTIME_PM_OPS(e1000e_pm_runtime_suspend, e1000e_pm_runtime_resume,
^
include/linux/pm.h:348:20: note: in definition of macro ‘SET_RUNTIME_PM_OPS’
.runtime_resume = resume_fn, \
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.c:7914:7: error: ‘e1000e_pm_runtime_idle’ undeclared here (not in a function)
e1000e_pm_runtime_idle)
^
include/linux/pm.h:349:18: note: in definition of macro ‘SET_RUNTIME_PM_OPS’
.runtime_idle = idle_fn,
^
In file included from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/param.c:33:0:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:390:22: error: field ‘cc’ has incomplete type
struct cyclecounter cc;
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:391:21: error: field ‘tc’ has incomplete type
struct timecounter tc;
^
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/param.o' failed
make[2]: *** [/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/param.o] Error 1
In file included from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ich8lan.c:58:0:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:390:22: error: field ‘cc’ has incomplete type
struct cyclecounter cc;
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:391:21: error: field ‘tc’ has incomplete type
struct timecounter tc;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.o' failed
make[2]: *** [/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/netdev.o] Error 1
In file included from /var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/82571.c:45:0:
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:390:22: error: field ‘cc’ has incomplete type
struct cyclecounter cc;
^
/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/e1000.h:391:21: error: field ‘tc’ has incomplete type
struct timecounter tc;
^
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ich8lan.o' failed
make[2]: *** [/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/ich8lan.o] Error 1
scripts/Makefile.build:258: recipe for target '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/82571.o' failed
make[2]: *** [/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src/82571.o] Error 1
Makefile:1390: recipe for target '_module_/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src' failed
make[1]: *** [_module_/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0.5-gentoo'
Makefile:242: recipe for target 'default' failed
make: *** [default] Error 2
* ERROR: net-misc/e1000e-2.4.14::x-portage failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=net-misc/e1000e-2.4.14::x-portage'`,
* the complete build log and the output of `emerge -pqv '=net-misc/e1000e-2.4.14::x-portage'`.
* The complete build log is located at '/var/tmp/portage/net-misc/e1000e-2.4.14/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/e1000e-2.4.14/temp/environment'.
* Working directory: '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src'
* S: '/var/tmp/portage/net-misc/e1000e-2.4.14/work/e1000e-2.4.14/src'

>>> Failed to emerge net-misc/e1000e-2.4.14, Log file:

>>> '/var/tmp/portage/net-misc/e1000e-2.4.14/temp/build.log'


any ideas why does it fail? DId I forget to set a flag in the kernel

Thanks

Raphy
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 455

PostPosted: Tue Oct 06, 2015 5:43 am    Post subject: Reply with quote

U have e1000e in kernel, use that
_________________
Sent from Windows
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum