Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuilds that create x86_64/bionic toolchain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
krisk0
n00b
n00b


Joined: 17 Dec 2015
Posts: 2

PostPosted: Mon Dec 21, 2015 8:13 am    Post subject: ebuilds that create x86_64/bionic toolchain Reply with quote

I have recently compiled from source and installed onto my Gentoo/x86_64 desktop a piece of Android, including native bionic-targeting toolchain. The toolchain is similar to uclibc installed via crossdev into x86_64-pc-linux-uclibc: it acts as a native compiler; the compiled code runs without emulation or setting environment variables like LD_LIBRARY_PATH.

My compiler creates 32- or 64-bit code; the code can run on Android tablet, too.

My compiler auto-magically inserts command-line switches when appropriate. For instance, -pie -lgnustl_shared are auto-magically inserted when building C++ executable, so command like '...g++ stl_demo.cpp' and compiled executable just work.

My ebuilds and script that build the toolchain are available from https://github.com/krisk0/pc-linux-android. Build process is fully automatic; some ebuilds attempt to take into account CC and CFLAGS settings.

No propriety code is used when building. No git or other CVS download; just https/ftp/http. Download size: 59M not counting standard bundles like gcc-4.9.2.tar.bz2. Build time: 14 minutes on 4-processor 3.2GHz i5-4460 with SSD.

Build requirements:
1. Root access to a computer with Portage package manager.
2. Compiled kernel source in /usr/src/linux
3. Internet access to download .zip files from github.com

Once built, the compiler can be moved to Android tablet and used there. I think. Can't test this because my tablet refuses to run 64-bit x86_64 code.

I accept bug-reports via github mechanism.
_________________
github.com/krisk0/pc-linux-android: take a piece of Android
Back to top
View user's profile Send private message
krisk0
n00b
n00b


Joined: 17 Dec 2015
Posts: 2

PostPosted: Thu Dec 31, 2015 5:22 pm    Post subject: Reply with quote

Who said Android development is lagging behind?

Compiled GCC 5.3.0 as a native Android compiler. .ebuild's added.
_________________
github.com/krisk0/pc-linux-android: take a piece of Android
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum