Closed Bug 1410892 Opened 9 years ago Closed 8 years ago

mach bootstrap for Firefox for Android (still) broken on Ubuntu 16.04

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect
Not set
normal

Tracking

(firefox58 affected)

RESOLVED WONTFIX
Tracking Status
firefox58 --- affected

People

(Reporter: esawin, Unassigned)

Details

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: 4 Executing as root: sudo apt-get install autoconf2.13 build-essential ccache python-dev python-pip python-setuptools unzip uuid zip [sudo] password for esawin: 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). 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-92 linux-headers-4.4.0-92-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. Executing as root: sudo dpkg --add-architecture i386 Executing as root: sudo apt-get update Get:1 http://apt.llvm.org/xenial llvm-toolchain-xenial-3.9 InRelease [4.207 B] Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:5 http://de.archive.ubuntu.com/ubuntu xenial InRelease Hit:6 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:7 http://dl.google.com/linux/chrome/deb stable Release Ign:1 http://apt.llvm.org/xenial llvm-toolchain-xenial-3.9 InRelease Hit:8 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease Fetched 106 kB in 0s (212 kB/s) Reading package lists... Done W: GPG error: http://apt.llvm.org/xenial llvm-toolchain-xenial-3.9 InRelease: The following signatures couldn't be verified because the public key is not a vailable: NO_PUBKEY 15CF4D18AF4F7421 W: The repository 'http://apt.llvm.org/xenial llvm-toolchain-xenial-3.9 InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. Executing as root: sudo apt-get install default-jdk wget libncurses5:i386 libstdc++6:i386 Reading package lists... Done Building dependency tree Reading state information... Done default-jdk is already the newest version (2:1.8-56ubuntu2). libncurses5:i386 is already the newest version (6.0+20160213-1ubuntu1). wget is already the newest version (1.17.1-1ubuntu1.2). libstdc++6:i386 is already the newest version (5.4.0-6ubuntu1~16.04.5). The following packages were automatically installed and are no longer required: linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. Looks like you have the Android NDK installed at: /home/esawin/.mozbuild/android-ndk-r11c Looks like you have the Android SDK installed at: /home/esawin/.mozbuild/android-sdk-linux We will install all required Android packages. We are now installing the following Android packages: platform-tools build-tools;25.0.3 platforms;android-23 extras;android;m2repository extras;google;m2repository emulator You may be prompted to agree to the Android license. You may see some of output as packages are downloaded and installed. Warning: Unknown argument --package_file=/home/esawin/dev/g/python/mozboot/mozboot/android-packages.txt Usage: sdkmanager [--uninstall] [<common args>] [--package_file=<file>] [<packages>...] sdkmanager --update [<common args>] sdkmanager --list [<common args>] sdkmanager --licenses [<common args>] sdkmanager --version With --install (optional), installs or updates packages. By default, the listed packages are installed or (if already installed) updated to the latest version. With --uninstall, uninstall the listed packages. <package> is a sdk-style path (e.g. "build-tools;23.0.0" or "platforms;android-23"). <package-file> is a text file where each line is a sdk-style path of a package to install or uninstall. Multiple --package_file arguments may be specified in combination with explicit paths. With --update, all installed packages are updated to the latest version. With --list, all installed and available packages are printed out. With --licenses, show and offer the option to accept licenses for all available packages that have not already been accepted. With --version, prints the current version of sdkmanager. Common Arguments: --sdk_root=<sdkRootPath>: Use the specified SDK root instead of the SDK containing this tool --channel=<channelId>: Include packages in channels up to <channelId>. Common channels are: 0 (Stable), 1 (Beta), 2 (Dev), and 3 (Canary). --include_obsolete: With --list, show obsolete packages in the package listing. With --update, update obsolete packages as well as non-obsolete. --no_https: Force all connections to use http rather than https. --proxy=<http | socks>: Connect via a proxy of the given type. --proxy_host=<IP or DNS address>: IP or DNS address of the proxy to use. --proxy_port=<port #>: Proxy port to connect to. --verbose: Enable verbose output. * If the env var REPO_OS_OVERRIDE is set to "windows", "macosx", or "linux", packages will be downloaded for that OS. 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 '['/home/esawin/.mozbuild/android-sdk-linux/tools/bin/sdkmanager', '--package_file=/home/esawin/dev/g/python/mozboot/mozboot/an droid-packages.txt']' returned non-zero exit status 1 File "/home/esawin/dev/g/python/mozboot/mozboot/mach_commands.py", line 32, in bootstrap bootstrapper.bootstrap() File "/home/esawin/dev/g/python/mozboot/mozboot/bootstrap.py", line 296, in bootstrap getattr(self.instance, 'install_%s_packages' % application)() File "/home/esawin/dev/g/python/mozboot/mozboot/debian.py", line 106, in install_mobile_android_packages self.ensure_mobile_android_packages() File "/home/esawin/dev/g/python/mozboot/mozboot/debian.py", line 133, in ensure_mobile_android_packages no_interactive=self.no_interactive) File "/home/esawin/dev/g/python/mozboot/mozboot/android.py", line 180, in ensure_android ensure_android_packages(sdkmanager_tool=sdkmanager_tool, no_interactive=no_interactive) File "/home/esawin/dev/g/python/mozboot/mozboot/android.py", line 233, in ensure_android_packages subprocess.check_call(args) File "/usr/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd)
Flags: needinfo?(nalexander)
The issue can be resolved by manually deleting the obsolete sdkmanager and re-running |mach bootstrap|. I'm not sure if that's a case our bootstrap can/should handle automatically?
(In reply to Eugen Sawin [:esawin] from comment #1) > The issue can be resolved by manually deleting the obsolete sdkmanager and > re-running |mach bootstrap|. > > I'm not sure if that's a case our bootstrap can/should handle automatically? I tries to detect old SDK installs already. You had an install that somehow had sdkmanager, but not one that recognized the current set of flags. That's pretty edge-case, but if you feel motivated, I'd take a patch. Maybe just look for an error running sdkmanager, and suggest nuking the SDK directory if it fails (for any reason)?
Flags: needinfo?(nalexander)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
Component: General → Bootstrap Configuration
You need to log in before you can comment on or make changes to this bug.