--with-android-ndk and gecko (branch pine)

Hi,

I have a build issue with gecko (branch pine) :

./build.sh
...
/home/daniel/nexus5/source/transition/B2G/pine/configure
Reexecuting in the virtualenv
Adding configure options from /home/daniel/nexus5/source/transition/B2G/gonk-misc/default-gecko-config
  --enable-crashreporter
  --enable-release
  --enable-js-shell
  --target=arm-linux-androideabi
  --with-gonk=/home/daniel/nexus5/source/transition/B2G
  --enable-application=b2g
  --with-android-ndk=/home/daniel/.mozbuild/android-ndk-r11b
  --with-android-version=21
  --enable-debug-symbols
  --with-ccache
  --disable-jemalloc
  --disable-printing
  --enable-updater
  --enable-update-channel=
  --with-fpu=neon
  --with-ccache
  CXXFLAGS=-DMOZ_ENABLE_JS_DUMP -include /home/daniel/nexus5/source/transition/B2G/gonk-misc/Unicode.h 
  MOZ_ADDON_SIGNING=1
  MOZ_REQUIRE_SIGNING=0
  ENABLE_TESTS=1
  ENABLE_MARIONETTE=1
  B2G_ANDROID_NDK_PATH=/home/daniel/.mozbuild/android-ndk-r11b
checking for a shell... /bin/sh
checking for host system type... x86_64-pc-linux-gnu
checking for target system type... arm-unknown-linux-androideabi
Traceback (most recent call last):
  File "/home/daniel/nexus5/source/transition/B2G/pine/configure.py", line 94, in <module>
    sys.exit(main(sys.argv))
  File "/home/daniel/nexus5/source/transition/B2G/pine/configure.py", line 22, in main
    sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
  File "/home/daniel/nexus5/source/transition/B2G/pine/python/mozbuild/mozbuild/configure/__init__.py", line 239, in run
    raise InvalidOptionError('Unknown option: %s' % without_value)
mozbuild.configure.options.InvalidOptionError: Unknown option: --with-android-ndk

/home/daniel/.mozbuild/android-ndk-r11b doesn’t exist. How to install it (a google search did not help me)?
(I’ve no problem to build Firefox OS v2.5 and v2.6.)

thanks

You need to update your B2G repo, by running ./repo sync to get the updated gonk-misc that removes this flag.

don’t fix for me :

./repo sync

cd gonk-misc/

git log --max-count=1
commit 31f2fbb02035c18b84f3387317aab75adf65da87
Merge: 6d240f9 8b88e0d
Author: Thomas Zimmermann <tdz@users.sourceforge.net>
Date:   Fri Jun 17 11:19:52 2016 +0200

    Merge pull request #273 from tdz/bug-1276927
    
    Adapt Gecko build config for C++11 builds with an external Android NDK

cd ..
rm objdir-gecko/ -rf && rm out/ -rf
./build.sh -j1
...
Traceback (most recent call last):
  File "/home/daniel/nexus5/source/transition/B2G/pine/configure.py", line 94, in <module>
    sys.exit(main(sys.argv))
  File "/home/daniel/nexus5/source/transition/B2G/pine/configure.py", line 22, in main
    sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
  File "/home/daniel/nexus5/source/transition/B2G/pine/python/mozbuild/mozbuild/configure/__init__.py", line 239, in run
    raise InvalidOptionError('Unknown option: %s' % without_value)
mozbuild.configure.options.InvalidOptionError: Unknown option: --with-android-ndk
...

an idea ?

Can you pastebin the contents of gonk-misc/default-gecko-config and .userconfiig ?

thank you for your reply.

content of gonk-misc/default-gecko-config : http://pastebin.com/hWPeyFKN

content of .userconfig :

export B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)}
echo "B2G_DIR = ${B2G_DIR}"
export GECKO_PATH=${B2G_DIR}/pine
echo "GECKO_PATH = ${GECKO_PATH}"
export BOOTANIMATION_ASSET_SIZE='1080p'
export DATA_PARTITION='/dev/block/platform/msm_sdcc.1/by-name/userdata'
export ENABLE_DEFAULT_BOOTANIMATION='true'
export ENABLE_LIBRECOVERY='true'
export GAIA_DEV_PIXELS_PER_PX='3'
export GAIA_KEYBOARD_LAYOUTS=en,fr
export GAIA_OPTIMIZE='1'
export LOCALE_BASEDIR='locales'
export LOCALES_FILE='locales/languages_all.json'
export SYSTEM_PARTITION='/dev/block/platform/msm_sdcc.1/by-name/system'
export VARIANT='userdebug'

