Date: Sun, 12 Jan 2014 12:16:31 -0800 From: Tim Kientzle <kientzle@freebsd.org> To: CeDeROM <cederom@tlen.pl> Cc: Timo Buhrmester <fstd.lkml@gmail.com>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org> Subject: Re: cross-building ARM world on amd64 Message-ID: <0DC39714-91FA-4C27-AC0B-A8F52B1EAD38@freebsd.org> In-Reply-To: <CAFYkXjkh9Fs3pUmk29brKkm3p682%2BLXbx2uPTZ_xcXwLYq9=gg@mail.gmail.com> References: <20140112185955.GA29733@frozen.localdomain> <CAFYkXjkh9Fs3pUmk29brKkm3p682%2BLXbx2uPTZ_xcXwLYq9=gg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 12, 2014, at 11:23 AM, CeDeROM <cederom@tlen.pl> wrote: > On Sun, Jan 12, 2014 at 7:59 PM, Timo Buhrmester <fstd.lkml@gmail.com> = 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0DC39714-91FA-4C27-AC0B-A8F52B1EAD38>