Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2011 16:03:57 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Alexander Best <arundel@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: buildworld failing in lib/libc/db/btree
Message-ID:  <4E2831CD.6040800@FreeBSD.org>
In-Reply-To: <20110721134508.GA39498@freebsd.org>
References:  <20110721070825.GA80840@freebsd.org> <4E27EEF6.6060401@FreeBSD.org> <20110721134508.GA39498@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2011-07-21 15:45, Alexander Best wrote:
...
>> If you are including any path, e.g. CC=/usr/bin/clang, buildworld will
>> not work.  Remove the path and try again.
>
> THANKS!
>
> ...exactly that was the problem. :) after changing CC/CXX so it doesn't contain
> a full path, buildworld succeeded!

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.)

This is actually a problem that needs solving, but it won't happen for
9.0, unfortunately...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E2831CD.6040800>