From owner-freebsd-questions@freebsd.org Thu Aug 17 18:42:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCC86DCF239 for ; Thu, 17 Aug 2017 18:42:21 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp207.alice.it (smtp207.alice.it [82.57.200.103]) by mx1.freebsd.org (Postfix) with ESMTP id 5107E840E0 for ; Thu, 17 Aug 2017 18:42:20 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (79.13.168.184) by smtp207.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 597E3FB20949194C for freebsd-questions@freebsd.org; Thu, 17 Aug 2017 20:42:13 +0200 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) by soth.ventu (8.15.2/8.15.2) with ESMTP id v7HIgBfC004759 for ; Thu, 17 Aug 2017 20:42:12 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.ventu: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu From: Andrea Venturoli Subject: qemu-aarch64-static To: freebsd-questions@freebsd.org Message-ID: <29906b14-8efa-ba65-985a-fd5b90c76b9b@netfence.it> Date: Thu, 17 Aug 2017 20:42:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 18:42:21 -0000 Hello. Not sure if this is the right mailing list: should I ask on emulation or arm? I'm trying to run aarch64 binaries on a 11.1/amd64 through qemu-user-static-2.9.50.g20170721, but this fails. I can run mips64 binaries though. > # file date > date: ELF 64-bit MSB executable, MIPS, MIPS-III version 1 (FreeBSD), statically linked, FreeBSD-style, for FreeBSD 10.0 (1000027), stripped > # ./date > Thu Aug 17 19:51:56 CEST 2017 > # file date > date: ELF 64-bit LSB executable, ARM aarch64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.1, FreeBSD-style, not stripped > # ./date > Unable to load interpreter Is this the expected behaviour? I read, on https://wiki.freebsd.org/QemuUserModeHowTo, that "Currently only "TARGET=mips TARGET_ARCH=mips64 and "TARGET=arm TARGET_ARCH=armv6" has enough machine dependent code in place to do everything described below", but OTOH it seems people are using poudriere to cross build aarch64 ports (which is what I'd like to do). Is 11.1 too old or in need of a patch? Should I use a different version of qemu? TIA. bye av.