TypeError: ensure_android() missing 1 required positional argument: 'os_arch'
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(Not tracked)
People
(Reporter: bala.subramaniyan, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Steps to reproduce:
Working on capyloon/B2G repo, it uses mozilla's code base.
Steps:
1). Run ./mach bootstrap
2). Select firefox version to Boot2Gecko
3). Issue happen.
Actual results:
This is error, i;m getting!
Creating local state directory: /home/leadsoc/.mozbuild/srcdirs/gecko-2a09290dd141
Collecting glean-sdk==52.6.0
Using cached glean_sdk-52.6.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
Collecting semver>=2.13.0
Using cached semver-3.0.0-py3-none-any.whl (17 kB)
Requirement already satisfied: glean-parser~=7.1 in ./third_party/python/glean_parser (from glean-sdk==52.6.0) (7.1.0)
Requirement already satisfied: appdirs>=1.4 in ./third_party/python/appdirs (from glean-parser~=7.1->glean-sdk==52.6.0) (1.4.4)
Requirement already satisfied: diskcache>=4 in ./third_party/python/diskcache (from glean-parser~=7.1->glean-sdk==52.6.0) (4.1.0)
Requirement already satisfied: MarkupSafe<=2.0.1,>=1.1.1 in ./third_party/python/MarkupSafe/src (from glean-parser~=7.1->glean-sdk==52.6.0) (2.0.1)
Requirement already satisfied: jsonschema>=3.0.2 in ./third_party/python/jsonschema (from glean-parser~=7.1->glean-sdk==52.6.0) (4.17.3)
Requirement already satisfied: PyYAML>=5.3.1 in ./third_party/python/PyYAML/lib3 (from glean-parser~=7.1->glean-sdk==52.6.0) (5.4.1)
Requirement already satisfied: Click>=7 in ./third_party/python/click (from glean-parser~=7.1->glean-sdk==52.6.0) (7.1.2)
Requirement already satisfied: Jinja2>=2.10.1 in ./third_party/python/Jinja2 (from glean-parser~=7.1->glean-sdk==52.6.0) (2.11.3)
Requirement already satisfied: yamllint>=1.18.0 in ./third_party/python/yamllint (from glean-parser~=7.1->glean-sdk==52.6.0) (1.23.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./third_party/python/pyrsistent (from jsonschema>=3.0.2->glean-parser~=7.1->glean-sdk==52.6.0) (0.16.0)
Requirement already satisfied: attrs>=17.4.0 in ./third_party/python/attrs (from jsonschema>=3.0.2->glean-parser~=7.1->glean-sdk==52.6.0) (19.2.0)
Requirement already satisfied: pathspec>=0.5.3 in ./third_party/python/pathspec (from yamllint>=1.18.0->glean-parser~=7.1->glean-sdk==52.6.0) (0.9.0)
Requirement already satisfied: six in ./third_party/python/six (from pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0->jsonschema>=3.0.2->glean-parser~=7.1->glean-sdk==52.6.0) (1.13.0)
Installing collected packages: semver, glean-sdk
Successfully installed glean-sdk-52.6.0 semver-3.0.0
Collecting psutil<=5.9.4,>=5.4.2
Using cached psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB)
Installing collected packages: psutil
Successfully installed psutil-5.9.4
Collecting zstandard<=0.19.0,>=0.11.1
Using cached zstandard-0.19.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB)
Installing collected packages: zstandard
Successfully installed zstandard-0.19.0
Note on Artifact Mode:
Artifact builds download prebuilt C++ components rather than building
them locally. Artifact builds are faster!
Artifact builds are recommended for people working on Firefox or
Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
for those working on C++ code. For more information see:
https://firefox-source-docs.mozilla.org/contributing/build/artifact_builds.html.
Please choose the version of Firefox you want to build (see note above):
- Boot2Gecko [default]
- Firefox for Desktop Artifact Mode
- Firefox for Desktop
- GeckoView/Firefox for Android Artifact Mode
- GeckoView/Firefox for Android
- SpiderMonkey JavaScript engine
Your choice: 1
Requirement already satisfied: glean-sdk==52.6.0 in /home/leadsoc/.mozbuild/srcdirs/gecko-2a09290dd141/_virtualenvs/mach/lib/python3.10/site-packages (52.6.0)
Requirement already satisfied: glean-parser~=7.1 in ./third_party/python/glean_parser (from glean-sdk==52.6.0) (7.1.0)
Requirement already satisfied: semver>=2.13.0 in /home/leadsoc/.mozbuild/srcdirs/gecko-2a09290dd141/_virtualenvs/mach/lib/python3.10/site-packages (from glean-sdk==52.6.0) (3.0.0)
Requirement already satisfied: diskcache>=4 in ./third_party/python/diskcache (from glean-parser~=7.1->glean-sdk==52.6.0) (4.1.0)
Requirement already satisfied: yamllint>=1.18.0 in ./third_party/python/yamllint (from glean-parser~=7.1->glean-sdk==52.6.0) (1.23.0)
Requirement already satisfied: Jinja2>=2.10.1 in ./third_party/python/Jinja2 (from glean-parser~=7.1->glean-sdk==52.6.0) (2.11.3)
Requirement already satisfied: appdirs>=1.4 in ./third_party/python/appdirs (from glean-parser~=7.1->glean-sdk==52.6.0) (1.4.4)
Requirement already satisfied: jsonschema>=3.0.2 in ./third_party/python/jsonschema (from glean-parser~=7.1->glean-sdk==52.6.0) (4.17.3)
Requirement already satisfied: MarkupSafe<=2.0.1,>=1.1.1 in ./third_party/python/MarkupSafe/src (from glean-parser~=7.1->glean-sdk==52.6.0) (2.0.1)
Requirement already satisfied: PyYAML>=5.3.1 in ./third_party/python/PyYAML/lib3 (from glean-parser~=7.1->glean-sdk==52.6.0) (5.4.1)
Requirement already satisfied: Click>=7 in ./third_party/python/click (from glean-parser~=7.1->glean-sdk==52.6.0) (7.1.2)
Requirement already satisfied: attrs>=17.4.0 in ./third_party/python/attrs (from jsonschema>=3.0.2->glean-parser~=7.1->glean-sdk==52.6.0) (19.2.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./third_party/python/pyrsistent (from jsonschema>=3.0.2->glean-parser~=7.1->glean-sdk==52.6.0) (0.16.0)
Requirement already satisfied: pathspec>=0.5.3 in ./third_party/python/pathspec (from yamllint>=1.18.0->glean-parser~=7.1->glean-sdk==52.6.0) (0.9.0)
Requirement already satisfied: six in ./third_party/python/six (from pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0->jsonschema>=3.0.2->glean-parser~=7.1->glean-sdk==52.6.0) (1.13.0)
Requirement already satisfied: psutil<=5.9.4,>=5.4.2 in /home/leadsoc/.mozbuild/srcdirs/gecko-2a09290dd141/_virtualenvs/mach/lib/python3.10/site-packages (5.9.4)
Requirement already satisfied: zstandard<=0.19.0,>=0.11.1 in /home/leadsoc/.mozbuild/srcdirs/gecko-2a09290dd141/_virtualenvs/mach/lib/python3.10/site-packages (0.19.0)
Executing as root: sudo apt-get install bash findutils gzip libxml2 m4 make perl tar unzip watchman
[sudo] password for leadsoc:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bash is already the newest version (5.1-6ubuntu1).
findutils is already the newest version (4.8.0-1ubuntu3).
m4 is already the newest version (1.4.18-5ubuntu2).
make is already the newest version (4.3-4.1build1).
gzip is already the newest version (1.10-4ubuntu4.1).
libxml2 is already the newest version (2.9.13+dfsg-1ubuntu0.3).
perl is already the newest version (5.34.0-3ubuntu1.1).
tar is already the newest version (1.34+dfsg-1ubuntu0.1.22.04.1).
unzip is already the newest version (6.0-26ubuntu3.1).
The following packages were automatically installed and are no longer required:
javascript-common libapt-pkg-perl libc-ares2 libclang-common-15-dev libclang-cpp15 libclang1-15 libexporter-tiny-perl libflashrom1
libftdi1-2 libgdk-pixbuf-xlib-2.0-0 libjs-jquery libjs-sphinxdoc libjs-underscore liblist-moreutils-perl liblist-moreutils-xs-perl
libllvm13 libpfm4 libpython3-dev libpython3.10-dev libssl-dev libuv1-dev libxml2-dev llvm-15 llvm-15-linker-tools llvm-15-runtime
llvm-15-tools python-babel-localedata python3-appdirs python3-attr python3-babel python3-dev python3-html5lib python3-jinja2
python3-jsonschema python3-msgpack python3-packaging python3-pygments python3-pyrsistent python3-requests-toolbelt python3-webencodings
python3-wrapt python3.10-dev
Use 'sudo apt autoremove' to remove them.
Suggested packages:
python3-pywatchman
The following NEW packages will be installed:
watchman
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 310 kB of archives.
After this operation, 806 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 watchman amd64 4.9.0-6build2 [310 kB]
Fetched 310 kB in 2s (164 kB/s)
Selecting previously unselected package watchman.
(Reading database ... 218114 files and directories currently installed.)
Preparing to unpack .../watchman_4.9.0-6build2_amd64.deb ...
Unpacking watchman (4.9.0-6build2) ...
Setting up watchman (4.9.0-6build2) ...
Processing triggers for man-db (2.10.2-1) ...
Error running mach:
['bootstrap']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ./mach busted
to check if this issue is already on file. If it
isn't, please use ./mach busted file bootstrap
to report it. If ./mach busted
is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
TypeError: ensure_android() missing 1 required positional argument: 'os_arch'
File "/home/leadsoc/b2g-os/B2G/gecko/python/mozboot/mozboot/mach_commands.py", line 50, in bootstrap
bootstrapper.bootstrap(command_context.settings)
File "/home/leadsoc/b2g-os/B2G/gecko/python/mozboot/mozboot/bootstrap.py", line 358, in bootstrap
getattr(self.instance, "install_%s_packages" % application)(mozconfig_builder)
File "/home/leadsoc/b2g-os/B2G/gecko/python/mozboot/mozboot/linux_common.py", line 73, in install_b2g_packages
android.ensure_android(
Expected results:
Bootstrap will download all gecko dependencies without any error.
Comment 1•2 years ago
|
||
please report this bug on the capyloon/B2G bug tracker
Description
•