Closed Bug 1489415 Opened 8 years ago Closed 8 years ago

Fennec x86 dosen't build with NDK 16+

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: edgar, Unassigned)

Details

Gecko revision: aff060ad3204. I got following error, 0:00.62 Clobber not needed. 0:00.63 Adding make options from /Users/edgarchen/Workspace/mercurial/mozilla-central_android/mozconfig CONFIG_GUESS=i386-linux-android MOZ_OBJDIR=/Users/edgarchen/Workspace/mercurial/mozilla-central_android/objdir-droid_x86 OBJDIR=/Users/edgarchen/Workspace/mercurial/mozilla-central_android/objdir-droid_x86 FOUND_MOZCONFIG=/Users/edgarchen/Workspace/mercurial/mozilla-central_android/mozconfig export FOUND_MOZCONFIG 0:00.66 /usr/bin/make -f client.mk -s 0:00.75 cd /Users/edgarchen/Workspace/mercurial/mozilla-central_android/objdir-droid_x86 0:00.75 /Users/edgarchen/Workspace/mercurial/mozilla-central_android/configure 0:00.94 Reexecuting in the virtualenv 0:01.22 Adding configure options from /Users/edgarchen/Workspace/mercurial/mozilla-central_android/mozconfig 0:01.22 --enable-application=mobile/android 0:01.22 --target=i386-linux-android 0:01.22 --with-java-bin-path=/Library/Java/Home/bin 0:01.22 --with-android-sdk=/Users/edgarchen/.mozbuild/android-sdk-macosx 0:01.22 --with-android-ndk=/Users/edgarchen/.mozbuild/android-ndk-r16b 0:01.22 --enable-debug 0:01.22 --enable-debug-symbols 0:01.22 checking for vcs source checkout... hg 0:01.28 checking for a shell... /bin/sh 0:01.59 checking for host system type... x86_64-apple-darwin17.7.0 0:01.61 checking for target system type... i386-pc-linux-android 0:01.61 checking for a shell... /bin/sh 0:01.70 checking for host system type... x86_64-apple-darwin17.7.0 0:01.72 checking for target system type... i386-pc-linux-android 0:01.72 checking for android platform directory... /Users/edgarchen/.mozbuild/android-ndk-r16b/platforms/android-16/arch-x86 0:01.73 checking for android sysroot directory... /Users/edgarchen/.mozbuild/android-ndk-r16b/sysroot 0:01.73 checking for android system directory... 0:01.73 ERROR: Android system directory not found in [u'/Users/edgarchen/.mozbuild/android-ndk-r16b/platforms/android-16/arch-x86/usr/include', u'/Users/edgarchen/.mozbuild/android-ndk-r16b/sysroot/usr/include/i386-linux-android']. 0:01.75 *** Fix above errors and then restart with "/Applications/Xcode.app/Contents/Developer/usr/bin/make -f client.mk build" 0:01.75 make[1]: *** [configure] Error 1 0:01.75 make: *** [/Users/edgarchen/Workspace/mercurial/mozilla-central_android/objdir-droid_x86/config.status] Error 2 0:01.79 273 compiler warnings present. This is probably related to bug 1428182?
Ah, the target should be i686-linux-android, i.e. `ac_add_options --target=i386-linux-android` in mozconfig.
I didn't see this error after specifying i686-linux-android as target, but I got link error (filed bug 1489443). Close this as Invalid and I have updated the MDN page [1], it would be helpful if someone could review MDN changes for correctness. [1] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build#Configuration_options
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Product: Firefox for Android → Firefox Build System
You need to log in before you can comment on or make changes to this bug.