DPDK patches and discussions
 help / color / mirror / Atom feed
From: Juraj Linkeš <juraj.linkes@pantheon.tech>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] ARM Clang cross-compilation
Date: Thu, 2 Apr 2020 08:05:21 +0000
Message-ID: <2b9d22ebe1c041788572d0a6e1e57103@pantheon.tech> (raw)

Hi dpdk devs,

Has anyone tried to do an x86 -> aarch64 cross compilation using clang (I'm using an 4.15.0-91-generic Ubuntu 18.04 VM as the build machine)? I've tried a meson build with this cross file:
c = 'clang-9'
cpp = 'clang++-9'
ar = 'llvm-ar-9'
strip = 'llvm-strip-9'
llvm-config = 'llvm-config-9'
pcap-config = ''

system = 'linux'
cpu_family = 'aarch64'
cpu = 'armv8-a'
endian = 'little'

implementor_id = 'generic'
implementor_pn = 'default'

But I'm hitting these errors:
../lib/librte_eal/common/include/arch/arm/rte_pause_64.h:23:15: error: invalid instruction mnemonic 'yield'
        asm volatile("yield" ::: "memory");
<inline asm>:1:2: note: instantiated into assembly here

Full log here https://pastebin.com/raw/r04MVYti.

Looking at meson docs, I was under the impression that I only needed the right config in the cross-file, but I don't know whether there's a problem with my cross file or there's a problem with the build.

Any help would be appreciated.

                 reply	other threads:[~2020-04-02  8:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b9d22ebe1c041788572d0a6e1e57103@pantheon.tech \
    --to=juraj.linkes@pantheon.tech \
    --cc=dev@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git