From: Ruifeng Wang <Ruifeng.Wang@arm.com>
To: "David Marchand" <david.marchand@redhat.com>,
"Juraj Linkeš" <juraj.linkes@pantheon.tech>,
"jerinj@marvell.com" <jerinj@marvell.com>
Cc: dev <dev@dpdk.org>, Aaron Conole <aconole@redhat.com>,
Michael Santana <maicolgabriel@hotmail.com>,
Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>,
nd <nd@arm.com>
Subject: Re: [dpdk-dev] [PATCH] ci: fix aarch64 cross compilation in GHA
Date: Fri, 29 Oct 2021 10:07:07 +0000 [thread overview]
Message-ID: <AS8PR08MB7080E469CA552EC2E7D215429E879@AS8PR08MB7080.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <CAJFAV8wNrkcLj0NFzfdbEOtGyMrsbKL+DpUaz_L92SCkQqdcFw@mail.gmail.com>
> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Friday, October 29, 2021 5:53 PM
> To: Juraj Linkeš <juraj.linkes@pantheon.tech>; jerinj@marvell.com
> Cc: dev <dev@dpdk.org>; Aaron Conole <aconole@redhat.com>; Michael
> Santana <maicolgabriel@hotmail.com>; Ruifeng Wang
> <Ruifeng.Wang@arm.com>; Honnappa Nagarahalli
> <Honnappa.Nagarahalli@arm.com>
> Subject: Re: [dpdk-dev] [PATCH] ci: fix aarch64 cross compilation in GHA
>
> On Fri, Oct 29, 2021 at 11:26 AM David Marchand
> <david.marchand@redhat.com> wrote:
> >
> > 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
> >
> > Fixes: 5d0b4ffa6964 ("ci: add aarch64 clang cross-compilation Travis
> > builds")
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> > ---
> > 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
> -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]'
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>
> [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
next prev parent reply other threads:[~2021-10-29 10:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 9:25 David Marchand
2021-10-29 9:53 ` David Marchand
2021-10-29 10:07 ` Ruifeng Wang [this message]
2021-10-29 11:27 ` [dpdk-dev] [PATCH v2] " David Marchand
2021-10-29 13:37 ` Aaron Conole
2021-11-02 17:13 ` David Marchand
2021-10-29 15:02 ` David Marchand
2021-11-01 7:52 ` Ruifeng Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AS8PR08MB7080E469CA552EC2E7D215429E879@AS8PR08MB7080.eurprd08.prod.outlook.com \
--to=ruifeng.wang@arm.com \
--cc=Honnappa.Nagarahalli@arm.com \
--cc=aconole@redhat.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=juraj.linkes@pantheon.tech \
--cc=maicolgabriel@hotmail.com \
--cc=nd@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).