searchpath for clang

Alexander Best arundel at freebsd.org
Sun Jan 9 14:58:59 UTC 2011


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


More information about the freebsd-toolchain mailing list