From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id CA5E75921 for ; Tue, 13 Sep 2016 17:07:25 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id b187so309992wme.1 for ; Tue, 13 Sep 2016 08:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=vtYfFoJKzNVAEtkKzyVBEcXlVjUPUgafPX1iLZUDBSc=; b=Pazz75p9wGCRhDflAPOXf4AA2C9UDq30s99I1SH5KDhs9trUGnq8SJvgjXux9KeC4V Hl5tgKqrEXIsltKTHJVI8GjsXghjeXHz8+FMMM516Rbu9ZoEjaxryUrQ6uRvFoMdWd7e vCnqY1+cfbHiVy3XoT1/oUgIGt7jMiWOZ7uwHLfaJ5nTInRiB+xHnEKYQEvFJuHC4HmU s/enbmVmGjD6iM1Ru7AbozIYG6GSE4BIqQxDxvCZRTBLIDcp3D2p2J1KMYyr454L1jo3 h6lie3M5hhD8byXgRD7mV5nE7iKrZX9+5OM5Yfyzkf96bEZNJgZPHdOkvm7ZouABTT7Z xZjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=vtYfFoJKzNVAEtkKzyVBEcXlVjUPUgafPX1iLZUDBSc=; b=QtbHy5uVnrcJBkiWMyjw3TBMa4u6+BjRX1Znr856XBC/G7DLZYCKLeoFU9R3XXV0G1 4gkKttqPNDthazvvrte9R1zOuTqiFdpJfP/JX0EPA1J7FlOLzjp1kxMOOwoIsd07xSae lYgI24uBdFmrDKXIBpfvHZkikCawLjyW+2rhkOa7EOvddyRhsvUmpOFUy+nk/EXZsJws HuA2coPUqwW9AZ2eUQ5EhpfbpB65rsEk1VHV3JnVYjm4BxIouLKvU9MInIg//QPUVWL1 AxIMtb12COGNTKh1g4ASCJ1qcHaX68KiGlzS+Zf5h2lyb8cA/EQPVzYbDvTVRHiXq8UU R9Lg== X-Gm-Message-State: AE9vXwPWWvQQVOHNLykQCDHKAVnmy9jSz+zBz+qMVKEB21rrSi2AOTQHrIJNfOH89gJaLdAm X-Received: by 10.28.25.71 with SMTP id 68mr5331059wmz.19.1473779245589; Tue, 13 Sep 2016 08:07:25 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id ub8sm23416283wjc.39.2016.09.13.08.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 08:07:24 -0700 (PDT) From: Thomas Monjalon To: Michael Wildt Cc: users@dpdk.org Date: Tue, 13 Sep 2016 17:07:24 +0200 Message-ID: <2164887.AxsOo2R2xv@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <2139728.s9C09RKb8B@xps13> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-users] Cross compile for ARM64 fails due to librte_vhost and pmdinfogen issues X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 15:07:26 -0000 2016-09-13 07:45, Michael Wildt: > Hi Thomas, > > Appreciate the assistance. Please see inline. > > > On Tue, Sep 13, 2016 at 5:03 AM, Thomas Monjalon > wrote: > > > Hi, > > > > 2016-09-12 22:20, Michael Wildt: > > > I'm attempting to cross compile DPDK on an x86 for an ARM64 target. This > > > fails in the following areas, using latest dpdk as of 9/12. When > > compiling > > > natively there are no issues. > > > > Your analysis below seems good. > > Interestingly, I do not see such error (don't know why). > > Please could you share the commands you are using? > > > > Sure can. > > make config T=arm64-armv8a-linuxapp-gcc CROSS=/projects/ccxsw/ > toolchains/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/aarch64-linux-gnu- > ARCH=arm64 > > make T=arm64-armv8a-linuxapp-gcc CROSS=/projects/ccxsw/ > toolchains/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/aarch64-linux-gnu- > ARCH=arm64 RTE_KERNELDIR=/projects/kernel > > > > - librte_vhost, fails with: > > > > > > /projects/dpdk_latest/lib/librte_vhost/vhost_user/virtio- > > net-user.c:250:23: > > > error: array subscript is above array bounds [-Werror=array-bounds] > > > rvq = dev->virtqueue[i * VIRTIO_QNUM + VIRTIO_RXQ]; > > [...] > > > - buildtools/pmdinfogen, fails with: > > > > > > == Build buildtools/pmdinfogen > > > HOSTCC pmdinfogen.o > > > /projects/dpdk_test_wget/dpdk-16.07/build/include/rte_byteorder.h: > > > Assembler messages: > > > /projects/dpdk_test_wget/dpdk-16.07/build/include/rte_byteorder.h:53: > > > Error: no such instruction: `rev16 %bx,%bx' > > [...] > > > - The issue is due to the rte_byteorder.h file which gets > > > symlink'ed with the ARM version at the beginning of the build. > > > The pmdinfogen is always compiled for x86 thus the asm is failing. It is definitely something to fix. In the meantime, you should be able to compile DPDK by using a more recent toolchain. This error is in: /* fix missing __builtin_bswap16 for gcc older then 4.8 */ #if !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) I know you are using gcc-4.9 but maybe __GNUC_MINOR__ is wrong in yours.