From owner-freebsd-current@FreeBSD.ORG Fri Jun 11 20:08:03 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49F041065676 for ; Fri, 11 Jun 2010 20:08:03 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 549A88FC1C for ; Fri, 11 Jun 2010 20:08:01 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id o5BK7rAK044048; Fri, 11 Jun 2010 22:07:54 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4C129799.1080602@fgznet.ch> Date: Fri, 11 Jun 2010 22:07:53 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: "M. Warner Losh" References: <4C128548.8090505@fgznet.ch> <20100611185237.GL56080@hoeg.nl> <20100611.132052.271446115462387749.imp@bsdimp.com> <20100611.135612.390976035288919690.imp@bsdimp.com> In-Reply-To: <20100611.135612.390976035288919690.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: ed@80386.nl, freebsd-current@FreeBSD.org Subject: Re: How to disable CLANG & co build in buildworld? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 20:08:03 -0000 On 11.06.10 21:56, M. Warner Losh wrote: > In message:<20100611.132052.271446115462387749.imp@bsdimp.com> > "M. Warner Losh" writes: > : In message:<20100611185237.GL56080@hoeg.nl> > : Ed Schouten writes: > : : Hello Andreas, > : : > : : * Andreas Tobler wrote: > : :> I have a sparc64 machine which is quite slow. And for my purpose I > : :> do not need CLANG etc. atm. > : : > : : Clang is not enabled on sparc64, so there is no need to disable > : : anything. If you do want to disable Clang on i386, amd64, pc98 or > : : powerpc, add WITHOUT_CLANG=yes to /etc/src.conf, as described in > : : src.conf(5). > : > : Except that clang isn't quite disabled when cross-building, due to the > : issue I pointed out when the commit went in wrt bsd.own.mk. > : MACHINE_ARCH is still amd64 until we start to build the sparc64 > : binaries, so anything in the bootstrapping part of the build will not > : be disabled. that's one of many reasons disabling things in > : bsd.own.mk based on architecture is going to fail. > > And even if you add WITHOUT_CLANG to your src.conf, we still always > build some of the clang infrastructure in the bootstrap tools > phase... But we have to do that to avoid getting not being able to > build clang on an architecture that doesn't have it for an > architecture that does. I can confirm that. I just set up a build for powerpc with WITHOUT_CLANG and in the first building steps I saw this. I don't care if it is only a few minutes of building time, but I disagree if it is going to be > 10 minutes/hours in case of multilib builds (32-bit libs and 64-bit libs) as it is on powerpc64. On powerpc64 the WITHOUT_CLANG helped to avoid the build of the multilib. I do not have anything against CLANG. I only want to be able to steer what I want. Gruss, Andreas