From owner-freebsd-stable@FreeBSD.ORG Mon Jun 9 03:07:05 2014 Return-Path: Delivered-To: freebsd-stable@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 7E869591 for ; Mon, 9 Jun 2014 03:07:05 +0000 (UTC) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49B13228F for ; Mon, 9 Jun 2014 03:07:04 +0000 (UTC) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200::ae25]) (authenticated bits=0) by hydra.pix.net (8.14.8/8.14.8) with ESMTP id s5936tt1028566 for ; Sun, 8 Jun 2014 23:07:02 -0400 (EDT) (envelope-from cross+freebsd@distal.com) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.1 at mail.pix.net Received: from magrathea.distal.com (magrathea.distal.com [IPv6:2001:470:e24c:200:ea06:88ff:feca:960e]) (authenticated bits=0) by mail.distal.com (8.14.8/8.14.8) with ESMTP id s5935YZB031563 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 8 Jun 2014 23:05:35 -0400 (EDT) (envelope-from cross+freebsd@distal.com) From: Chris Ross Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Cross-building FreeBSD core... Message-Id: Date: Sun, 8 Jun 2014 23:05:25 -0400 To: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.distal.com [IPv6:2001:470:e24c:200::ae25]); Sun, 08 Jun 2014 23:05:35 -0400 (EDT) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 03:07:05 -0000 So, I was investigating the notion of cross-building FreeBSD = stable/10. Specifically, I wanted to try to build a full amd64 = buildworld and buildkernel on a sparc64. I found = https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD which = I knew was a little old, but tried it. It failed in "stage 4.2: = building libraries", after quite a long time, eventually failing in: =3D=3D=3D> lib/ncurses/ncurses (obj,depend,all,install) [....] cc -o make_keys -O2 -pipe -I. = -I/home/cross/obj.amd64/usr/src/lib/ncurses/ncurses/../ncurses = -I/usr/src/lib/ncurses/ncurses/../ncurses = -I/usr/src/lib/ncurses/ncurses/../ncurses = -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include = -I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall = -DNDEBUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=3Dgnu99 = -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall = -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized = -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality = -Wno-unused-function -Wno-enum-conversion = /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_k= eys.c ./make_keys keys.list > init_keytry.h ./make_keys: Exec format error *** Error code 126 Is this a bug that needs to be fixed in the build system, or something = I did wrong to perform the build? I effectively did: make buildworld TARGET=3Damd64 TARGET_ARCH=3Damd64 = MAKEOBJDIRPREFIX=3D/home/cross/obj.amd64 If anyone has any pointers to the _right_ way to do this, please let = me know. Thanks... - Chris