9.1-Stable buildworld problems with Clang

Andrew Turner andrew at fubar.geek.nz
Tue Mar 19 18:54:12 UTC 2013


On Mon, 18 Mar 2013 10:50:29 -0700
Dave Hayes <dave at jetcafe.org> wrote:

> Hello. I'm trying to buildworld a custom arm image from an amd64 box 
> with clang as of
> 
>   # uname -v
>   FreeBSD 9.1-STABLE #0 r248220: Tue Mar 12 21:40:35 PDT 2013
> 
> and I'm getting the following issue.
> 
>   # make buildworld TARGET=arm
> 
>    clang  -O -pipe -O2 -fno-strict-aliasing -pipe  -fpic 
> -fvisibility=hidden -DVISIBILITY_HIDDEN -std=gnu99 -Qunused-arguments 
> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized 
> -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality 
> -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum 
> -Wno-knr-promoted-parameter -c 
> /usr/src.arm/lib/libcompiler_rt/../../contrib/compiler-rt/lib/clear_cache.c 
> -o clear_cache.o
>  
> /usr/src.arm/lib/libcompiler_rt/../../contrib/compiler-rt/lib/clear_cache.c:24:6: 
> error: definition of builtin function '__clear_cache'
>    void __clear_cache(void* start, void* end)
> 
> I could be doing something wrong here. My make.conf is this
> 
>   CC=clang
>   CXX=clang++
>   CPP=clang-cpp
>   CFLAGS+=-O2 -fno-strict-aliasing -pipe
>   COPTFLAGS+=-O1 -fno-strict-aliasing -pipe
>   WITH_CLANG=YES
>   WITH_CLANG_IS_CC=yes
>   WITH_CLANG_EXTRAS=yes
>   WITHOUT_GCC=yes
>   WERROR=
>   NO_WERROR=
> 
> I don't get clear information googling around, so if someone knows 
> what's going wrong here...I'd really appreciate it if you could
> inform me. Thanks in advance. :)

What version of FreeBSD are you trying to build? Clang is only
recently able to build FreeBSD ARM and is only in head.

Andrew


More information about the freebsd-arm mailing list