From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 18922A058A; Thu, 2 Apr 2020 10:05:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F41841BECC; Thu, 2 Apr 2020 10:05:24 +0200 (CEST) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by dpdk.org (Postfix) with ESMTP id 4C479375B for ; Thu, 2 Apr 2020 10:05:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id EBE56C19D5 for ; Thu, 2 Apr 2020 10:05:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZZESY-s_Vf8j for ; Thu, 2 Apr 2020 10:05:21 +0200 (CEST) Received: from mail.pantheon.sk (srvw-ptex1.pantheon.local [10.101.4.5]) by lb.pantheon.sk (Postfix) with ESMTPS id DEE88C0853 for ; Thu, 2 Apr 2020 10:05:21 +0200 (CEST) Received: from srvw-ptex1.pantheon.local (10.101.4.5) by srvw-ptex1.pantheon.local (10.101.4.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 2 Apr 2020 10:05:21 +0200 Received: from srvw-ptex1.pantheon.local ([::1]) by srvw-ptex1.pantheon.local ([fe80::b583:f9c5:55e8:f949%7]) with mapi id 15.01.1779.002; Thu, 2 Apr 2020 10:05:21 +0200 From: =?iso-8859-2?Q?Juraj_Linke=B9?= To: "dev@dpdk.org" Thread-Topic: ARM Clang cross-compilation Thread-Index: AdYIwmtixuXZ2BshTtuNmwSea71XJg== Date: Thu, 2 Apr 2020 08:05:21 +0000 Message-ID: <2b9d22ebe1c041788572d0a6e1e57103@pantheon.tech> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.101.4.10] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] ARM Clang cross-compilation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 tri= ed a meson build with this cross file: [binaries] c =3D 'clang-9' cpp =3D 'clang++-9' ar =3D 'llvm-ar-9' strip =3D 'llvm-strip-9' llvm-config =3D 'llvm-config-9' pcap-config =3D '' [host_machine] system =3D 'linux' cpu_family =3D 'aarch64' cpu =3D 'armv8-a' endian =3D 'little' [properties] implementor_id =3D 'generic' implementor_pn =3D 'default' But I'm hitting these errors: ../lib/librte_eal/common/include/arch/arm/rte_pause_64.h:23:15: error: inva= lid instruction mnemonic 'yield' asm volatile("yield" ::: "memory"); ^ :1:2: note: instantiated into assembly here yield ^~~~~ Full log here https://pastebin.com/raw/r04MVYti. Looking at meson docs, I was under the impression that I only needed the ri= ght config in the cross-file, but I don't know whether there's a problem wi= th my cross file or there's a problem with the build. Any help would be appreciated. Thanks, Juraj