From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) by dpdk.org (Postfix) with ESMTP id 14C506CB5 for ; Tue, 13 Sep 2016 13:46:00 +0200 (CEST) Received: by mail-qt0-f172.google.com with SMTP id 93so87246855qtg.2 for ; Tue, 13 Sep 2016 04:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0JrV20X1yrZXOoVnevJtkdzpCiEikLrckewuIX2OruU=; b=CUI44fX5Orxr1hmG8yTcXZ2VzxxidaeTnB4r1ogKerdjuXDL7IsBZ7W4yihkebBv6G CFV+wPUWqSmK8INNvfPQAaWvygBUy0QArmVnAkLdwXnaeTo9E3dcvlWL1igW3xUN2KXa HI9Ws5Wr54KGx0AXSMBW0hA6m18QtPYKlX6Uc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0JrV20X1yrZXOoVnevJtkdzpCiEikLrckewuIX2OruU=; b=XaatIUvx3JIHYDcfABM8T2lE8MaaSF6wIkqOOytt55NwMeaB9qvmVuvLYQMUNqh9Xj iH/VIFoEXqKhBhQO92XGSjhkmmgASlLxcRWT6joBb5bB0gIYbcMuxyRF8b+FeFZKLg2W auqib9tARKFLEQPnteT9xHhEcPXwLrkqVwr5rLRlfy+bEFoqblODEIBVNuzyvVuvBF3z K2wlzrioNKBFujZOqx3zMIzH+KrJqe0yfZIjkvzZt6L65pNgMBZMi/dvM+6U/fGOI5sa vpGedmNoiqa7ijDx/6on1Rr5jAxPU1ToYFdGwWYHNEZmDc2QfHmZpUmUqByp+c67eBid HGag== X-Gm-Message-State: AE9vXwOJLNpea4Gwvh7AkTYDZbRtqWbs76Plyi1cxf1dxusR8tmsBmr2NyX2VauL+X2h+cYZ6NA4i+7P2G6BhOSv X-Received: by 10.200.42.130 with SMTP id b2mr366631qta.106.1473767159287; Tue, 13 Sep 2016 04:45:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.42.180 with HTTP; Tue, 13 Sep 2016 04:45:38 -0700 (PDT) In-Reply-To: <2139728.s9C09RKb8B@xps13> References: <2139728.s9C09RKb8B@xps13> From: Michael Wildt Date: Tue, 13 Sep 2016 07:45:38 -0400 Message-ID: To: Thomas Monjalon Cc: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 11:46:00 -0000 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 Thanks, Michael > > - 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. I see two ways to address this. > > > > - Have pmdinfogen always pickup the local OS rte_byteorder.h file, not > the > > ARCH symlinked one. > > Yes we should not use DPDK headers in pmdinfogen or have a host-include/. > > > - Fix pmdinfogen such that it gets cross compiled correctly as the rest > of > > the code. Did a quick attempt by setting the HOST_OS to 0, , but then it > > fails at the HOST_LD. > > No it must be native because it is part of the build system. >