From owner-freebsd-current@FreeBSD.ORG Wed May 4 08:05:26 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE6C6106564A for ; Wed, 4 May 2011 08:05:26 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.212.176]) by mx1.freebsd.org (Postfix) with ESMTP id B8A418FC0C for ; Wed, 4 May 2011 08:05:26 +0000 (UTC) Received: by pxi11 with SMTP id 11so631937pxi.35 for ; Wed, 04 May 2011 01:05:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.35.228 with SMTP id l4mr1272854pbj.5.1304496326420; Wed, 04 May 2011 01:05:26 -0700 (PDT) Received: by 10.68.40.4 with HTTP; Wed, 4 May 2011 01:05:26 -0700 (PDT) In-Reply-To: <4DC0FD83.5080504@mail.zedat.fu-berlin.de> References: <4DBDB8D4.6050102@mail.zedat.fu-berlin.de> <4DC04F29.2050401@mail.zedat.fu-berlin.de> <4DC0F98D.3020601@FreeBSD.org> <4DC0FD83.5080504@mail.zedat.fu-berlin.de> Date: Wed, 4 May 2011 10:05:26 +0200 Message-ID: From: Olivier Smedts To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Dimitry Andric Subject: Re: Building FreeBSD 9.0-CUR/amd64 with CLANG fails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 08:05:27 -0000 2011/5/4 O. Hartmann : > > 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."