Trouble compiling 20.0.1132.57 w/clang 3.0 (trunk 135360) 20110717 [solved]

Marcin Cieslak saper at saper.info
Tue Jul 17 11:55:01 UTC 2012


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


More information about the freebsd-chromium mailing list