Error trying to ./bootstrap crosstool-ng on Mac OS X 10.10.4

Cosmos Nicolaou cosmos.nicolaou@gmail.com
Tue Aug 18 02:32:00 GMT 2015


On Mon, Aug 17, 2015 at 7:17 PM, Peter Teeson <pteeson@icloud.com> 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 chips are ARM.
> So I infer that clang/llvm will produce ARM binaries.
> So if I setup a RPi toolchain I hope “It Just Works” to quote Steve.
>
> But I may be terribly wrong.
>
> I’ll look at your project….

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 <cosmos.nicolaou@gmail.com> 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



More information about the crossgcc mailing list