From owner-freebsd-arm@FreeBSD.ORG Mon Mar 18 17:51:00 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B6C61C34 for ; Mon, 18 Mar 2013 17:51:00 +0000 (UTC) (envelope-from dave@jetcafe.org) Received: from nahkohe.jetcafe.org (nahkohe.jetcafe.org [205.147.26.32]) by mx1.freebsd.org (Postfix) with ESMTP id 94E4DD90 for ; Mon, 18 Mar 2013 17:51:00 +0000 (UTC) X-Envelope-To: Received: from [205.147.26.5] (hokkshideh4.jetcafe.org [205.147.26.5]) by nahkohe.jetcafe.org (8.14.2/8.14.2) with ESMTP id r2IHoT1j054226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 18 Mar 2013 10:50:29 -0700 (PDT) Message-ID: <514753E5.9000102@jetcafe.org> Date: Mon, 18 Mar 2013 10:50:29 -0700 From: Dave Hayes User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121121 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: 9.1-Stable buildworld problems with Clang Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2013 17:51:00 -0000 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. :) -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>>> *The opinions expressed above are entirely my own* <<<< A passerby caught Nasrudin prying open the window of his own bedroom from the outside in the depths of night. "What are you doing? Locked out?" "Hush!" came the reply. "They say I walk in my sleep. I am trying to surprise myself and find out."