Skip to contentSkip to conversation

bitbake firefox using meta-browser layer

DISCUSSION Pandey, Kamal 3 participants 3 messages Aug 20, 2018 – Aug 21, 2018

lore
Share & tools
lore
#0 lore raw

I was trying to compile the Firefox browser for a custom embedded device. But it is falling giving the following error:

cd /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/firefox-build-dir

| /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure --target=aarch64-pdm3-linux --host=x86_64-linux --with-toolchain-prefix=aarch64-pdm3-linux- --build=x86_64-linux --prefix=/usr
| Reexecuting in the virtualenv
| Adding configure options from /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/mozconfig
|   --enable-application=browser
|   --target=aarch64-pdm3-linux
|   --prefix=/usr
|   --enable-application=browser
|   --enable-official-branding
|   --disable-elf-hack
|   --disable-gold
|   --disable-strip
|   --disable-install-strip
|   --with-system-nss
|   --with-system-nspr
|   --with-system-zlib
|   --with-system-bz2
|   --with-system-libevent
|   --with-system-libvpx
|   --with-system-icu
|   --enable-system-ffi
|   --enable-system-pixman
|   --enable-startup-notification
|   --enable-pulseaudio
|   --disable-tests
|   --disable-necko-wifi
|   --disable-gconf
|   --disable-crashreporter
|   --disable-updater
|   --disable-debug-symbols
| checking for a shell... /home/iepl/work/yocto_build/poky/build/tmp/hosttools/sh
| checking for host system type... x86_64-pc-linux-gnu
| checking for target system type... aarch64-pdm3-linux-gnu
| Traceback (most recent call last):
|   File "/home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure.py", line 107, in <module>
|     sys.exit(main(sys.argv))
|   File "/home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure.py", line 26, in main
|     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
|   File "/home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/python/mozbuild/mozbuild/configure/__init__.py", line 359, in run
|     raise InvalidOptionError('Unknown option: %s' % without_value)
| mozbuild.configure.options.InvalidOptionError: Unknown option: --build
| *** Fix above errors and then restart with\
|                "make -f client.mk build"
| client.mk:375: recipe for target 'configure' failed
| make: *** [configure] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/temp/log.do_configure.5847)

ERROR: Task (/home/iepl/work/yocto_build/meta-browser/recipes-browser/firefox/firefox_52.9.0esr.bb:do_configure) failed with exit code '1'

Can anybody provide me a solution or at least a hint, so that I can move forward.

Best Regards
Kamal Pandey
Junior Software Engineer
[ifm_logo_sqrs]ifm engineering pvt. ltd.
Survey No. 1/10/16, 3rd floor, Above SBI, Bavdhan Branch, N.D.A. Road, Bavdhan, Pune, India - 411021 | Web: www.ifm.com<http://www.ifm.com/> | Phone: +91-20-22951910 Extn:215 | CIN: U29213PN2010FTC13676

#1 lore raw

2018-08-20 15:56 GMT+02:00 Pandey, Kamal <[email protected]>:

Quoted 10 lines

cd /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/firefox-build-dir

| /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64- pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure --target=aarch64-pdm3-linux --host=x86_64-linux --with-toolchain-prefix=aarch64-pdm3-linux- --build=x86_64-linux --prefix=/usr
| mozbuild.configure.options.InvalidOptionError: Unknown option: --build

Quoted 7 lines

| *** Fix above errors and then restart with\
Can anybody provide me a solution or at least a hint, so that I can move forward.

The hint is in these lines. Mozilla's configure script thinks --build is not a valid option, so you need to figure out where it's coming from, and why it doesn't work.

Alex

#2 lore raw
In reply to Pandey, Kamal

Hi.

| mozbuild.configure.options.InvalidOptionError: Unknown option: --build |

Please try removing "--build=${BUILD_SYS}" from EXTRA_OECONF in meta-browser/classes/mozilla.bbclass. This option is removed in recent firefox.

# But it's a bit weird, I don't met this error on firefox 52.9.0, it's reproduced on firefox 60 though. # https://github.com/OSSystems/meta-browser/pull/160/files#diff-3d50dfec940b3c4b146aae90e6224125R11

Quoted 118 lines · Kamal

I was trying to compile the Firefox browser for a custom embedded device. But it is falling giving the following error:

cd /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/firefox-build-dir

| /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure --target=aarch64-pdm3-linux --host=x86_64-linux
--with-toolchain-prefix=aarch64-pdm3-linux- --build=x86_64-linux
--prefix=/usr

| Reexecuting in the virtualenv

| Adding configure options from /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/mozconfig

|   --enable-application=browser

|   --target=aarch64-pdm3-linux

|   --prefix=/usr

|   --enable-application=browser

|   --enable-official-branding

|   --disable-elf-hack

|   --disable-gold

|   --disable-strip

|   --disable-install-strip

|   --with-system-nss

|   --with-system-nspr

|   --with-system-zlib

|   --with-system-bz2

|   --with-system-libevent

|   --with-system-libvpx

|   --with-system-icu

|   --enable-system-ffi

|   --enable-system-pixman

|   --enable-startup-notification

|   --enable-pulseaudio

|   --disable-tests

|   --disable-necko-wifi

|   --disable-gconf

|   --disable-crashreporter

|   --disable-updater

|   --disable-debug-symbols

| checking for a shell... /home/iepl/work/yocto_build/poky/build/tmp/hosttools/sh

| checking for host system type... x86_64-pc-linux-gnu

| checking for target system type... aarch64-pdm3-linux-gnu

| Traceback (most recent call last):

|   File "/home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure.py", line 107, in <module>

|     sys.exit(main(sys.argv))

|   File "/home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/configure.py", line 26, in main

| sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))

|   File "/home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/firefox-52.9.0esr/python/mozbuild/mozbuild/configure/__init__.py", line 359, in run

|     raise InvalidOptionError('Unknown option: %s' % without_value)

| mozbuild.configure.options.InvalidOptionError: Unknown option: --build

| *** Fix above errors and then restart with\

|                "make -f client.mk build"

| client.mk:375: recipe for target 'configure' failed

| make: *** [configure] Error 1

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_configure (log file is located at /home/iepl/work/yocto_build/poky/build/tmp/work/aarch64-pdm3-linux/firefox/52.9.0esr-r0/temp/log.do_configure.5847)

ERROR: Task (/home/iepl/work/yocto_build/meta-browser/recipes-browser/firefox/firefox_52.9.0esr.bb:do_configure) failed with exit code '1'

Can anybody provide me a solution or at least a  hint, so that I can move forward.

Best Regards

Kamal Pandey

Junior Software Engineer

ifm_logo_sqrsifm engineering pvt. ltd.

Survey No. 1/10/16, 3rd floor, Above SBI, Bavdhan Branch, N.D.A. Road, Bavdhan, Pune, India - 411021 | Web: www.ifm.com <http://www.ifm.com/>| Phone: +91-20-22951910 Extn:215 | CIN: U29213PN2010FTC13676