From owner-freebsd-current@FreeBSD.ORG Sun Mar 4 21:46:46 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEBD21065673 for ; Sun, 4 Mar 2012 21:46:46 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id A7C488FC13 for ; Sun, 4 Mar 2012 21:46:46 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:ccd8:cc99:7145:dcf5] (unknown [IPv6:2001:7b8:3a7:0:ccd8:cc99:7145:dcf5]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D52A75C37; Sun, 4 Mar 2012 22:46:45 +0100 (CET) Message-ID: <4F53E2C3.7090102@FreeBSD.org> Date: Sun, 04 Mar 2012 22:46:43 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120229 Thunderbird/11.0 MIME-Version: 1.0 To: "O. Hartmann" References: <4F536D41.1030302@zedat.fu-berlin.de> <201203041628.q24GS12l088270@pozo.com> <201203041751.02531.ken@mthelicon.com> <4F53D1D3.2010607@zedat.fu-berlin.de> In-Reply-To: <4F53D1D3.2010607@zedat.fu-berlin.de> X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Pegasus Mc Cleaft , freebsd-current@freebsd.org Subject: Re: CLANG buildworld failure: lint: cannot exec /usr/obj/usr/src/tmp/usr/bin/cc: No such file or directory 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: Sun, 04 Mar 2012 21:46:47 -0000 On 2012-03-04 21:34, O. Hartmann wrote: ... > Where are those new "WITH_CLANG_XXXX" tags documented? In src.conf(5), where all the WITH_ and WITHOUT_ settings are documented. I should probably have sent a heads up to this list, to announce this new setting, which installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp, effectively making it the "default compiler". That said, I made a mistake in r232322, which introduced the setting, causing gcc not to be built at all if you had all default settings, except CC=clang, CXX=clang++ and CPP=clang-cpp. This caused no 'cc', 'c++' and 'cpp' executables to be installed under the temporary object tree. It should theoretically work, but some tools like lint still have 'cc' hardcoded, and thus they fail. I have worked around this in r232522. Please update to that revision, and try again. > In my case things developed even worse. After the last "make update" in > /usr/src (SVN based), I can't even build a kernel (make buildworld fails > very early): > > ===> games/fortune/strfile (obj,depend,all,install) > /usr/obj/usr/src/tmp/usr/src/games/fortune/strfile created for > /usr/src/games/fortune/strfile > rm -f .depend > CC='clang' mkdep -f .depend -a > -I/usr/obj/usr/src/tmp/legacy/usr/include -std=gnu99 > /usr/src/games/fortune/strfile/strfile.c > echo strfile: /usr/lib/libc.a > /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend > clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -std=gnu99 > -I/usr/obj/usr/src/tmp/legacy/usr/include -c > /usr/src/games/fortune/strfile/strfile.c > clang -O2 -pipe -O2 -fno-strict-aliasing -pipe -std=gnu99 > -I/usr/obj/usr/src/tmp/legacy/usr/include -static > -L/usr/obj/usr/src/tmp/legacy/usr/lib -o strfile strfile.o -legacy > clang: warning: argument unused during compilation: '-std=gnu99' > strfile.o: In function `main': > /usr/src/games/fortune/strfile/strfile.c:(.text+0x2e0): undefined > reference to `_ThreadRuneLocale' This is unrelated to the 'cc' problem, but I suggest deleting /usr/obj/* and starting the build from scratch.