ci: fix aarch64 cross compilation in GHA
PATCH 1/1 ci: fix aarch64 cross compilation in GHA
Afaics, CC_FOR_BUILD is a Travis env variable.
This results in GHA aarch64 cross compilation jobs building x86 binaries.
Example in a recent job on main branch:
2021-10-28T09:51:06.4976495Z + .ci/linux-build.sh 2021-10-28T09:51:06.4985674Z + [ -n build ] 2021-10-28T09:51:06.4987636Z + [ true = true ] 2021-10-28T09:51:06.4987991Z + [ = gcc ] 2021-10-28T09:51:06.4989419Z + [ = clang ] 2021-10-28T09:51:06.4990907Z + [ false = true ] 2021-10-28T09:51:06.4991348Z + [ false = true ] 2021-10-28T09:51:06.4992846Z + [ static = static ] 2021-10-28T09:51:06.4993550Z + OPTS= -Dexamples=l2fwd,l3fwd 2021-10-28T09:51:06.4995388Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic 2021-10-28T09:51:06.4996279Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static 2021-10-28T09:51:06.4998553Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized 2021-10-28T09:51:06.4999949Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true 2021-10-28T09:51:06.5002643Z + meson build --werror
-Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true
---
This patch can't be merged right away, since build issues are now raised in GHA.
Please ARM people, have a look.
Thanks.
--- .ci/linux-build.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
.ci/linux-build.sh +4 -5
@@ -54,11 +54,10 @@ catch_coredump() { } if [ "$AARCH64" = "true" ]; then - # convert the arch specifier - if [ "$CC_FOR_BUILD" = "gcc" ]; then - OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc" - elif [ "$CC_FOR_BUILD" = "clang" ]; then - OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_clang_ubuntu1804" + if [ "${CC%%clang}" != "$CC" ]; then + OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_clang_ubuntu1804" + else + OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc" fi fi
Signature · 1 line
2.23.0
Quoted 28 lines · David Marchand
Afaics,
CC_FOR_BUILDis a Travis env variable.
This results in GHA aarch64 cross compilation jobs building x86 binaries.Example in a recent job on main branch:
2021-10-28T09:51:06.4976495Z + .ci/linux-build.sh 2021-10-28T09:51:06.4985674Z + [ -n build ] 2021-10-28T09:51:06.4987636Z + [ true = true ] 2021-10-28T09:51:06.4987991Z + [ = gcc ] 2021-10-28T09:51:06.4989419Z + [ = clang ] 2021-10-28T09:51:06.4990907Z + [ false = true ] 2021-10-28T09:51:06.4991348Z + [ false = true ] 2021-10-28T09:51:06.4992846Z + [ static = static ] 2021-10-28T09:51:06.4993550Z + OPTS= -Dexamples=l2fwd,l3fwd 2021-10-28T09:51:06.4995388Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic 2021-10-28T09:51:06.4996279Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static 2021-10-28T09:51:06.4998553Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized 2021-10-28T09:51:06.4999949Z + OPTS= -Dexamples=l2fwd,l3fwd(quoted diff) +0
-2-Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true2021-10-28T09:51:06.5002643Z + meson build --werror-Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true
Quoted 8 lines
Fixes 5d0b4ffa6964 ("ci: add aarch64 clang cross-compilation Travis builds")Signed-off-by David Marchand <[email protected]>---
This patch can't be merged right away, since build issues are now raised in GHA.
Please ARM people, have a look.
Thanks.
https://github.com/ovsrobot/dpdk/runs/4045007618?check_suite_focus=true
[2123/2985] Compiling C object 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o'.
FAILED: drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o aarch64-linux-gnu-gcc -Idrivers/a715181@@tmp_rte_event_cnxk@sta -Idrivers -I../drivers -Idrivers/event/cnxk -I../drivers/event/cnxk -Ilib/eventdev -I../lib/eventdev -I. -I../ -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/arm/include -I../lib/eal/arm/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/ring -I../lib/ring -Ilib/ethdev -I../lib/ethdev -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/meter -I../lib/meter -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Ilib/timer -I../lib/timer -Ilib/cryptodev -I../lib/cryptodev -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/common/cnxk/../../bus/pci -I../drivers/common/cnxk/../../bus/pci -Idrivers/common/cnxk/../../../lib/net -I../drivers/common/cnxk/../../../lib/net -Idrivers/common/cnxk/../../../lib/ethdev -I../drivers/common/cnxk/../../../lib/ethdev -Idrivers/common/cnxk/../../../lib/meter -I../drivers/common/cnxk/../../../lib/meter -Ilib/security -I../lib/security -Idrivers/net/cnxk -I../drivers/net/cnxk -Idrivers/bus/vdev -I../drivers/bus/vdev -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -Idrivers/crypto/cnxk -I../drivers/crypto/cnxk -Idrivers/crypto/cnxk/../../../lib/net -I../drivers/crypto/cnxk/../../../lib/net -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=armv8-a+crc -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.event.cnxk -MD -MQ 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o' -MF 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o.d' -o 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o' -c ../drivers/event/cnxk/cn10k_worker_deq_ca.c
{standard input}: Assembler messages:
{standard input}:799: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:3314: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:11923: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:14807: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:16771: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:17883: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x5]'
{standard input}:20012: Error: reg pair must start from even reg at operand 1 -- `caspl x11,x12,x11,x12,[x4]'
{standard input}:21194: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x5]'
{standard input}:24342: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:27403: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:45147: Error: reg pair must start from even reg at operand 1 -- `caspl x15,x16,x15,x16,[x5]'
{standard input}:49266: Error: reg pair must start from even reg at operand 1 -- `caspl x15,x16,x15,x16,[x5]'
{standard input}:56283: Error: reg pair must start from even reg at operand 1 -- `caspl x15,x16,x15,x16,[x4]'
{standard input}:58457: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:59932: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:62327: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:63856: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:66288: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:69922: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:75289: Error: reg pair must start from even reg at operand 1 -- `caspl x17,x18,x17,x18,[x5]'
{standard input}:83560: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:87393: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:89816: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:94130: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:98635: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:100325: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:102889: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:104626: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:107220: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x2]'
{standard input}:112059: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x2]'
{standard input}:117986: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x4]'
{standard input}:121023: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x4]'
{standard input}:131204: Error: reg pair must start from even reg at operand 1 -- `caspl x17,x18,x17,x18,[x4]'
{standard input}:133441: Error: reg pair must start from even reg at operand 1 -- `caspl x7,x8,x7,x8,[x4]'
{standard input}:134751: Error: reg pair must start from even reg at operand 1 -- `caspl x17,x18,x17,x18,[x4]'
{standard input}:137052: Error: reg pair must start from even reg at operand 1 -- `caspl x7,x8,x7,x8,[x4]'
{standard input}:138528: Error: reg pair must start from even reg at operand 1 -- `caspl x15,x16,x15,x16,[x5]'
{standard input}:141011: Error: reg pair must start from even reg at operand 1 -- `caspl x7,x8,x7,x8,[x4]'
{standard input}:142549: Error: reg pair must start from even reg at operand 1 -- `caspl x15,x16,x15,x16,[x5]'
{standard input}:149947: Error: reg pair must start from even reg at operand 1 -- `caspl x17,x18,x17,x18,[x4]'
{standard input}:153785: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x5]'
{standard input}:157805: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x5]'
{standard input}:168528: Error: reg pair must start from even reg at operand 1 -- `caspl x7,x8,x7,x8,[x3]'
{standard input}:182834: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:185239: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:189542: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:193925: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:195587: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:198151: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x4]'
{standard input}:199857: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x4]'
{standard input}:202475: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x2]'
{standard input}:207339: Error: reg pair must start from even reg at operand 1 -- `caspl x9,x10,x9,x10,[x2]'
{standard input}:218197: Error: reg pair must start from even reg at operand 1 -- `caspl x23,x24,x23,x24,[x4]'
{standard input}:256955: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
{standard input}:258753: Error: reg pair must start from even reg at operand 1 -- `caspl x23,x24,x23,x24,[x0]'
{standard input}:264566: Error: reg pair must start from even reg at operand 1 -- `caspl x23,x24,x23,x24,[x0]'
{standard input}:299615: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x0]'
{standard input}:308393: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:314761: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:333316: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:339849: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:346259: Error: reg pair must start from even reg at operand 1 -- `caspl x5,x6,x5,x6,[x0]'
{standard input}:352566: Error: reg pair must start from even reg at operand 1 -- `caspl x3,x4,x3,x4,[x0]'
{standard input}:409947: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:413049: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:417049: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:420238: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:445261: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:452790: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x0]'
{standard input}:470858: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x0]'
{standard input}:491830: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:498232: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:558070: Error: reg pair must start from even reg at operand 1 -- `caspl x3,x4,x3,x4,[x0]'
{standard input}:564810: Error: reg pair must start from even reg at operand 1 -- `caspl x21,x22,x21,x22,[x0]'
{standard input}:568689: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:571755: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:575701: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:578839: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:603742: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:625583: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:628910: Error: reg pair must start from even reg at operand 1 -- `caspl x7,x8,x7,x8,[x0]'
{standard input}:633102: Error: reg pair must start from even reg at operand 1 -- `caspl x27,x28,x27,x28,[x0]'
{standard input}:636505: Error: reg pair must start from even reg at operand 1 -- `caspl x7,x8,x7,x8,[x0]'
[2124/2985] Compiling C object 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_tx_enq.c.o'.
ninja: build stopped: subcommand failed.
Error: Process completed with exit code 1.
Signature · 1 line
David Marchand
Quoted 96 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Friday, October 29, 2021 5:53 PM
To: Juraj Linkeš <[email protected]>; [email protected]
Cc: dev <[email protected]>; Aaron Conole <[email protected]>; Michael Santana <[email protected]>; Ruifeng Wang <[email protected]>; Honnappa Nagarahalli <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ci: fix aarch64 cross compilation in GHAQuoted 27 lines · David Marchand
Afaics,
CC_FOR_BUILDis a Travis env variable.
This results in GHA aarch64 cross compilation jobs building x86 binaries.Example in a recent job on main branch:
2021-10-28T09:51:06.4976495Z + .ci/linux-build.sh 2021-10-28T09:51:06.4985674Z + [ -n build ] 2021-10-28T09:51:06.4987636Z + [ true = true ] 2021-10-28T09:51:06.4987991Z + [ = gcc ] 2021-10-28T09:51:06.4989419Z + [ = clang ] 2021-10-28T09:51:06.4990907Z + [ false = true ] 2021-10-28T09:51:06.4991348Z + [ false = true ] 2021-10-28T09:51:06.4992846Z + [ static = static ] 2021-10-28T09:51:06.4993550Z + OPTS= -Dexamples=l2fwd,l3fwd 2021-10-28T09:51:06.4995388Z + OPTS= -Dexamples=l2fwd,l3fwd(quoted diff) +0
-2-Dplatform=generic 2021-10-28T09:51:06.4996279Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static2021-10-28T09:51:06.4998553Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized 2021-10-28T09:51:06.4999949Z + OPTS= -Dexamples=l2fwd,l3fwd(quoted diff) +0
-5-Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true 2021-10-28T09:51:06.5002643Z + meson build --werror -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=trueFixes 5d0b4ffa6964 ("ci: add aarch64 clang cross-compilation TravisQuoted 8 lines
builds")
Signed-off-by David Marchand <[email protected]>---
This patch can't be merged right away, since build issues are now raised in GHA.
Please ARM people, have a look.
Thanks.https://github.com/ovsrobot/dpdk/runs/4045007618?check_suite_focus=tr
ue[2123/2985] Compiling C object '
drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o'.
FAILED:drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o
aarch64-linux-gnu-gcc -Idrivers/a715181@@tmp_rte_event_cnxk@sta -Idrivers -I../drivers -Idrivers/event/cnxk -I../drivers/event/cnxk - Ilib/eventdev -I../lib/eventdev -I. -I../ -Iconfig -I../config -Ilib/eal/include - I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include - Ilib/eal/arm/include -I../lib/eal/arm/include -Ilib/eal/common - I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs - Ilib/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry - I../lib/telemetry -Ilib/ring -I../lib/ring -Ilib/ethdev -I../lib/ethdev -Ilib/net - I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/meter -I../lib/meter -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -Ilib/timer - I../lib/timer -Ilib/cryptodev -I../lib/cryptodev -Idrivers/bus/pci - I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci - Idrivers/common/cnxk -I../drivers/common/cnxk - Idrivers/common/cnxk/../../bus/pci(quoted diff) +0
-7-I../drivers/common/cnxk/../../bus/pci -Idrivers/common/cnxk/../../../lib/net -I../drivers/common/cnxk/../../../lib/net -Idrivers/common/cnxk/../../../lib/ethdev -I../drivers/common/cnxk/../../../lib/ethdev -Idrivers/common/cnxk/../../../lib/meter -I../drivers/common/cnxk/../../../lib/meter -Ilib/security -I../lib/security -Idrivers/net/cnxk -I../drivers/net/cnxk -Idrivers/bus/vdev - I../drivers/bus/vdev -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk - Idrivers/crypto/cnxk -I../drivers/crypto/cnxk - Idrivers/crypto/cnxk/../../../lib/net -I../drivers/crypto/cnxk/../../../lib/net -fdiagnostics-color=always -pipe - D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O2 -g -include
rte_config.h-Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat- nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes - Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare - Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE-fPIC -march=armv8-a+crc -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API-Wno-format-truncation -flax-vector-conversions - Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.event.cnxk -MD - MQ 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o'
-MF 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_
Quoted 8 lines
deq_ca.c.o.d'
-o 'drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_deq_ca.c.o'
-c../drivers/event/cnxk/cn10k_worker_deq_ca.c
{standard input}: Assembler messages:
{standard input}:799: Error: reg pair must start from even reg at operand 1 -- `caspl x25,x26,x25,x26,[x4]'
This is a known issue in some versions of compiler.
The conclusion was to disable cnxk driver for builds with the toolchain.
https://bugs.dpdk.org/show_bug.cgi?id=697
Thanks,
Ruifeng
<snip>
Quoted 10 lines
[2124/2985] Compiling C object '
drivers/a715181@@tmp_rte_event_cnxk@sta/event_cnxk_cn10k_worker_tx_enq.c.o'.
ninja: build stopped: subcommand failed.
Error: Process completed with exit code 1.--
David Marchand
PATCH v2 1/1 ci: fix aarch64 cross compilation in GHA
In reply to David MarchandCC_FOR_BUILD is a Travis env variable.
This results in GHA aarch64 cross compilation jobs building x86 binaries.
Example in a recent job on main branch:
2021-10-28T09:51:06.4976495Z + .ci/linux-build.sh 2021-10-28T09:51:06.4985674Z + [ -n build ] 2021-10-28T09:51:06.4987636Z + [ true = true ] 2021-10-28T09:51:06.4987991Z + [ = gcc ] 2021-10-28T09:51:06.4989419Z + [ = clang ] 2021-10-28T09:51:06.4990907Z + [ false = true ] 2021-10-28T09:51:06.4991348Z + [ false = true ] 2021-10-28T09:51:06.4992846Z + [ static = static ] 2021-10-28T09:51:06.4993550Z + OPTS= -Dexamples=l2fwd,l3fwd 2021-10-28T09:51:06.4995388Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic 2021-10-28T09:51:06.4996279Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static 2021-10-28T09:51:06.4998553Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized 2021-10-28T09:51:06.4999949Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true 2021-10-28T09:51:06.5002643Z + meson build --werror
-Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true
common/cnxk has issues with Ubuntu 18.04 cross compiler.
It is a known issue (https://bugs.dpdk.org/show_bug.cgi?id=697), disable it.
---
Changes since v1:
- disable common/cnxk compilation
--- .ci/linux-build.sh | 12 +++++++----- .github/workflows/build.yml | 2 ++ 2 files changed, 9 insertions(+), 5 deletions(-)
.ci/linux-build.sh +7 -5
@@ -54,11 +54,13 @@ catch_coredump() { } if [ "$AARCH64" = "true" ]; then - # convert the arch specifier - if [ "$CC_FOR_BUILD" = "gcc" ]; then - OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc" - elif [ "$CC_FOR_BUILD" = "clang" ]; then - OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_clang_ubuntu1804" + # Note: common/cnxk is disabled for Ubuntu 18.04 + # https://bugs.dpdk.org/show_bug.cgi?id=697 + OPTS="$OPTS -Ddisable_drivers=common/cnxk" + if [ "${CC%%clang}" != "$CC" ]; then + OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_clang_ubuntu1804" + else + OPTS="$OPTS --cross-file config/arm/arm64_armv8_linux_gcc" fi fi
.github/workflows/build.yml +2 -0
@@ -46,6 +46,8 @@ jobs: compiler: gcc library: static cross: i386 + # Note: common/cnxk is disabled for Ubuntu 18.04 + # https://bugs.dpdk.org/show_bug.cgi?id=697 - os: ubuntu-18.04 compiler: gcc library: static
Signature · 1 line
2.23.0
Quoted 31 lines · David Marchand
CC_FOR_BUILDis a Travis env variable.
This results in GHA aarch64 cross compilation jobs building x86 binaries.Example in a recent job on main branch:
2021-10-28T09:51:06.4976495Z + .ci/linux-build.sh 2021-10-28T09:51:06.4985674Z + [ -n build ] 2021-10-28T09:51:06.4987636Z + [ true = true ] 2021-10-28T09:51:06.4987991Z + [ = gcc ] 2021-10-28T09:51:06.4989419Z + [ = clang ] 2021-10-28T09:51:06.4990907Z + [ false = true ] 2021-10-28T09:51:06.4991348Z + [ false = true ] 2021-10-28T09:51:06.4992846Z + [ static = static ] 2021-10-28T09:51:06.4993550Z + OPTS= -Dexamples=l2fwd,l3fwd 2021-10-28T09:51:06.4995388Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic 2021-10-28T09:51:06.4996279Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static 2021-10-28T09:51:06.4998553Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized 2021-10-28T09:51:06.4999949Z + OPTS= -Dexamples=l2fwd,l3fwd(quoted diff) +0
-2-Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true2021-10-28T09:51:06.5002643Z + meson build --werror-Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true
common/cnxk has issues with Ubuntu 18.04 cross compiler.
It is a known issue (https://bugs.dpdk.org/show_bug.cgi?id=697), disable it.
Quoted 6 lines
Fixes 5d0b4ffa6964 ("ci: add aarch64 clang cross-compilation Travis builds")Signed-off-by David Marchand <[email protected]>---
Changes since v1:
- disable common/cnxk compilation
David Marchand
AppliedQuoted 31 lines · Aaron Conole
Quoted 31 lines
CC_FOR_BUILDis a Travis env variable.
This results in GHA aarch64 cross compilation jobs building x86 binaries.Example in a recent job on main branch:
2021-10-28T09:51:06.4976495Z + .ci/linux-build.sh 2021-10-28T09:51:06.4985674Z + [ -n build ] 2021-10-28T09:51:06.4987636Z + [ true = true ] 2021-10-28T09:51:06.4987991Z + [ = gcc ] 2021-10-28T09:51:06.4989419Z + [ = clang ] 2021-10-28T09:51:06.4990907Z + [ false = true ] 2021-10-28T09:51:06.4991348Z + [ false = true ] 2021-10-28T09:51:06.4992846Z + [ static = static ] 2021-10-28T09:51:06.4993550Z + OPTS= -Dexamples=l2fwd,l3fwd 2021-10-28T09:51:06.4995388Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic 2021-10-28T09:51:06.4996279Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static 2021-10-28T09:51:06.4998553Z + OPTS= -Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized 2021-10-28T09:51:06.4999949Z + OPTS= -Dexamples=l2fwd,l3fwd(quoted diff) +0
-2-Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true2021-10-28T09:51:06.5002643Z + meson build --werror-Dexamples=l2fwd,l3fwd -Dplatform=generic --default-library=static --buildtype=debugoptimized -Dcheck_includes=true
common/cnxk has issues with Ubuntu 18.04 cross compiler.
It is a known issue (https://bugs.dpdk.org/show_bug.cgi?id=697), disable it.
Quoted 5 lines
Quoted 3 lines
Fixes 5d0b4ffa6964 ("ci: add aarch64 clang cross-compilation Travis builds")Signed-off-by David Marchand <[email protected]>Acked-by Aaron Conole <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand
Quoted 2 lines · David Marchand
CC_FOR_BUILDis a Travis env variable.
If ARM still has some credits for Travis builds, can you try this patch? Thanks.
Signature · 1 line
David Marchand
Ruifeng Wang
Reviewed-byQuoted 10 lines
-----Original Message-----
From: David Marchand <[email protected]>
Sent: Friday, October 29, 2021 11:02 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Honnappa Nagarahalli <[email protected]>
Cc: dev <[email protected]>; [email protected]; Aaron Conole <[email protected]>; Michael Santana <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v2] ci: fix aarch64 cross compilation in GHA
Quoted 7 lines
Quoted 2 lines · David Marchand
CC_FOR_BUILDis a Travis env variable.If ARM still has some credits for Travis builds, can you try this patch? Thanks.
I have no credit to try Travis run.
But the change looks good.
Quoted 3 lines
--
David Marchand