dpdk-armv7 - Build # 342 - Failure!
Hello Sergio,
I've detected a build regression for the ARMv7. It seems to me the source of the problem is the following commit:
http://dpdk.org/browse/dpdk/commit/?id=d299106e8e31a622b3a1c1653f7795fa8a55860e
The ipsec-secgw should be compiled only when LPM is enabled. See, eg. how the l3fwd-power example is done in examples/Makefile.
See the attached log file for details.
Regards
Jan Viktorin
Signature · 4 lines
Jan Viktorin E-mail: [email protected] System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic
Right!
Actually the app has dependencies on a few libraries, so I'll fix that.
Sergio
Quoted 15 lines · Jan Viktorin
Hello Sergio,
I've detected a build regression for the ARMv7. It seems to me the source of the problem is the following commit:
http://dpdk.org/browse/dpdk/commit/?id=d299106e8e31a622b3a1c1653f7795fa8a55860e
The ipsec-secgw should be compiled only when LPM is enabled. See, eg. how the l3fwd-power example is done in examples/Makefile.
See the attached log file for details.
Regards
Jan Viktorin
2016-03-11 11:47, Sergio Gonzalez Monroy:
Quoted 6 lines · Jan Viktorin
Quoted 5 lines
Hello Sergio,
I've detected a build regression for the ARMv7. It seems to me the source of the problem is the following commit:
Quoted 8 lines
Quoted 4 lines
http://dpdk.org/browse/dpdk/commit/?id=d299106e8e31a622b3a1c1653f7795fa8a55860e
The ipsec-secgw should be compiled only when LPM is enabled. See, eg. how the l3fwd-power example is done in examples/Makefile.
Right!
Actually the app has dependencies on a few libraries, so I'll fix that.
Please take the opportunity to move the crypto examples in the alphabetical order in this Makefile. Thanks
Quoted 9 lines · Thomas Monjalon
2016-03-11 11:47, Sergio Gonzalez Monroy:
Quoted 8 lines · Jan Viktorin
Quoted 7 lines
Hello Sergio,
I've detected a build regression for the ARMv7. It seems to me the source of the problem is the following commit:
http://dpdk.org/browse/dpdk/commit/?id=d299106e8e31a622b3a1c1653f7795fa8a55860e
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
The ipsec-secgw should be compiled only when LPM is enabled. See, eg. how the l3fwd-power example is done in examples/Makefile.
Right!
Actually the app has dependencies on a few libraries, so I'll fix that.
Please take the opportunity to move the crypto examples in the alphabetical order in this
Makefile. Thanks
So the fix is easy enough but I'm really not a fan of cluttering the examples/Makefile ifeq checks which would only avoid building ipsec-secgw if doing:
$ make examples
but would still fail to build if doing something like:
$ make -C examples/ipsec-secgw
I reckon that there are other CONFIG_XXX combinations that would results in failed builds.
So before sending the patch, this would be what we are getting:
examples/Makefile:
+ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
+ifeq ($(CONFIG_RTE_LIBRTE_HASH),y)
+ifeq ($(CONFIG_RTE_LIBRTE_LPM),y) DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw +endif
+endif
+endif
Another way to achive this and also avoid building the app with 'make -C ...' is something like this:
examples/ipsec-secgw/Makefile:
+all:
+%:
+ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
+ifeq ($(CONFIG_RTE_LIBRTE_HASH),y)
+ifeq ($(CONFIG_RTE_LIBRTE_LPM),y)
+ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)
include $(RTE_SDK)/mk/rte.extapp.mk
+endif
+endif
+endif
+endif
Anyway, none of those are the right fix, which I think should be something along the lines of Kconfig.
Any preference?
Sergio
2016-03-11 14:53, Sergio Gonzalez Monroy:
Quoted 20 lines · Thomas Monjalon
Quoted 9 lines
2016-03-11 11:47, Sergio Gonzalez Monroy:
Quoted 8 lines · Jan Viktorin
Quoted 7 lines
Hello Sergio,
I've detected a build regression for the ARMv7. It seems to me the source of the problem is the following commit:
http://dpdk.org/browse/dpdk/commit/?id=d299106e8e31a622b3a1c1653f7795fa8a55860eQuoted 9 lines
Quoted 5 lines
Quoted 2 lines
The ipsec-secgw should be compiled only when LPM is enabled. See, eg. how the l3fwd-power example is done in examples/Makefile.
Right!
Actually the app has dependencies on a few libraries, so I'll fix that.
Please take the opportunity to move the crypto examples in the alphabetical order in this
Makefile. Thanks
Quoted 7 lines
So the fix is easy enough but I'm really not a fan of cluttering the examples/Makefile ifeq checks
which would only avoid building ipsec-secgw if doing:$ make examplesbut would still fail to build if doing something like:
$ make -C examples/ipsec-secgw
If you explicitly want to build this example, it is normal to fail.
Review
Quoted 8 lines
examples/Makefile:
(quoted diff) +3
-0+ifeq ($(CONFIG_RTE_LIBRTE_ACL),y) +ifeq ($(CONFIG_RTE_LIBRTE_HASH),y) +ifeq ($(CONFIG_RTE_LIBRTE_LPM),y)DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw
(quoted diff) +3
-0+endif +endif +endif
You can do it in one line:
ifeq ($(CONFIG_RTE_LIBRTE_ACL)$(CONFIG_RTE_LIBRTE_HASH)$(CONFIG_RTE_LIBRTE_LPM),yyy)
Quoted 12 lines
Another way to achive this and also avoid building the app with 'make -C ...' is something like this:
examples/ipsec-secgw/Makefile:
(quoted diff) +6
-0+all: +%: +ifeq ($(CONFIG_RTE_LIBRTE_ACL),y) +ifeq ($(CONFIG_RTE_LIBRTE_HASH),y) +ifeq ($(CONFIG_RTE_LIBRTE_LPM),y) +ifeq ($(CONFIG_RTE_LIBRTE_CRYPTODEV),y)include $(RTE_SDK)/mk/rte.extapp.mk
Review
Quoted 4 lines
(quoted diff) +4
-0+endif +endif +endif +endif
No, as said above, you should not be smart here and let it fail.
Quoted 2 lines
Anyway, none of those are the right fix, which I think should be something along the lines of
Kconfig.
Yes maybe one day...
Quoted 1 line
Any preference?
First one
Quoted 20 lines · Thomas Monjalon
2016-03-11 14:53, Sergio Gonzalez Monroy:
Quoted 19 lines · Thomas Monjalon
Quoted 18 lines
2016-03-11 11:47, Sergio Gonzalez Monroy:
Quoted 6 lines · Jan Viktorin
Quoted 5 lines
Hello Sergio,
I've detected a build regression for the ARMv7. It seems to me the source of the problem is the following commit:
Quoted 7 lines
Quoted 4 lines
http://dpdk.org/browse/dpdk/commit/?id=d299106e8e31a622b3a1c1653f7795fa8a55860eThe ipsec-secgw should be compiled only when LPM is enabled. See, eg. how the l3fwd-power example is done in examples/Makefile.
Right!
Actually the app has dependencies on a few libraries, so I'll fix that.
Please take the opportunity to move the crypto examples in the alphabetical order in this
Makefile. Thanks
Quoted 8 lines
Quoted 7 lines
So the fix is easy enough but I'm really not a fan of cluttering the examples/Makefile ifeq checks
which would only avoid building ipsec-secgw if doing:$ make examplesbut would still fail to build if doing something like:
$ make -C examples/ipsec-secgwIf you explicitly want to build this example, it is normal to fail.
Fair enough.
Quoted 10 lines
Review
Quoted 8 lines
examples/Makefile:
(quoted diff) +3
-0+ifeq ($(CONFIG_RTE_LIBRTE_ACL),y) +ifeq ($(CONFIG_RTE_LIBRTE_HASH),y) +ifeq ($(CONFIG_RTE_LIBRTE_LPM),y)DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw
(quoted diff) +3
-0+endif +endif +endifYou can do it in one line:
ifeq ($(CONFIG_RTE_LIBRTE_ACL)$(CONFIG_RTE_LIBRTE_HASH)$(CONFIG_RTE_LIBRTE_LPM),yyy)
The line above goes to 85 chars, are you ok with that? or do I split it in two lines?
Sergio
2016-03-11 15:11, Sergio Gonzalez Monroy:
Quoted 13 lines · Thomas Monjalon
Quoted 11 lines
2016-03-11 14:53, Sergio Gonzalez Monroy:
Review
Quoted 8 lines
examples/Makefile:
(quoted diff) +3
-0+ifeq ($(CONFIG_RTE_LIBRTE_ACL),y) +ifeq ($(CONFIG_RTE_LIBRTE_HASH),y) +ifeq ($(CONFIG_RTE_LIBRTE_LPM),y)DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += ipsec-secgw
(quoted diff) +3
-0+endif +endif +endifYou can do it in one line:
ifeq ($(CONFIG_RTE_LIBRTE_ACL)$(CONFIG_RTE_LIBRTE_HASH)$(CONFIG_RTE_LIBRTE_LPM),yyy)
Quoted 2 lines
The line above goes to 85 chars, are you ok with that? or do I split it in two lines?
OK in one line