From owner-freebsd-arm@FreeBSD.ORG Fri May 17 12:43:53 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2D98F78C for ; Fri, 17 May 2013 12:43:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id F3974A3C for ; Fri, 17 May 2013 12:43:52 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id e11so9110403iej.2 for ; Fri, 17 May 2013 05:43:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=TZqNkDHCU2mEpuw7AXdbhS5UGVNufWryManL9+yzTgo=; b=fprVHEd+Cwk+g22elLhG9GZXDO+KOeMA+7GRWFJHAdLaIJPwNYCKeKkWkZ7V3ze++g FHGk8gm+mtpyVY8XfvsyjK3ZVfbFM6DHZCe2xyT52EUqjtL+6QI04kpTlDQUXaKPYPIU dgyVOYT7OUONOId1bB1XXrPHecQkhRNeZLZedkFO2jknoItNPTeYZOTLsFGUMPh9Tt5h ACVxw53X/TqBYlQSW60yez4j95DNM/2IjoE+GvEbIuvnb1yCUSXSjFLSAci1LGJaDwMA uAr+DGvCZzWFjGOYw4MzlIneFwbUo9snBC+WCewicc3cRKa80bp+4iFHrS0oAzEkfwah kFdw== X-Received: by 10.50.130.3 with SMTP id oa3mr13015274igb.69.1368794632623; Fri, 17 May 2013 05:43:52 -0700 (PDT) Received: from [172.24.136.228] ([137.122.64.56]) by mx.google.com with ESMTPSA id kc10sm4274077igb.0.2013.05.17.05.43.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 05:43:51 -0700 (PDT) Sender: Warner Losh Subject: Re: clear_cache and clang (was Re: Git crash on EABI system.) Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <6FEBBFCD-C698-48E6-B9CA-D9FCB6A5AD5A@freebsd.org> Date: Fri, 17 May 2013 08:43:47 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <46D3F1AB-52DC-442D-B777-6B493C20B2B5@bsdimp.com> References: <51949698.80205@thieprojects.ch> <2290084B-D302-4489-BB01-817497901E2B@freebsd.org> <5195F2CA.2090103@thieprojects.ch> <6FEBBFCD-C698-48E6-B9CA-D9FCB6A5AD5A@freebsd.org> To: Tim Kientzle X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQlOcMXF5XoejruKZs+NhHaTDfSmeFq6WEhtX62Uvoo/O7OzqhQTDL9oZBjQVvMCFyfqiqBr Cc: freebsd-arm 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: Fri, 17 May 2013 12:43:53 -0000 On May 17, 2013, at 8:22 AM, Tim Kientzle wrote: >=20 > On May 17, 2013, at 5:05 AM, Werner Thie wrote: >=20 >> Tim >>=20 >> Maybe you or somebody else can shed some light onto how compiler-rt = is used for the ARM platform, specifically why am I getting a >>=20 >> missing symbol __clear_cache >=20 > I suspect it's somehow related to this (from libcompiler_rt/Makefile): >=20 > # Don't build clear_cache on ARM with clang as it is a builtin there. > .if ${MACHINE_CPUARCH} !=3D "arm" || ${COMPILER_TYPE} !=3D "clang" > SRCF+=3D clear_cache > .endif >=20 > Do you know what code in ctypes for Python is referring to > that symbol? There may be some oddity in how that symbol is > being referenced that's incompatible with the clang built-in. So why would the compiler type matter for libcompiler_rt? Warner