Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2011 11:22:08 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Dimitry Andric <dim@FreeBSD.ORG>
Cc:        Alexander Best <arundel@FreeBSD.ORG>, freebsd-current@FreeBSD.ORG
Subject:   Re: buildworld failing in lib/libc/db/btree
Message-ID:  <96FD57E5-947D-41F6-B529-E06855A395EC@bsdimp.com>
In-Reply-To: <4E2831CD.6040800@FreeBSD.org>
References:  <20110721070825.GA80840@freebsd.org> <4E27EEF6.6060401@FreeBSD.org> <20110721134508.GA39498@freebsd.org> <4E2831CD.6040800@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 21, 2011, at 8:03 AM, Dimitry Andric wrote:

> On 2011-07-21 15:45, Alexander Best wrote:
> ...
>>> If you are including any path, e.g. CC=3D/usr/bin/clang, buildworld =
will
>>> not work.  Remove the path and try again.
>>=20
>> THANKS!
>>=20
>> ...exactly that was the problem. :) after changing CC/CXX so it =
doesn't contain
>> a full path, buildworld succeeded!
>=20
> The problem here was that buildworld builds a bootstrap compiler under
> /usr/obj, but if you specify ${CC} with an absolute path, it fails to
> use it!  (The bootstrap compiler has its search paths adjusted, so it
> only looks under /usr/obj for include files, libraries and so on.)
>=20
> This is actually a problem that needs solving, but it won't happen for
> 9.0, unfortunately...

Yes.  And we can't solve it by banning all CC settings with / in them, =
since it is perfectly legitimate to build the whole tree with a =
different compiler that lives outside the tree...

Warner




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96FD57E5-947D-41F6-B529-E06855A395EC>