Hello,
I downloaded android-toolchain-eabi-linaro-4.6-2012.03-2-2012-03-15_12-39-18-linux-x86.tar.bz2 from http://releases.linaro.org/12.03/components/android/toolchain/4.6/ but it doesn't ship the header files (not even <stdio.h>). I suppose these come on a separate Android sysroot? Where can I get such sysroot? In this case it's for vexpress-ics-gcc46-armlt-stable-open.img (from the 12.03 release).
My objective is to cross-compile binaries such as gdbserver for Linaro Android.
Hi,
On 26 April 2012 00:39, Thiago Jung Bauermann thiago.bauermann@linaro.org wrote:
Hello,
I downloaded android-toolchain-eabi-linaro-4.6-2012.03-2-2012-03-15_12-39-18-linux-x86.tar.bz2 from http://releases.linaro.org/12.03/components/android/toolchain/4.6/ but it doesn't ship the header files (not even <stdio.h>).
That is normal -- it's the way the Android build system works. For some reason, they decided to not ship header files and not even do a proper sysroot, instead relying on Makefile hacks that use -nostdinc -nostdlib combined with -I lines pointing directly at the source tree.
This will probably need to be fixed at some point - but we're a bit reluctant to fix it for our builds only, as we don't want to break compatibility with upstream.
I suppose these come on a separate Android sysroot? Where can I get such sysroot?
From the Android source tree, or alternatively from the NDK (we
currently aren't doing any NDK releases, so you'd have to get them from AOSP).
ttyl bero
On Thu, Apr 26, 2012 at 03:31:51PM +0200, Bernhard Rosenkränzer wrote:
On 26 April 2012 00:39, Thiago Jung Bauermann thiago.bauermann@linaro.org wrote:
I suppose these come on a separate Android sysroot? Where can I get such sysroot?
From the Android source tree, or alternatively from the NDK (we currently aren't doing any NDK releases, so you'd have to get them from AOSP).
There's a script in AOSP toolchain build repo for creating a sysroot from a built AOSP tree: https://android.googlesource.com/toolchain/build.git
On Wed, May 2, 2012 at 1:05 PM, Atte Peltomaki apeltomaki@nvidia.com wrote:
On Thu, Apr 26, 2012 at 03:31:51PM +0200, Bernhard Rosenkränzer wrote:
On 26 April 2012 00:39, Thiago Jung Bauermann thiago.bauermann@linaro.org wrote:
I suppose these come on a separate Android sysroot? Where can I get such sysroot?
From the Android source tree, or alternatively from the NDK (we currently aren't doing any NDK releases, so you'd have to get them from AOSP).
There's a script in AOSP toolchain build repo for creating a sysroot from a built AOSP tree: https://android.googlesource.com/toolchain/build.git
Is this the only/official way to extract headers? e.g. is this the mechanism used for extracting headers used by the NDK? Eventually, we would probably start producing full NDKs with Linaro toolchain included, but if the way above is the "officially blessed way" then it sounds like a good workaround until then (definitely worth properly documenting on the wiki or blogging about it).
On Wed, May 02, 2012 at 07:58:06PM +0200, Alexander Sack wrote:
On Wed, May 2, 2012 at 1:05 PM, Atte Peltomaki apeltomaki@nvidia.com wrote:
On Thu, Apr 26, 2012 at 03:31:51PM +0200, Bernhard Rosenkränzer wrote:
On 26 April 2012 00:39, Thiago Jung Bauermann thiago.bauermann@linaro.org wrote:
I suppose these come on a separate Android sysroot? Where can I get such sysroot?
From the Android source tree, or alternatively from the NDK (we currently aren't doing any NDK releases, so you'd have to get them from AOSP).
There's a script in AOSP toolchain build repo for creating a sysroot from a built AOSP tree: https://android.googlesource.com/toolchain/build.git
Is this the only/official way to extract headers? e.g. is this the mechanism used for extracting headers used by the NDK? Eventually, we would probably start producing full NDKs with Linaro toolchain included, but if the way above is the "officially blessed way" then it sounds like a good workaround until then (definitely worth properly documenting on the wiki or blogging about it).
I don't know much about the NDK, but it's not related to the AOSP toolchain. Build system for the latter isn't very polished and probably intended mainly for Google internal use.
linaro-android@lists.linaro.org