Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 09:08:35 +0200
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: ClangBSD build failures
Message-ID:  <20100427070835.GB16910@freebsd.org>
In-Reply-To: <4BD68275.6020509@bsdforen.de>
References:  <4BD68275.6020509@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 27, 2010 at 08:21:41AM +0200, Dominic Fandrey wrote:
> Hello,
>=20
> I wanted to make some performance comparisons, building ClangBSD
> with different compilers.
>=20
> The host system is:
> FreeBSD mobileKamikaze.norad 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Apr  5=
 12:45:41 CEST 2010     root@mobileKamikaze.norad:/usr/obj/HP6510b-8/amd64/=
usr/src/sys/HP6510b-8  amd64
>=20
> An interesting result is that buildkernel with clang takes longer:
> CC=3Dclang
> time -l make buildkernel
>       921.31 real       802.25 user       114.93 sys
> time -l make buildkernel -j3
>       645.17 real       838.46 user       143.03 sys
>=20
> CC=3Dcc
> time -l make buildkernel
>       877.14 real       757.42 user       115.11 sys
> time -l make buildkernel -j3
>       628.32 real       798.03 user       149.52 sys
=20
this is really strange... almost everyone is seeing much faster builds with=
 clang

> All the tests are run on a 4g memory disk (src and objdir), which
> is recreated for every test.
>=20
> I cannot make this comparison for buildworld, because buildworld
> with CC=3Dcc, CXX=3Dc++ fails:
>=20
> =3D=3D=3D> usr.bin/clang/lib/libclanglex (all)
> c++  -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316=
273/clangbsd/tmp/usr/include -isystem /root/clangbsd.gcc.1272316273/obj/roo=
t/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2 -isystem /root/clang=
bsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c+=
+/4.2/backward -B/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.127231=
6273/clangbsd/tmp/usr/lib/ -L/root/clangbsd.gcc.1272316273/obj/root/clangbs=
d.gcc.1272316273/clangbsd/tmp/usr/lib/ -O2 -pipe -I/root/clangbsd.gcc.12723=
16273/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/inclu=
de -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/.=
./../../../contrib/llvm/tools/clang/include -I/root/clangbsd.gcc.1272316273=
/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/tools/clan=
g/lib/Lex -I. -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/li=
bclanglex/../../include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MAC=
ROS -D__STDC_CONS
> TANT_MACROS -fno-rtti -DLLVM_HOSTTRIPLE=3D\"amd64-undermydesk-freebsd9.0\=
" -fstack-protector -c /root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang=
/lib/libclanglex/../../../../contrib/llvm/tools/clang/lib/Lex/HeaderMap.cpp
> c++  -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316=
273/clangbsd/tmp/usr/include -isystem /root/clangbsd.gcc.1272316273/obj/roo=
t/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2 -isystem /root/clang=
bsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c+=
+/4.2/backward -B/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.127231=
6273/clangbsd/tmp/usr/lib/ -L/root/clangbsd.gcc.1272316273/obj/root/clangbs=
d.gcc.1272316273/clangbsd/tmp/usr/lib/ -O2 -pipe -I/root/clangbsd.gcc.12723=
16273/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/inclu=
de -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/.=
./../../../contrib/llvm/tools/clang/include -I/root/clangbsd.gcc.1272316273=
/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/tools/clan=
g/lib/Lex -I. -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/li=
bclanglex/../../include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MAC=
ROS -D__STDC_CONS
> TANT_MACROS -fno-rtti -DLLVM_HOSTTRIPLE=3D\"amd64-undermydesk-freebsd9.0\=
" -fstack-protector -c /root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang=
/lib/libclanglex/../../../../contrib/llvm/tools/clang/lib/Lex/HeaderSearch.=
cpp
> c++  -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316=
273/clangbsd/tmp/usr/include -isystem /root/clangbsd.gcc.1272316273/obj/roo=
t/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2 -isystem /root/clang=
bsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c+=
+/4.2/backward -B/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.127231=
6273/clangbsd/tmp/usr/lib/ -L/root/clangbsd.gcc.1272316273/obj/root/clangbs=
d.gcc.1272316273/clangbsd/tmp/usr/lib/ -O2 -pipe -I/root/clangbsd.gcc.12723=
16273/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/inclu=
de -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/.=
./../../../contrib/llvm/tools/clang/include -I/root/clangbsd.gcc.1272316273=
/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/tools/clan=
g/lib/Lex -I. -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/li=
bclanglex/../../include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MAC=
ROS -D__STDC_CONS
> TANT_MACROS -fno-rtti -DLLVM_HOSTTRIPLE=3D\"amd64-undermydesk-freebsd9.0\=
" -fstack-protector -c /root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang=
/lib/libclanglex/../../../../contrib/llvm/tools/clang/lib/Lex/Lexer.cpp
> In file included from /root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clan=
g/lib/libclanglex/../../../../contrib/llvm/tools/clang/lib/Lex/Lexer.cpp:11=
16:
> In file included from /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc=
.1272316273/clangbsd/tmp/usr/include/emmintrin.h:34:
> In file included from /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc=
.1272316273/clangbsd/tmp/usr/include/xmmintrin.h:39:
> /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/t=
mp/usr/include/mmintrin.h:63:18: error: use of undeclared identifier '__bui=
ltin_ia32_vec_init_v2si'
>   return (__m64) __builtin_ia32_vec_init_v2si (__i, 0);


you are using old clangbsd.. please update and this will go away



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