Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Android NDK bump to r8c and gcc-4.6 and gold

283 views
Skip to first unread message

Kartikaya Gupta

unread,
Jan 2, 2013, 10:54:33 AM1/2/13
to
I just landed bug 825453 on inbound, which updates the ARMv6 fennec
mozconfigs to use NDK r8c with the gcc4.6+gold toolchain by default (as
opposed to the from r5c with gcc4.4.3+bfd we were previously). This is
now the "officially supported" NDK version for ARMv6 builds. Later today
I will also be landing bug 825151 which does the same for ARMv7 builds.
The x86 fennec builds will currently remain on r7b until I have had a
chance to build and test with r8c.

I have updated the wiki page at
https://wiki.mozilla.org/Mobile/Fennec/Android to reflect these changes,
and you may want to update your local build environments to use r8c as
well. To do this, download the r8c NDK for Linux [1] or Mac [2] and make
the following changes to your mozconfig:

1) Change the "--with-android-ndk" to point to the r8c NDK folder
instead of the r5c folder.

2) Add "ac_add_options --with-android-gnu-compiler-version=4.6" to the
mozconfig so that the build picks up the gcc-4.6 toolchain in the new
NDK rather than the gcc-4.4.3 toolchain which it will do by default.

Note that the changes made do not affect FF17, 18, or 19. Fennec 20 will
be the first release built with the new toolchains; I plan to let the
mozconfig changes ride the trains, barring any unexpected problems.

Please let me know and/or file bugs if you run into any issues with the
toolchain changes.

Cheers,
kats

[1] http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
[2] http://dl.google.com/android/ndk/android-ndk-r8c-darwin-x86.tar.bz2

Chris Peterson

unread,
Jan 2, 2013, 1:24:35 PM1/2/13
to
On 1/2/13 7:54 AM, Kartikaya Gupta wrote:
> I just landed bug 825453 on inbound, which updates the ARMv6 fennec
> mozconfigs to use NDK r8c with the gcc4.6+gold toolchain by default (as

FYI: Be sure to download NDK r8c (November 2012), not r8d (December
2012)! I get the following compilation error with NDK r8d, but not r8c:

android-ndk-r8d/sources/cxx-stl/stlport/stlport/stl/_exception.h:58:60:
fatal error: ../../system/include/exception: No such file or directory

btw, NDK r8d version includes gcc 4.7. :)


chris

Kartikaya Gupta

unread,
Jan 2, 2013, 5:12:34 PM1/2/13
to
Just an update: ARMv7 and x86 builds have also been switched over to NDK
r8c and gcc-4.6, as of inbound cset 2e65e2a80775.

Cheers,
kats

Mark Finkle

unread,
Feb 8, 2013, 3:02:57 PM2/8/13
to
Just a note. NDK r8c seems to be *required* now. I had errors building
on Linux and OS X that went away after updating to NDK r8c. A side
benefit is you are now using the same NDK as the Mozilla build system.

Happy building,
Finkle

Kartikaya Gupta

unread,
Feb 8, 2013, 3:05:38 PM2/8/13
to Mark Finkle
Also note that I landed bug 828660 last month that makes the
--with-android-gnu-compiler-version option unnecessary. The build should
default to the 4.6 toolchain if you're using the new NDK.

kats
0 new messages