From owner-freebsd-arm@FreeBSD.ORG Thu Oct 30 17:22:15 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC6C023E for ; Thu, 30 Oct 2014 17:22:15 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (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 80C3C8ED for ; Thu, 30 Oct 2014 17:22:15 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XjtQL-0001TK-OE; Thu, 30 Oct 2014 17:22:13 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s9UHMCOT083422; Thu, 30 Oct 2014 11:22:12 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/elcTEDQEcgc9KI0d8ap+3 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: building cross-compiling tools on -CURRENT From: Ian Lepore To: George Rosamond In-Reply-To: <54527218.2090008@ceetonetechnology.com> References: <54527218.2090008@ceetonetechnology.com> Content-Type: text/plain; charset="us-ascii" Date: Thu, 30 Oct 2014 11:22:12 -0600 Message-ID: <1414689732.17308.173.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 17:22:15 -0000 On Thu, 2014-10-30 at 13:15 -0400, George Rosamond wrote: > Using a new build box running head with r273764, and running into an > issue building the cross compiler tools. Using source based in /usr/src > on an amd64 box. I do have devel/gperf installed as per /usr/src/UPDATING. > > Running this from /usr/src: > > make TARGET=arm TARGET_ARCH=armv6 WITH_GCC=1 WITH_GCC_BOOTSTRAP=1 > WITHOUT_CLANG=1 WITHOUT_CLANG_BOOTSTRAP=1 WITHOUT_CLANG_IS_CC=1 xdev > > I changed "XDEV" and "XDEV_ARCH to "TARGET" and "TARGET_ARCH" as per > /usr/src/UPDATING from 20140723, but also tried "XDEV" "XDEV_ARCH". If > I'm reading this right, Crochet should take that into account. > > I did clear out /usr/obj, updated and cleaned /usr/src... > > Anyone else? Here's the relevant end of the failure AFAIK: > > except.o: In function `nothrow_libfn_p': > /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/except.c:(.text+0x10fb): > undefined reference to `libc_name_p' > cc: error: linker command failed with exit code 1 (use -v to see invocation) > *** Error code 1 > > Stop. > make[3]: stopped in /usr/src/gnu/usr.bin/cc/cc1plus > *** Error code 1 > > Stop. > make[2]: stopped in /usr/src/gnu/usr.bin/cc > *** Error code 1 > > Stop. > make[1]: stopped in /usr/src > *** Error code 1 > > Stop. > make: stopped in /usr/src You might think you've tweaked enough knobs there, but I think maybe there's one more: WITH_GNUCXX When I want to test building everything with gcc instead of clang, I uncomment these in my make.conf: #WITH_GCC=yes #WITH_GNUCXX=yes #WITH_GCC_BOOTSTRAP=yes #WITHOUT_CLANG=yes #WITHOUT_CLANG_IS_CC=yes #WITHOUT_CLANG_BOOTSTRAP=yes -- Ian