From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105056 invoked by alias); 18 Aug 2015 02:32:59 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 104988 invoked by uid 89); 18 Aug 2015 02:32:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f42.google.com Received: from mail-qg0-f42.google.com (HELO mail-qg0-f42.google.com) (209.85.192.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 18 Aug 2015 02:32:48 +0000 Received: by qgdd90 with SMTP id d90so107988432qgd.3 for ; Mon, 17 Aug 2015 19:32:46 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.237.140 with SMTP id i134mr8674416qhc.81.1439865166215; Mon, 17 Aug 2015 19:32:46 -0700 (PDT) Received: by 10.140.22.103 with HTTP; Mon, 17 Aug 2015 19:32:46 -0700 (PDT) In-Reply-To: <256743D3-7840-4DDF-B76D-F00B256A169C@icloud.com> References: <256743D3-7840-4DDF-B76D-F00B256A169C@icloud.com> Date: Tue, 18 Aug 2015 02:32:00 -0000 Message-ID: Subject: Re: Error trying to ./bootstrap crosstool-ng on Mac OS X 10.10.4 From: Cosmos Nicolaou To: Peter Teeson Cc: crossgcc maillist Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00008.txt.bz2 On Mon, Aug 17, 2015 at 7:17 PM, Peter Teeson wrote: > HI Cos: > Apple has been using clang/llvm/lldb for quite some time now. > Desktop programming is where I spend my time but I think their mobile ch= ips are ARM. > So I infer that clang/llvm will produce ARM binaries. > So if I setup a RPi toolchain I hope =E2=80=9CIt Just Works=E2=80=9D to q= uote Steve. > > But I may be terribly wrong. > > I=E2=80=99ll look at your project=E2=80=A6. it's never quite as simple as one would like:-) clang/llvm can do the job of generating arm code, but you need to use gnu ld since that's an elf linker unlike the darwin native linker. You also need access to the libraries+header files for the target system - I get these from the system image I run on my pis. It's not as slick as crosstools, but I couldn't crosstools past the dependency on glibc so I gave up and rolled my own. Cheers, Cos. > > Peter >> On Aug 17, 2015, at 6:17 PM, Cosmos Nicolaou = wrote: >> >> I ended up using clang - take a look at the github project below - >> it's fairly clunky but works for simple things. You'll need to copy >> the image from your pi to the mac for this to work. Let me know if >> it's useful for you. >> >> https://github.com/cosnicolaou/mac-pixc >> >> Cheers, Cos. > -- For unsubscribe information see http://sourceware.org/lists.html#faq