From owner-freebsd-arch@FreeBSD.ORG Mon Mar 16 05:41:56 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D14F106566C for ; Mon, 16 Mar 2009 05:41:56 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id D71508FC0C for ; Mon, 16 Mar 2009 05:41:55 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id n2G5fsnL075825 for ; Sun, 15 Mar 2009 23:41:55 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.3/8.14.3) with ESMTP id n2G5MUZG054713; Sun, 15 Mar 2009 23:22:30 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id n2G5MU73054710; Sun, 15 Mar 2009 23:22:30 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18877.57878.136116.691250@gromit.timing.com> Date: Sun, 15 Mar 2009 23:22:30 -0600 From: John Hein To: "M. Warner Losh" In-Reply-To: <20090315.080814.669286040.imp@bsdimp.com> References: <20090313125115.GU31961@hoeg.nl> <20090313.090038.-890725739.imp@bsdimp.com> <18875.60334.947446.966085@gromit.timing.com> <20090315.080814.669286040.imp@bsdimp.com> X-Mailer: VM 7.19 under Emacs 22.3.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: ed@80386.nl, arch@freebsd.org Subject: Re: Final sanity pass: xdev X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 05:41:56 -0000 M. Warner Losh wrote at 08:08 +0900 on Mar 15, 2009: > In message: <18875.60334.947446.966085@gromit.timing.com> > John Hein writes: > : M. Warner Losh wrote at 09:00 -0600 on Mar 13, 2009: > : > In message: <20090313125115.GU31961@hoeg.nl> > : > Ed Schouten writes: > : > : Hi Warner, > : > : > : > : The last couple of days/weeks I've been working a lot with LLVM+Clang. > : > : I'm currently writing some BSD makefiles to see how hard it is to add > : > : Clang to our base system, as a proof of concept. > : > : > : > : A nice thing about Clang is that it seems to be very easy to compile in > : > : multiple backends into the same Clang binary. If we ever switch to Clang > : > : in the base system (who knows), it would be interesting to see whether > : > : it's useful to just compile in all backends by default. > : > : > : > : Anyway, I took a quick look at the xdev patch and it looks okay. :-) > : > > : > Woot! Please let me know if it causes problems. > : > : I meant to mention this earlier - OSREL (referenced in the _xi-links: > : target) is not defined. So ports looking for arm-freebsd8.0-cc (for > : instance) won't find it. > : > : > : An earlier patch of yours had: > : > : .if !defined(OSREL) > : OSREL!= uname -r | sed -e 's/[-(].*//' > : .endif > : > : But the latest (and the one committed) does not. > > You are right... Dang. I must have comitted the wrong thing... One more thing... Now that we've switched to bsd ar, installing gnu/usr.bin/binutils installs the gnu ar as gnu-ar. Cross-built ports can't find arm-freebsd8.0-ar Adding usr.bin/ar to the cross tools does the job... Index: Makefile.inc1 =================================================================== RCS file: /base/FreeBSD-CVS/src/Makefile.inc1,v retrieving revision 1.620 diff -u -p -r1.620 Makefile.inc1 --- Makefile.inc1 13 Mar 2009 10:40:38 -0000 1.620 +++ Makefile.inc1 16 Mar 2009 05:11:12 -0000 @@ -1035,6 +1035,7 @@ cross-tools: .for _tool in \ gnu/usr.bin/binutils \ gnu/usr.bin/cc \ + usr.bin/ar \ usr.bin/sed \ usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint \ ${_btxld} \ @@ -1370,7 +1371,8 @@ _xb-build-tools: _xb-cross-tools: .for _tool in \ gnu/usr.bin/binutils \ - gnu/usr.bin/cc + gnu/usr.bin/cc \ + usr.bin/ar ${_+_}@${ECHODIR} "===> xdev ${_tool} (obj,depend,all)"; \ cd ${.CURDIR}/${_tool}; \ ${CDMAKE} DIRPRFX=${_tool}/ obj; \ @@ -1395,7 +1397,8 @@ _xi-cross-tools: @echo "_xi-cross-tools" .for _tool in \ gnu/usr.bin/binutils \ - gnu/usr.bin/cc + gnu/usr.bin/cc \ + usr.bin/ar ${_+_}@${ECHODIR} "===> xdev ${_tool} (install)"; \ cd ${.CURDIR}/${_tool}; \ ${CDMAKE} DIRPRFX=${_tool}/ install DESTDIR=${XDDESTDIR}