Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Mike Frysinger <vapier@g.o>
From: Andrew Udvare <audvare@...>
Subject: Re: GCC/LLVM-GCC targeting Darwin/OS X/iOS
Date: Thu, 13 Oct 2011 19:11:37 -0500
I did create some ebuilds of my own because the sys-devel/gcc-apple and sys-devel/binutils-apple are very specifically for use with Gentoo Prefix on OS X. They are just not what I call ready yet because they rely upon EXTRA_ECONF to get the --target triple.<div>
<br></div><div>Project is here: <a href="https://github.com/tatsh/xchain">https://github.com/tatsh/xchain</a></div><div><br></div><div>Complete (arm targetting iOS, i686 and x86_64 targeting OS X):</div><div>- Build Apple&#39;s cctools but only with older ld64; equivalent to binutils and 100% not the GNU versions</div>
<div>- Build Apple&#39;s GCC but only with precompiled libstdcxx and Libc</div><div>- Build Apple&#39;s LLVM and LLVM-GCC but again with precompiled libs</div><div><div><br></div><div>The main issues are:<div>- How to get the developer libraries from Apple (restricted source, have user get the DMG and put it in /usr/distfiles, extract DMG reliably)</div>
<div>  - If we do this, there&#39;s not much point to compiling Libc or libstdcxx since it&#39;s included with this</div><div><div>- How to build Apple&#39;s Libc <a href="http://www.opensource.apple.com/source/Libc/Libc-763.12/">http://www.opensource.apple.com/source/Libc/Libc-763.12/</a> (mainly for testing)</div>
<div>- How to build Apple&#39;s libstdcxx <a href="http://opensource.apple.com/source/libstdcxx/libstdcxx-52/">http://opensource.apple.com/source/libstdcxx/libstdcxx-52/</a> (mainly for testing)</div></div><div>- Build latest ld64 from Apple (currently I am using a patched older version); everything in this toolchain at this point must link with ld64 and not what Apple calls &#39;classic ld&#39;</div>
<div><br></div><div>The patch for Apple&#39;s version of binutils (same package as sys-devel/binutils-apple) that I made is quite large and may not be entirely necessary (it patches back in what they used to have, autotools). However Apple developers rely upon OS X&#39;s nearly automatic memset&#39;ing which is why somes patches are definitely necessary (or compiling stage will get segfaults).</div>
<div><br></div><div>I am maintaining an overlay <a href="https://github.com/tatsh/tatsh-overlay">https://github.com/tatsh/tatsh-overlay</a>. What I am planning to do is just add separate ebuilds for each target since only these are supported: i686, x86_64, arm (armv6, armv7 but I don&#39;t know how to differentiate these yet; default is armv6), and maybe powerpc and powerpc64.</div>
<div><br></div><div>Andrew</div><div><br>On Thursday, 13 October 2011, Mike Frysinger  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday 07 September 2011 02:40:05 Andrew Udvare wrote:<br>

&gt; Most sources come from <a href="http://opensource.apple.com" target="_blank">http://opensource.apple.com</a> just like the<br>
&gt; sys-devel/binutils-apple and sys-devel/gcc-apple packages. The version<br>
&gt; of cctools in the project is patched heavily (mainly due to missing<br>
&gt; headers, which we can distribute). One source is derived from<br>
&gt; iphone-dev&#39;s version of odcctools, but only for one part of it (ld64).<br>
&gt; It is not the same and needed fixing to compile with GCC 4.5.3. I plan<br>
&gt; to fix the up-to-date ld64 regardless.<br>
<br>
so you have more ebuilds to add to the tree ?  or something else ?<br>
<br>
&gt; I&#39;d like to reach the point of being able to type (perhaps with<br>
&gt; prerequisite work done by me like copying the SDK) `crossdev -t<br>
&gt; arm-apple-darwin` and `crossdev -t arm-apple-darwinX` (where X is 9,<br>
&gt; 10, 11).<br>
<br>
i think i&#39;m going to have to open up crossdev to sucking down from overlays<br>
via layman.  there&#39;s an open request for better msp430 support, and that<br>
requires hacks to some packages.<br>
-mike<br>
</blockquote></div></div></div>
References:
GCC/LLVM-GCC targeting Darwin/OS X/iOS
-- Andrew Udvare
Re: GCC/LLVM-GCC targeting Darwin/OS X/iOS
-- Mike Frysinger
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: GCC/LLVM-GCC targeting Darwin/OS X/iOS
Next by thread:
crossdev problem
Previous by date:
Re: glibc+iconv
Next by date:
Re: glibc+iconv


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.