* [dpdk-dev] ARM Clang cross-compilation
@ 2020-04-02 8:05 Juraj Linkeš
0 siblings, 0 replies; only message in thread
From: Juraj Linkeš @ 2020-04-02 8:05 UTC (permalink / 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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-02 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 8:05 [dpdk-dev] ARM Clang cross-compilation Juraj Linkeš
DPDK patches and discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://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/ http://inbox.dpdk.org/dev \
Example config snippet for mirrors.
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git