Skip to contentSkip to conversation

netmap-modules: fix compilation failure

PATCH In review Chen Qi 2 participants 3 messages Oct 8, 2015 – Oct 9, 2015

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 netmap-modules: fix compilation failure

If CONFIG_IXGBE is enabled in kernel. This package fails to build with error messages like below.

| #error "unsupported ixgbe driver version"
| ^

.......

error: request for member 'count' in something not a structure or union

|   na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
|                                                ^
| cc1: some warnings being treated as errors

Fix this problem by disabling igxbe driver in netmap-modules.

---
 meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +2 -0
index f9ac9cc..c1c319d 100644
@@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
                 --driver-suffix="-netmap" \
                 "
 
+EXTRA_OECONF += "--no-drivers=ixgbe"
+
 LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
 LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
 
Signature · 1 line
1.9.1
#1 lore raw

Chen Qi,

Quoted 25 lines · Chen Qi

If CONFIG_IXGBE is enabled in kernel. This package fails to build with error messages like below.

| #error "unsupported ixgbe driver version"
| ^

.......

error: request for member 'count' in something not a structure or union

|   na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
|                                                ^
| cc1: some warnings being treated as errors

Fix this problem by disabling igxbe driver in netmap-modules.

---
 meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +0 -0
index f9ac9cc..c1c319d 100644

meta-networking/recipes-kernel/netmap/netmap-modules_git.bb EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \ · line 19

Quoted 5 lines
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +2 -0
@@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
                 --driver-suffix="-netmap" \
                 "
 
+EXTRA_OECONF += "--no-drivers=ixgbe"
+

Would the following also work?

+PACKAGECONFIG ?= ""
+PACKAGECONFIG[IXGBE] = "--drivers=ixgbe,--no-drivers=ixgbe"

Then we replicate that for the other kernel modules.

- armin

Quoted 4 lines
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +0 -0
 LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
 LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
 
author
#2 lore raw
Quoted 39 lines · On 10/08/2015 04:33 PM, akuster808 wrote:

Chen Qi,

Quoted 25 lines · Chen Qi

If CONFIG_IXGBE is enabled in kernel. This package fails to build with error messages like below.

| #error "unsupported ixgbe driver version"
| ^

.......

error: request for member 'count' in something not a structure or union

|   na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
|                                                ^
| cc1: some warnings being treated as errors

Fix this problem by disabling igxbe driver in netmap-modules.

---
  meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
  1 file changed, 2 insertions(+)
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +0 -0
index f9ac9cc..c1c319d 100644

meta-networking/recipes-kernel/netmap/netmap-modules_git.bb EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \ · line 19

Quoted 5 lines
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +2 -0
@@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
                  --driver-suffix="-netmap" \
                  "
 
+EXTRA_OECONF += "--no-drivers=ixgbe"
+

Would the following also work?

(quoted diff) +2 -0
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[IXGBE] = "--drivers=ixgbe,--no-drivers=ixgbe"
Quoted 3 lines

Then we replicate that for the other kernel modules.

- armin

The problem is that if 'IXGBE' is enabled, the compilation fails. I tried three values for the macro, none of them works.

Best Regards,
Chen Qi

Quoted 5 lines
Quoted 4 lines
meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +0 -0
  LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
  LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"