From owner-freebsd-stable@FreeBSD.ORG Sat Nov 24 13:18:55 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B737CBF5 for ; Sat, 24 Nov 2012 13:18:55 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 8DDD48FC13 for ; Sat, 24 Nov 2012 13:18:55 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TcFdB-0000R2-G4 for freebsd-stable@freebsd.org; Sat, 24 Nov 2012 05:18:49 -0800 Date: Sat, 24 Nov 2012 05:18:49 -0800 (PST) From: Beeblebrox To: freebsd-stable@freebsd.org Message-ID: <1353763129490-5763756.post@n5.nabble.com> In-Reply-To: <50B0C44F.4080509@FreeBSD.org> References: <1353670641224-5763472.post@n5.nabble.com> <1353671378109-5763475.post@n5.nabble.com> <1353674282188-5763482.post@n5.nabble.com> <1353678344136-5763503.post@n5.nabble.com> <50AF7F2F.6050104@gmail.com> <1353680064788-5763506.post@n5.nabble.com> <50AF88CF.6050601@gmail.com> <1353689801972-5763579.post@n5.nabble.com> <1353708181062-5763657.post@n5.nabble.com> <50B0C44F.4080509@FreeBSD.org> Subject: Re: buildworld with clang breaks because no cc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2012 13:18:55 -0000 Hi Dimitry, I have been working at this for 6 hours today (I don't want to tell you how long I was at it yesterday). Thanks for your input / suggestions. I will try to answer all of them, please let me know if I forget something. 1. Fist the good news: I have just now finished buildworld with setting WITHOUT_GCC= yes and has WITH_CLANG= yes WITH_CLANG_EXTRAS= yes WITH_CLANG_IS_CC= yes 2. First I tried to buildworld after disabling WITHOUT_GCC. * First I had ccache and threads enabled. The build progressed with the exact same errors as above (many start-stop-restarts) then finally broke. * I disabled ccache and threads, also removed /usr/obj/src. I restarted the build, it broke at (as above): building shared library libstdc++.so.6 3. Then I remembered that I had seen some ccache stuff flash by, despite the fact I had disabled it. So in /etc/make.conf I disabled the call to /usr/local/etc/buildflags.conf, cleaned /usr/obj/src and restarted the build (no ccache, no threads, gcc not disabled). This time it completd buildworld. What?? Why is buildflags.conf killing things? 4. Then I remembered something else: some of the source code seems to be hard-coded as /usr/src and not as {path} (my ports, source, ccache, distfiles are all on zpool/asp - I find it easier). I had observed in the past that that some source code which fails to compile will compile if I cd tu /ysr/src and re-run buildworld. The problem was that in /usr/local/etc/buildflags.conf I had for source: /asp/src | /asp/src/*{ which I changed to: /asp/src | /asp/src/* | /usr/src | /usr/src/*{ The build stopped several times, I re-saterted and later disabled threads and ccache. That is when buildworld finished successfully. Fianl /etc/src.conf settings: WITHOUT_GCC= yes WITH_CLANG= yes WITH_CLANG_EXTRAS= yes WITH_CLANG_IS_CC= yes 5. > You should save the entire log I don't know how to do this. 6. buildkernel also does not like ccache!! Thank you for your input and help... -- View this message in context: http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763756.html Sent from the freebsd-stable mailing list archive at Nabble.com.