From owner-freebsd-current@freebsd.org Tue Jan 30 04:10:38 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4578BED53F8 for ; Tue, 30 Jan 2018 04:10:38 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id EA18679523; Tue, 30 Jan 2018 04:10:36 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from 220-253-44-188.dyn.iinet.net.au (HELO leader.local) ([220.253.44.188]) by ipmail03.adl2.internode.on.net with ESMTP; 30 Jan 2018 14:35:25 +1030 Subject: Re: How to avoid building of all llvm/clang-related stuff on recent CURRENT? To: Dimitry Andric , lev@FreeBSD.org Cc: freebsd-current References: <1eddd30d-2743-890f-3e9b-eff06a1d9a41@FreeBSD.org> <37FC8627-D520-4BAF-B168-783F39F44CAF@FreeBSD.org> From: Shane Ambler Message-ID: <16ef72c6-38b1-5c58-bd0f-ab5d4eebf743@ShaneWare.Biz> Date: Tue, 30 Jan 2018 14:35:24 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <37FC8627-D520-4BAF-B168-783F39F44CAF@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Tue, 30 Jan 2018 04:10:38 -0000 On 30/01/2018 09:33, Dimitry Andric wrote: > On 29 Jan 2018, at 20:56, Lev Serebryakov wrote: >> >> I have these lines in my nanobsd config: >> >> WITHOUT_CROSS_COMPILER=yes >> WITH_SYSTEM_COMPILER=yes >> WITHOUT_CLANG=yes >> WITHOUT_CLANG_EXTRAS=yes >> WITHOUT_CLANG_BOOTSTRAP=yes >> WITHOUT_BINUTILS=yes >> WITHOUT_BINUTILS_BOOTSTRAP=yes >> WITHOUT_ELFTOOLCHAIN=yes >> WITHOUT_ELFTOOLCHAIN_TOOLS=yes >> WITHOUT_ELFTOOLCHAIN_BOOTSTRAP=yes >> WITHOUT_LLD=yes >> XCC=/usr/bin/cc >> XCXX=/usr/bin/c++ >> XCPP=/usr/bin/cpp >> XAS=/usr/bin/as >> XAR=/usr/bin/ar >> XLD=/usr/bin/ld >> XNM=/usr/bin/nm >> XOBJDUMP=/usr/bin/objdump >> XRANLIB=/usr/bin/ranlib >> XSTRINGS=/usr/bin/strings >> XSTRIPBIN=/usr/bin/strip >> COMPILER_TYPE=clang >> >> And it worked some time ago. But now "buildworld" with these setting >> build libllvm and other cross-tools anyway. >> >> Host and target are the same (amd64) and nanobsd sources are the same >> as sources used to build host system. >> >> How to disable llvm & clang build completely? > > I think you also need WITHOUT_LLD_BOOTSTRAP now, if you are building for > amd64 or aarch64. You may also (soon) need WITHOUT_LLD_IS_LD, there are plans to enable LLD by default. Looking at man src.conf on current, WITHOUT_CROSS_COMPILER enforces - WITHOUT_BINUTILS_BOOTSTRAP WITHOUT_CLANG_BOOTSTRAP WITHOUT_ELFTOOLCHAIN_BOOTSTRAP WITHOUT_GCC_BOOTSTRAP I think WITHOUT_LLD_BOOTSTRAP might belong in that list. There is also a WITHOUT_TOOLCHAIN which enforces - WITHOUT_BINUTILS WITHOUT_CLANG WITHOUT_CLANG_EXTRAS WITHOUT_CLANG_FULL WITHOUT_GCC WITHOUT_GDB WITHOUT_INCLUDES WITHOUT_LLD WITHOUT_LLDB which WITHOUT_LLD_IS_LD might also belong to, there is no mention of other options enforcing it. Shouldn't nanobsd disable these by default? -- FreeBSD - the place to B...Software Developing Shane Ambler