From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 27 11:06:11 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BC617358 for ; Thu, 27 Jun 2013 11:06:11 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 815841B6D for ; Thu, 27 Jun 2013 11:06:11 +0000 (UTC) Received: from spaceball.andric.com (spaceball.andric.com [IPv6:2001:7b8:3a7:0:204:4bff:fe01:de8a]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 70E775C43; Thu, 27 Jun 2013 13:06:08 +0200 (CEST) Message-ID: <51CC1C9F.7080403@andric.com> Date: Thu, 27 Jun 2013 13:06:07 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Thunderbird/22.0 MIME-Version: 1.0 To: Kevin Day , "freebsd-hackers@freebsd.org Hackers" Subject: Re: Can't use gcc in a clang built world References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andrew Turner X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2013 11:06:11 -0000 On 2013-06-27 02:02, Kevin Day wrote: > Are you supposed to be able to use gcc to build userland binaries if you built world with clang? > > I'm on -CURRENT as of a few days ago (using armv6 but i'm not sure if that matters). Yes, the arch matters a lot. For arm, adding __clear_cache() to libgcc was explicitly disabled by Andrew here: http://svnweb.freebsd.org/base?view=revision&revision=244382 "Don't provide clear_cache or the __sync_* functions on ARM with clang as they are provided by clang as builtin functions." Maybe those functions should be in libgcc after all, if other programs depend on this. -Dimitry