Gentoo Archives: gentoo-soc

From: heroxbd <heroxbd@×××××.com>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] Gentoo on Android, Summary for 2013.6.28-7.1
Date: Mon, 01 Jul 2013 15:19:08
Message-Id: 87bo6mmhqj.fsf@proton.in.awa.tohoku.ac.jp
In Reply to: Re: [gentoo-soc] Gentoo on Android, Summary for 2013.6.28-7.1 by Luca Barbato
1 Hey Luca,
2
3 Luca Barbato <lu_zero@g.o> writes:
4
5 > On 07/01/2013 04:48 PM, heroxbd wrote:
6 >
7 >> Gentoo on Android is about running Gentoo natively in a directory prefix
8 >> on Android devices[1] in parallel with native Android, mentored by Luca.
9 >>
10 >> Progress report for the past 3 days,
11 >>
12 >> 1. gcc specs hack is not that interesting as it first looks.
13 >> - parsing or generating specs script is no fun.
14 >> The best parser/generator is gcc itself
15 >> - appending simple specs (suches -dynamic-linker=/xx/xx.so) feel
16 >> not clever, appending --with-spec to configure either.
17 >>
18 >> Therefore, I decide not to use specs hack as the main building
19 >> block. At the same time, it can be handy to do manual tuning
20 >> with it.
21 >
22 > That must be reconsidered later to understand what's the problem and if
23 > upstream can help on that.
24
25 Got it.
26
27 >> Relying on binutils wrapper is no good either. The solution
28 >> finally falls on a mixed one between sysroot and native paths
29 >> methods (ref. table in [2]). Where I make use of eprefixify of
30 >> prefix.eclass to modify location of dynamic linker for *run
31 >> time* and sysroot for *compile time*.
32 >
33 > It isn't perfect, but as long it gives result I can live with that.
34
35 The perfect solution is to use --with-runtime-root-prefix contributed by
36 Google[1][2], but not enough interest was gathered[3].
37
38 >> 2. Prefix/libc armhf works rock solid. It is now being "emerge -e
39 >> @world" with the help of many distcc cross compilers. I have to
40 >> leave my cell phone home for a constant power supply and
41 >> ethernet connection (yes! USB ethernet adapter) though.
42 >
43 > Make sure it is near a heatsink (AC or such).
44
45 The sensor says it's less than 40 degree C ;)
46
47 >> The bug is related to VDSO. A full description of the problem is
48 >> on stackoverflow[3]. I'd be very appreciated for any hints.
49 >
50 > uclibc or musl might or might not help?
51
52 Not sure, I'm going to try out uclibc/musl anyway.
53
54 UPDATE: asked for help on glibc mailing list
55
56 http://article.gmane.org/gmane.comp.lib.glibc.user/1903
57
58 Cheers,
59 Benda
60
61 1. http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01904.html
62 2. http://gcc.gnu.org/ml/gcc-help/2012-03/msg00146.html
63 3. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52556

Replies

Subject Author
Re: [gentoo-soc] Gentoo on Android, Summary for 2013.6.28-7.1 Luca Barbato <lu_zero@g.o>