Open Bug 1473516 Opened 7 years ago Updated 3 years ago

Mach bootstrap CalledProcessError: Command '[u'/usr/local/bin/brew', u'list']' returned non-zero exit status 1

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(Not tracked)

People

(Reporter: vporof, Unassigned)

Details

(Keywords: in-triage)

Running ./mach bootstrap on a fresh macOS 10.13.5 install yields the following error: https://pastebin.mozilla.org/9089160 Running again with sudo yields the following error: https://pastebin.mozilla.org/9089161 My environment: brew --version Homebrew 1.6.9 Homebrew/homebrew-core (git revision 94f7; last commit 2018-07-05) My gecko-dev head: a4fb127451ad https://github.com/victorporof/gecko-dev
And what do you see when you run `brew list` directly?
Flags: needinfo?(vporof)
brew list autoconf@2.13 libffi pcre2 watchman fish llvm python xz gdbm mercurial python@2 yasm git node readline gnu-tar openssl sqlite icu4c pcre terminal-notifier
Flags: needinfo?(vporof)
FWIW my main python version is 2.7.15 (first one in path), which was installed via homebrew.
Keywords: in-triage
Flags: needinfo?(gps)
I'm, uh, not sure why it doesn't like the output of `brew list`. And I'm unable to reproduce this. I think the best we can do is improve the error reporting in bootstrap to give you better tools to debug.
Flags: needinfo?(gps)
Component: Mach Core → Bootstrap Configuration
Workaround: 1. delete `$MOZCONFIG` 2. delete `~/.mozconfig` 3. just use a `mozconfig` file in your root directory. Any combination of 1 and 2 makes mach unhappy.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.