Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2011 14:58:58 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: searchpath for clang
Message-ID:  <20110109145858.GA21455@freebsd.org>
In-Reply-To: <4D29C8A2.8080800@FreeBSD.org>
References:  <20110109005017.GA8384@freebsd.org> <4D299E37.7080103@FreeBSD.org> <20110109143147.GA19023@freebsd.org> <4D29C8A2.8080800@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun Jan  9 11, Dimitry Andric wrote:
> On 2011-01-09 15:31, Alexander Best wrote:
> ...
> >i really cannot spot the problem on my system. :(
> ...
> >In file included from /usr/subversion-src/usr.bin/make/parse.c:75:
> >/usr/local/bin/../lib/clang/2.9/include/stdarg.h:47:9: warning: 
> >'__GNUC_VA_LIST' macro redefined
> >#define __GNUC_VA_LIST 1
> >         ^
> 
> From /usr/local/lib/clang/2.9/include, you must remove (or move out of
> the way) all .h files that already exist in /usr/include, because they
> clash with our standard includes.  Normally the files to be moved are:
> 
> float.h
> iso646.h
> limits.h
> stdarg.h
> stdbool.h
> stddef.h
> stdint.h
> tgmath.h
> varargs.h

i renamed /usr/local/lib/clang/2.9/include to something else and re-ran target
buildworld. what's interesting is that /usr/local/bin/clang only gets picked up
in this section:

>>> Building an up-to-date make(1)

after the following message:

>>> World build started on Sun Jan  9 15:49:53 CET 2011

/usr/bin/clang gets chosen

i suspect $PATH doesn't get discarded when building make(1).

cheers.
alex

> 
> It would be better if the port already did this, though...

-- 
a13x



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