Is it possible that Thomas merged his fix for libc++ bit since we do not
have updates pine against m-c we are blocked?

<
https://ci5.googleusercontent.com/proxy/N196B4HoHOChfzISeoUxlQjS-j2oLC5eOxiz7o1nwEOaNtYHbEUl_stR5o0KLsyC_SMOtbsF33V8F76OVt_vAqhOI8kspH_2TFGSCv1oXvkaCFLjkJtjMwyzUygaX0eI87ahotm-iyIz7ag=s0-d-e1-ft#https://discourse.mozilla-community.org/letter_avatar_proxy/v2/letter/e/bbe5ce/45.png>
erable
June 19

thank you for your reply.

content of gonk-misc/default-gecko-config : http://pastebin.com/hWPeyFKN

content of .userconfig :

export B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)}
echo "B2G_DIR = ${B2G_DIR}"
export GECKO_PATH=${B2G_DIR}/pine
echo "GECKO_PATH = ${GECKO_PATH}"
export BOOTANIMATION_ASSET_SIZE=‘1080p’
export DATA_PARTITION=’/dev/block/platform/msm_sdcc.1/by-name/userdata’
export ENABLE_DEFAULT_BOOTANIMATION='true’
export ENABLE_LIBRECOVERY='true’
export GAIA_DEV_PIXELS_PER_PX='3’
export GAIA_KEYBOARD_LAYOUTS=en,fr
export GAIA_OPTIMIZE='1’
export LOCALE_BASEDIR='locales’
export LOCALES_FILE=‘locales/languages_all.json’
export SYSTEM_PARTITION=’/dev/block/platform/msm_sdcc.1/by-name/system’
export VARIANT=‘userdebug’


Visit Topic or reply to this email to respond.


In Reply To

<
https://ci6.googleusercontent.com/proxy/MfrjzjeGwef3wJ4juKLn5Txuz-Vj3ewZPbwAn6PN7zVc7IZKwngQmUZNxprLIIKK9E7A3kuIAaIuclmox-tfRnbF5MSeaCAcMtmqWxBX-PhV0NDu4RSCxPEivOk7DQGMKT3ZjaECNhQ0WYVejVRf18YmtfR41ujT2PmKm6hjdw=s0-d-e1-ft#https://discourse.mozilla-community.org/user_avatar/discourse.mozilla-community.org/fabrice/45/4146_1.png>
fabrice
June 19
Can you pastebin the contents of gonk-misc/default-gecko-config and
.userconfiig ?

I comment this line :
# ac_add_options --with-android-ndk="${B2G_ANDROID_NDK_PATH}"

and now I no longer have this error.

but after a long time, build has failed again (not at the same place) :
`
/home/daniel/nexus5/source/transition/B2G/pine/toolkit/mozapps/extensions/AddonContentPolicy.cpp: In member function ‘void CSPValidator::FormatError(const char*, const T …)’:
…/…/…/dist/include/mozilla/ArrayUtils.h:189:84: error: no matching function for call to ‘ArrayLengthHelper(const char16_t* [])’

define MOZ_ARRAY_LENGTH(array) sizeof(mozilla::detail::ArrayLengthHelper(array))

`

Perhaps because I use gcc 4.8 ? Which version of gcc are you using?

GCC is being used from the prebuilts

Mozilla Discourse a écrit :


erable

June 19

I comment this line :

# ac_add_options --with-android-ndk="${B2G_ANDROID_NDK_PATH}"

and now I no longer have this error.

but after a long time, build has failed again (not at the same place) :

/home/daniel/nexus5/source/transition/B2G/pine/toolkit/mozapps/extensions/AddonContentPolicy.cpp: In member function ‘void CSPValidator::FormatError(const char*, const T …)’:

…/…/…/dist/include/mozilla/ArrayUtils.h:189:84: error: no matching function for call to ‘ArrayLengthHelper(const char16_t* [])’

define MOZ_ARRAY_LENGTH(array) sizeof(mozilla::detail::ArrayLengthHelper(array))

Perhaps because I use gcc 4.8 ? Which version of gcc are you using?


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Envoyé depuis Firefox OS

Please have a look at the posting entitled ‘How to build pine and m-c’.

1 Like