Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2012 05:18:49 -0800 (PST)
From:      Beeblebrox <zaphod@berentweb.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: buildworld with clang breaks because no cc
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1353763129490-5763756.post>