Re: ClangBSD build failures

From: Roman Divacky <rdivacky_at_FreeBSD.org>
Date: Tue, 27 Apr 2010 09:08:35 +0200
On Tue, Apr 27, 2010 at 08:21:41AM +0200, Dominic Fandrey wrote:
> Hello,
> 
> I wanted to make some performance comparisons, building ClangBSD
> with different compilers.
> 
> The host system is:
> FreeBSD mobileKamikaze.norad 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Apr  5 12:45:41 CEST 2010     root_at_mobileKamikaze.norad:/usr/obj/HP6510b-8/amd64/usr/src/sys/HP6510b-8  amd64
> 
> An interesting result is that buildkernel with clang takes longer:
> CC=clang
> 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
> 
> CC=cc
> 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
 
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.
> 
> I cannot make this comparison for buildworld, because buildworld
> with CC=cc, CXX=c++ fails:
> 
> ===> usr.bin/clang/lib/libclanglex (all)
> c++  -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/include -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2 -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2/backward -B/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/lib/ -L/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/lib/ -O2 -pipe -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/include -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/clang/lib/Lex -I. -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/../../include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONS
> TANT_MACROS -fno-rtti -DLLVM_HOSTTRIPLE=\"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.1272316273/clangbsd/tmp/usr/include -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2 -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2/backward -B/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/lib/ -L/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/lib/ -O2 -pipe -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/include -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/clang/lib/Lex -I. -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/../../include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONS
> TANT_MACROS -fno-rtti -DLLVM_HOSTTRIPLE=\"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.1272316273/clangbsd/tmp/usr/include -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2 -isystem /root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/include/c++/4.2/backward -B/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/lib/ -L/root/clangbsd.gcc.1272316273/obj/root/clangbsd.gcc.1272316273/clangbsd/tmp/usr/lib/ -O2 -pipe -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/../../../../contrib/llvm/include -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/clang/lib/Lex -I. -I/root/clangbsd.gcc.1272316273/clangbsd/usr.bin/clang/lib/libclanglex/../../include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONS
> TANT_MACROS -fno-rtti -DLLVM_HOSTTRIPLE=\"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/clang/lib/libclanglex/../../../../contrib/llvm/tools/clang/lib/Lex/Lexer.cpp:1116:
> 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/tmp/usr/include/mmintrin.h:63:18: error: use of undeclared identifier '__builtin_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
Received on Tue Apr 27 2010 - 05:11:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:03 UTC