Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2011 10:05:26 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de>
Cc:        freebsd-current@freebsd.org, Dimitry Andric <dim@freebsd.org>
Subject:   Re: Building FreeBSD 9.0-CUR/amd64 with CLANG fails
Message-ID:  <BANLkTi=gYfNuOtb-jdk5O49Rwvgsxxyr1g@mail.gmail.com>
In-Reply-To: <4DC0FD83.5080504@mail.zedat.fu-berlin.de>
References:  <4DBDB8D4.6050102@mail.zedat.fu-berlin.de> <BANLkTimAhmHh33FuwB6o%2BB5iSOORV-PmMQ@mail.gmail.com> <4DC04F29.2050401@mail.zedat.fu-berlin.de> <4DC0F98D.3020601@FreeBSD.org> <4DC0FD83.5080504@mail.zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/5/4 O. Hartmann <ohartman@mail.zedat.fu-berlin.de>:
>
> But when I tried to compile essential ports (essential to me), like
> x11-wm/windowmaker, mulitmedia/ffmpeg, for instance, I run into serious
> compiler/assembler error with LLVM/CLANG. I guess the ports- tree isn't
> mature for clang. So am I right in this thinking: leaving /etc/make.conf
> untouched in terms of not putting there the CLANG build construct and
> putting this instead into /etc/src.conf will only affect the OS' source t=
ree
> to be build by clang and all ports are build by the antique system's gcc
> 4.2.1?

A lot of ports can't be build with clang. You can add something like
this to your /etc/make.conf (modifying paths accordingly) :
.if ${.CURDIR:M/usr/src*} ||
${.CURDIR:M*/usr/ports/emulators/virtualbox-ose-kmod*}
.if !defined(CC) || ${CC} =3D=3D "cc"
CC=3Dclang
.endif
.if !defined(CXX) || ${CXX} =3D=3D "c++"
CXX=3Dclang++
.endif
NO_WERROR=3D
WERROR=3D
.endif

That's what I use. Note the first if statement.

Cheers

--=20
Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 ASCII ribbon campaign ( )
e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X
www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \

=A0 "Il y a seulement 10 sortes de gens dans le monde :
=A0 ceux qui comprennent le binaire,
=A0 et ceux qui ne le comprennent pas."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=gYfNuOtb-jdk5O49Rwvgsxxyr1g>