Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2013 07:53:55 +1300
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        Dave Hayes <dave@jetcafe.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: 9.1-Stable buildworld problems with Clang
Message-ID:  <20130320075355.4faeee8f@bender>
In-Reply-To: <514753E5.9000102@jetcafe.org>
References:  <514753E5.9000102@jetcafe.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 Mar 2013 10:50:29 -0700
Dave Hayes <dave@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



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