Gentoo Archives: gentoo-embedded

From: chrisfriedt@×××××.com
To: gentoo-embedded@l.g.o
Cc: wireless <wireless@×××××××××××.com>
Subject: Re: [gentoo-embedded] gcc-4.6 / bionic
Date: Tue, 22 Oct 2013 15:19:57
Message-Id: 20131022151954.5202063.53588.345@gmail.com
1 There is currently no connection to Linaro. Its just "for fun" and kind of experimental.
2
3 I gave a talk on ‎Gentoo Bionic at ELC in February and will be setting up a github repo whenever I have some time for the toolchain, rather than keeping it on Google code.
4
5 One thing I've identified is that there are really 2 routes that might be actually independent.
6
7 1) using Gentoo Prefix to have a Gentoo install atop of Android. Someone else has already done this recently - saw it on G+)‎. This is really the route for people who would still like to use their Android system but who would also like to emerge packages on top of it in a separate sysroot.
8
9 One issue with the toolchain is that definitions in portage itself (/usr/portage/profiles) needs to be modified in order to ‎use bionic instead of glibc, which means that a simple overlay will not work until Gentoo includes those definitions upstream in portage. Bit of a chicken / egg problem.
10
11 2) using ‎bionic as the system libc a) with the Android-normal prefix of /system, which is compatible with Android, and b) using the gentoo-normal prefix of /usr which is incompatible with Android. I'm personally aiming for b.
12
13 ‎In either case, a rather large set of patches need to be maintained just to get things to properly compile against bionic until the bionic headers behave "normally" - e.g. order of includes, conditional defines, conditional includes, include_next, etc. "Proper" (expected) behaviour of libc headers affects virtually everything that uses GNU autotools.
14
15 I'll probably maintain a separate github ‎repo for this overlay.
16
17 Hope that helps.
18
19 C
20
21 Sent from my BlackBerry 10 smartphone on the Rogers network.
22   Original Message  
23 From: wireless
24 Sent: Tuesday, October 22, 2013 9:35 AM
25 To: chrisfriedt@×××××.com
26 Subject: Re: [gentoo-embedded] gcc-4.6 / bionic
27
28 I know this is old:
29
30 On 04/06/11 10:52, Christopher Friedt wrote:
31 > Also... an important couple of features:
32 >
33 > TLS works on certain hardware (e.g. with hardware supported tls, like
34 > armv7a), but not on all architectures, like in GNU [1], [2]. It's
35 > probably better to blanket-disable this for now via a portage profile
36 > variable.
37 >
38 > SMP does not currently work OOTB. There are some patches floating
39 > around[3], with issues that mainly lie outside of bionic, but I the
40 > 'official' SMP code will be available whenever Honeycomb is
41 > released[4] ... which is of course whenever Google decides to do
42 > release Honeycomb.
43 >
44 > C
45 >
46 > [1] http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Thread-Local.html#Thread-Local
47 > [2] http://www.akkadia.org/drepper/tls.pdf
48 > [3] http://groups.google.com/group/android-platform/browse_thread/thread/de20f1b10703acc2
49 > [4] http://developer.android.com/sdk/android-3.0-highlights.html#multicore
50
51
52 What the latest with you and BIONIC.....
53 LINARO connection?
54
55
56 curiously,
57 James (embedded Gentoo)

Replies

Subject Author
Re: [gentoo-embedded] gcc-4.6 / bionic Mike Frysinger <vapier@g.o>