Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2012 11:54:58 +0000
From:      Marcin Cieslak <saper@saper.info>
To:        freebsd-chromium@freebsd.org
Subject:   Re: Trouble compiling 20.0.1132.57 w/clang 3.0 (trunk 135360) 20110717 [solved]
Message-ID:  <alpine.BSF.2.00.1207171151030.99942@y.fncre.vasb>
In-Reply-To: <alpine.BSF.2.00.1207160900230.99942@y.fncre.vasb>
References:  <alpine.BSF.2.00.1207160900230.99942@y.fncre.vasb>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Jul 2012, Marcin Cieslak wrote:

> Running 
> 
> $ clang --version
> FreeBSD clang version 3.0 (trunk 135360) 20110717
> Target: x86_64-unknown-freebsd9.0
> Thread model: posix

This problems was solved by installing lang/clang
from ports:

$ /usr/local/bin/clang -v
clang version 3.1 (branches/release_31)
Target: amd64-portbld-freebsd9.0
Thread model: posix

and patching the Makefile to use
clang from ports, not from base:

.if ${PORT_OPTIONS:MCLANG}
.if ${OSVERSION} < 900033
BUILD_DEPENDS+= clang:${PORTSDIR}/lang/clang
.endif
CC=             /usr/local/bin/clang
CXX=            /usr/local/bin/clang++
GYP_DEFINES+=   clang=1

(Setting CC=/usr/local/bin/clang in /etc/make.conf
 does not work here of course)

//Marcin



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