From owner-freebsd-questions@FreeBSD.ORG Sun Jan 12 20:16:41 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D70AAEF for ; Sun, 12 Jan 2014 20:16:41 +0000 (UTC) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 762241DFC for ; Sun, 12 Jan 2014 20:16:40 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id s0CKGVvJ011674; Sun, 12 Jan 2014 20:16:31 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (gateway.kientzle.com [192.168.1.65]) by kientzle.com with SMTP id i3q5azkh7h868n43ddps9bc4zi; Sun, 12 Jan 2014 20:16:31 +0000 (UTC) (envelope-from kientzle@freebsd.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: cross-building ARM world on amd64 From: Tim Kientzle In-Reply-To: Date: Sun, 12 Jan 2014 12:16:31 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <0DC39714-91FA-4C27-AC0B-A8F52B1EAD38@freebsd.org> References: <20140112185955.GA29733@frozen.localdomain> To: CeDeROM X-Mailer: Apple Mail (2.1827) Cc: Timo Buhrmester , FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jan 2014 20:16:41 -0000 On Jan 12, 2014, at 11:23 AM, CeDeROM wrote: > On Sun, Jan 12, 2014 at 7:59 PM, Timo Buhrmester = wrote: >> I've been following this guide = (https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD) in = an attempt to build an armv6 world on my amd64 host running 10.0-RC4. >> Using this command (inside /usr/src) >>> # make TARGET=3D"arm" TARGET_ARCH=3D"armv6" = MAKEOBJDIRPREFIX=3D/usr/cross/obj buildworld >> It eventually fails with: >>> ./make_keys keys.list > init_keytry.h >>> ./make_keys: Exec format error >>> *** Error code 126 >>> Stop. >>> make[4]: stopped in /usr/src/lib/ncurses/ncurses >> Looking at the file in question, make_keys is an ARM binary, which = obviously won't run on amd64, yet it is being executed. >> I wonder what I'm missing here. >> Also not quite sure what information would be helpful, but here's the = host's uname -a output: >> # uname -a >> FreeBSD flap 10.0-RC4 FreeBSD 10.0-RC4 #0 r260130: Tue Dec 31 = 17:10:01 UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC = amd64 >> Thanks for any help, >> Timo Helpful information: * Contents of /etc/make.conf * Contents of /etc/src.conf * More of the error message (that shows what it was trying to compile). = Usually the previous 20 lines or so are sufficient. > Make sure you are using arm-eabi-gcc and arm-eabi-binutils, ... No, cross-compiling FreeBSD/ARM does not require these ports at all. These ports are needed only if you are cross-compiling other software manually. The FreeBSD source tree has the necessary tool support already built in. Tim