From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 9 10:03:58 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 27562CF3 for ; Tue, 9 Apr 2013 10:03:58 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id E2D3BE69 for ; Tue, 9 Apr 2013 10:03:57 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:900d:c887:884e:713b]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 773104AC57; Tue, 9 Apr 2013 14:03:48 +0400 (MSK) Date: Tue, 9 Apr 2013 14:03:45 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <48101083.20130409140345@serebryakov.spb.ru> To: deeptech71 Subject: Re: building world and kernel without ebuilding ("bootstrap"?) clang? In-Reply-To: <51634D82.9060901@gmail.com> References: <51634D82.9060901@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 10:03:58 -0000 Hello, deeptech71. You wrote 9 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2013 =D0=B3., 3:06:42: d> 1. Add the following or similar to /etc/make.conf: d> CC=3D/full/path/to/clang d> CPP=3D/full/path/to/clang-cpp d> CXX=3D/full/path/to/clang++ d> Note: make sure clang-cpp or similar exists. d> 2. Add the following to /etc/src.conf: d> WITHOUT_GCC=3D1 d> WITHOUT_CLANG=3D1 This is NanoBSD build, so it doesn't use system /etc/make.conf and /etc/src.conf. I'll try to add it into NanoBSD configs. d> Note: ``make delete-old'' will prompt you to remove the compilers. NanoBSD builds world into empty object dir every time. What should I `delete-old'? d> 3. In case of an "external", modern version of Clang, remove its d> header files that are already present in the system at /usr/include (eg.= , stdio.h). Is "system" version (system is snapshot from Mar 30) is "external" and "m= odern"? d> 4. Selectively apply to the source tree (all are required for my purpose= s): I'll give it a try. --=20 // Black Lion AKA Lev Serebryakov