Open Bug 1431301 Opened 8 years ago Updated 2 years ago

bootstrap error while building in ubuntu 16.04

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

1.0 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: sandeep1995s, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36 Steps to reproduce: ./mach bootstrap Note on Artifact Mode: Firefox for Desktop and Android supports a fast build mode called artifact mode. Artifact mode downloads pre-built C++ components rather than building them locally, trading bandwidth for time. Artifact builds will be useful to many developers who are not working with compiled code. If you want to work on look-and-feel of Firefox, you want "Firefox for Desktop Artifact Mode". Similarly, if you want to work on the look-and-feel of Firefox for Android, you want "Firefox for Android Artifact Mode". To work on the Gecko technology platform, you would need to opt to full, non-artifact mode. Gecko is Mozilla's web rendering engine, similar to Edge, Blink, and WebKit. Gecko is implemented in C++ and JavaScript. If you want to work on web rendering, you want "Firefox for Desktop", or "Firefox for Android". If you don't know what you want, start with just Artifact Mode of the desired platform. Your builds will be much shorter than if you build Gecko as well. But don't worry! You can always switch configurations later. You can learn more about Artifact mode builds at https://developer.mozilla.org/en-US/docs/Artifact_builds. Please choose the version of Firefox you want to build: 1. Firefox for Desktop Artifact Mode 2. Firefox for Desktop 3. Firefox for Android Artifact Mode 4. Firefox for Android Your choice: 2 Actual results: Executing as root: sudo apt-get install autoconf2.13 build-essential ccache nodejs python-dev python-pip python-setuptools unzip uuid zip Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.1ubuntu2). ccache is already the newest version (3.2.4-1). python-dev is already the newest version (2.7.11-1). python-setuptools is already the newest version (20.7.0-1). unzip is already the newest version (6.0-20ubuntu1). zip is already the newest version (3.0-11). autoconf2.13 is already the newest version (2.13-67). uuid is already the newest version (1.6.2-1.5build2). nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1). python-pip is already the newest version (8.1.1-2ubuntu0.4). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic linux-image-4.4.0-103-generic linux-image-4.4.0-21-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-4.4.0-96-generic linux-image-4.4.0-98-generic linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic linux-image-extra-4.4.0-21-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-98-generic ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded. Executing as root: sudo apt-get install libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdbus-glib-1-dev libgconf2-dev libgtk-3-dev libgtk2.0-dev libpulse-dev libx11-xcb-dev libxt-dev python-dbus xvfb yasm Reading package lists... Done Building dependency tree Reading state information... Done libasound2-dev is already the newest version (1.1.0-0ubuntu1). libdbus-glib-1-dev is already the newest version (0.106-1). libgconf2-dev is already the newest version (3.2.6-3ubuntu6). libx11-xcb-dev is already the newest version (2:1.6.3-1ubuntu2). libxt-dev is already the newest version (1:1.1.5-0ubuntu1). python-dbus is already the newest version (1.2.0-3). yasm is already the newest version (1.3.0-2). libcurl4-openssl-dev is already the newest version (7.47.0-1ubuntu2.5). libdbus-1-dev is already the newest version (1.10.6-1ubuntu3.3). libgtk-3-dev is already the newest version (3.18.9-1ubuntu3.3). libgtk2.0-dev is already the newest version (2.24.30-1ubuntu1.16.04.2). libpulse-dev is already the newest version (1:8.0-0ubuntu3.7). xvfb is already the newest version (2:1.18.4-0ubuntu0.7). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic linux-image-4.4.0-103-generic linux-image-4.4.0-21-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-4.4.0-96-generic linux-image-4.4.0-98-generic linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic linux-image-extra-4.4.0-21-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-98-generic ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded. Your version of Mercurial (4.4.2) is sufficiently modern. Your version of Python (2.7.12) is new enough. Your version of Rust (1.23.0) is new enough. Rust supports x86_64-unknown-linux-gnu targets. 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 should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: AttributeError: 'DebianBootstrapper' object has no attribute '_hgplain_env' File "/home/test/firefox_build/src/mozilla-central/python/mozboot/mozboot/mach_commands.py", line 32, in bootstrap bootstrapper.bootstrap() File "/home/test/firefox_build/src/mozilla-central/python/mozboot/mozboot/bootstrap.py", line 324, in bootstrap env=self.instance._hgplain_env(), Expected results: Expected for the build to succeed.
Related to Bug 1415922
Please retry with the fix from bug 1431226.
Flags: needinfo?(sandeep1995s)
Tried with this fix from bug 1431226. But now got a different issue. Can some one help me out. ./mach bootstrap Note on Artifact Mode: Firefox for Desktop and Android supports a fast build mode called artifact mode. Artifact mode downloads pre-built C++ components rather than building them locally, trading bandwidth for time. Artifact builds will be useful to many developers who are not working with compiled code. If you want to work on look-and-feel of Firefox, you want "Firefox for Desktop Artifact Mode". Similarly, if you want to work on the look-and-feel of Firefox for Android, you want "Firefox for Android Artifact Mode". To work on the Gecko technology platform, you would need to opt to full, non-artifact mode. Gecko is Mozilla's web rendering engine, similar to Edge, Blink, and WebKit. Gecko is implemented in C++ and JavaScript. If you want to work on web rendering, you want "Firefox for Desktop", or "Firefox for Android". If you don't know what you want, start with just Artifact Mode of the desired platform. Your builds will be much shorter than if you build Gecko as well. But don't worry! You can always switch configurations later. You can learn more about Artifact mode builds at https://developer.mozilla.org/en-US/docs/Artifact_builds. Please choose the version of Firefox you want to build: 1. Firefox for Desktop Artifact Mode 2. Firefox for Desktop 3. Firefox for Android Artifact Mode 4. Firefox for Android Your choice: 2 Executing as root: sudo apt-get install autoconf2.13 build-essential ccache nodejs python-dev python-pip python-setuptools unzip uuid zip Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.1ubuntu2). ccache is already the newest version (3.2.4-1). python-dev is already the newest version (2.7.11-1). python-setuptools is already the newest version (20.7.0-1). unzip is already the newest version (6.0-20ubuntu1). zip is already the newest version (3.0-11). autoconf2.13 is already the newest version (2.13-67). uuid is already the newest version (1.6.2-1.5build2). nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1). python-pip is already the newest version (8.1.1-2ubuntu0.4). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic linux-image-4.4.0-103-generic linux-image-4.4.0-21-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-4.4.0-96-generic linux-image-4.4.0-98-generic linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic linux-image-extra-4.4.0-21-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-98-generic ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded. Executing as root: sudo apt-get install libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdbus-glib-1-dev libgconf2-dev libgtk-3-dev libgtk2.0-dev libpulse-dev libx11-xcb-dev libxt-dev python-dbus xvfb yasm Reading package lists... Done Building dependency tree Reading state information... Done libasound2-dev is already the newest version (1.1.0-0ubuntu1). libdbus-glib-1-dev is already the newest version (0.106-1). libgconf2-dev is already the newest version (3.2.6-3ubuntu6). libx11-xcb-dev is already the newest version (2:1.6.3-1ubuntu2). libxt-dev is already the newest version (1:1.1.5-0ubuntu1). python-dbus is already the newest version (1.2.0-3). yasm is already the newest version (1.3.0-2). libcurl4-openssl-dev is already the newest version (7.47.0-1ubuntu2.5). libdbus-1-dev is already the newest version (1.10.6-1ubuntu3.3). libgtk-3-dev is already the newest version (3.18.9-1ubuntu3.3). libgtk2.0-dev is already the newest version (2.24.30-1ubuntu1.16.04.2). libpulse-dev is already the newest version (1:8.0-0ubuntu3.7). xvfb is already the newest version (2:1.18.4-0ubuntu0.7). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic linux-image-4.4.0-103-generic linux-image-4.4.0-21-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-92-generic linux-image-4.4.0-96-generic linux-image-4.4.0-98-generic linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic linux-image-extra-4.4.0-21-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-98-generic ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded. Your version of Mercurial (4.4.2) is sufficiently modern. Your version of Python (2.7.12) is new enough. Your version of Rust (1.23.0) is new enough. Rust supports x86_64-unknown-linux-gnu targets. Mozilla recommends a number of changes to Mercurial to enhance your experience with it. Would you like to run a configuration wizard to ensure Mercurial is optimally configured? 1. Yes 2. No Please enter your reply: 1 ================================================================================ Ensuring https://hg.mozilla.org/hgcustom/version-control-tools is up to date at /home/test/.mozbuild/version-control-tools pulling from https://hg.mozilla.org/hgcustom/version-control-tools searching for changes no changes found 0 files updated, 0 files merged, 0 files removed, 0 files unresolved ================================================================================ This wizard will guide you through configuring Mercurial for an optimal experience contributing to Mozilla projects. The wizard makes no changes without your permission. To begin, press the enter/return key. The "watchman" filesystem watching tool could not be found or isn't working. Mercurial can leverage "watchman" to make many operations (like `hg status` and `hg diff`) much faster. Mozilla *highly* recommends installing "watchman" when working with the Firefox repository. Please see https://facebook.github.io/watchman/docs/install.html for instructions on installing watchman. Please ensure `watchman` is available on PATH (you should be able to run `watchman` from your shell). Will you be submitting commits to Mozilla (Yn)? n Your hgrc file is currently readable by others. Sensitive information such as your Bugzilla credentials could be stolen if others have access to this file/machine. Would you like to fix the file permissions (Yn) n Error running mach: ['artifact', 'toolchain', '--from-build', 'linux64-clang'] 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 should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: AttributeError: 'dict' object has no attribute 'file_url' File "/home/test/firefox_build/src/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1360, in artifact_toolchain toolchains = tasks('toolchain') File "/home/test/firefox_build/src/mozilla-central/python/mozbuild/mozbuild/mach_commands.py", line 1354, in tasks tasks = Kind.load(root_path, graph_config, kind_name).load_tasks(params, {}) File "/home/test/firefox_build/src/mozilla-central/taskcluster/taskgraph/generator.py", line 73, in load_tasks for task_dict in transforms(trans_config, inputs)] File "/home/test/firefox_build/src/mozilla-central/taskcluster/taskgraph/transforms/task.py", line 1645, in check_run_task_caches for task in tasks: File "/home/test/firefox_build/src/mozilla-central/taskcluster/taskgraph/transforms/task.py", line 1592, in check_task_dependencies for task in tasks: File "/home/test/firefox_build/src/mozilla-central/taskcluster/taskgraph/transforms/task.py", line 1580, in check_task_identifiers for task in tasks: File "/home/test/firefox_build/src/mozilla-central/taskcluster/taskgraph/transforms/task.py", line 1563, in chain_of_trust for task in tasks: File "/home/test/firefox_build/src/mozilla-central/taskcluster/taskgraph/transforms/task.py", line 1457, in build_task 'source': config.params.file_url(config.path), 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 should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: CalledProcessError: Command '['/usr/bin/python2.7', u'/home/test/firefox_build/src/mozilla-central/mach', u'artifact', u'toolchain', u'--from-build', u'linux64-clang']' returned non-zero exit status 1 File "/home/test/firefox_build/src/mozilla-central/python/mozboot/mozboot/mach_commands.py", line 32, in bootstrap bootstrapper.bootstrap() File "/home/test/firefox_build/src/mozilla-central/python/mozboot/mozboot/bootstrap.py", line 376, in bootstrap self.instance.ensure_stylo_packages(state_dir, checkout_root) File "/home/test/firefox_build/src/mozilla-central/python/mozboot/mozboot/linux_common.py", line 18, in ensure_stylo_packages self.install_toolchain_artifact(state_dir, checkout_root, stylo.LINUX) File "/home/test/firefox_build/src/mozilla-central/python/mozboot/mozboot/base.py", line 285, in install_toolchain_artifact subprocess.check_call(cmd, cwd=state_dir) File "/usr/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd)
Flags: needinfo?(sandeep1995s)
Product: Core → Firefox Build System
Component: General → Bootstrap Configuration
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.