Hi, I am trying to cross compile OVS 2.5.90 for arm64. I followed the below link to checkout OVS.
git clone https://github.com/openvswitch/ovs.git I was trying to cross-compile with the below commands: #> ./boot.sh #> ./configure --with-linux=/bsp/ls2-linux KARCH=aarch64 --host=aarch64 #> make After executing the 'make' command, I got the below error message several times: In file included from include/linux/percpu.h:12:0, from /bsp/ovs-xcompile/ovs/datapath/linux/compat/include/linux/percpu.h:4, from include/linux/netdevice.h:36, from /bsp/ovs-xcompile/ovs/datapath/linux/compat/include/linux/netdevice.h:4, from /bsp/ovs-xcompile/ovs/datapath/linux/ip6_output.c:41: include/net/ipv6.h:129:37: error: 'struct netns_mib' has no member named 'ipv6_statistics' SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ ^ ./arch/arm64/include/asm/percpu.h:230:22: note: in definition of macro '_pcp_protect' (val), sizeof(pcp)); \ ^ ./arch/arm64/include/asm/percpu.h:252:34: note: in expansion of macro '_percpu_add' #define this_cpu_add_8(pcp, val) _percpu_add(pcp, val) ^ include/linux/percpu-defs.h:367:11: note: in expansion of macro 'this_cpu_add_8' case 8: stem##8(variable, __VA_ARGS__);break; \ ^ include/linux/percpu-defs.h:498:33: note: in expansion of macro '__pcpu_size_call' #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ include/linux/percpu-defs.h:509:28: note: in expansion of macro 'this_cpu_add' #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) ^ include/net/snmp.h:136:4: note: in expansion of macro 'this_cpu_inc' this_cpu_inc(mib->mibs[field]) ^ include/net/snmp.h:204:39: note: in expansion of macro 'SNMP_INC_STATS' #define SNMP_INC_STATS64(mib, field) SNMP_INC_STATS(mib, field) ^ include/net/ipv6.h:129:2: note: in expansion of macro 'SNMP_INC_STATS64' SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ ^ include/net/ipv6.h:169:3: note: in expansion of macro '_DEVINC' _DEVINC(net, ipv6, 64, idev, field) ^ /bsp/ovs-xcompile/ovs/datapath/linux/ip6_output.c:433:2: note: in expansion of macro 'IP6_INC_STATS' IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), ^ make[5]: *** [/bsp/ovs-xcompile/ovs/datapath/linux/ip6_output.o] Error 1 make[4]: *** [_module_/bsp/ovs-xcompile/ovs/datapath/linux] Error 2 make[4]: Leaving directory `/bsp/ls2-linux' make[3]: *** [default] Error 2 make[3]: Leaving directory `/bsp/ovs-xcompile/ovs/datapath/linux' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/bsp/ovs-xcompile/ovs/datapath' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/bsp/ovs-xcompile/ovs' make: *** [all] Error 2 Can anyone please let me know the root cause of the issue and fix? Thanks in advance. Regards, Srikanth. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev