New issue
Advanced search Search tips

Issue 667994 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 666586
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug



Sign in to add a comment

"fetch chromium" fails on Mac

Project Member Reported by avayvod@chromium.org, Nov 23 2016

Issue description

However, "fetch --nohooks chromium" works fine.
The error I see is:

avayvod-macbookpro2:chromium avayvod$ fetch chromium
Running: gclient root
Running: gclient config --spec 'solutions = [
  {
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "name": "src",
    "deps_file": ".DEPS.git",
    "custom_deps": {},
  },
]
'
Running: gclient sync
Error: Command '/usr/bin/python src/build/mac_toolchain.py' returned non-zero exit status 1 in /Users/avayvod/src/chromium
Traceback (most recent call last):
  File "/Users/avayvod/src/depot_tools/fetch.py", line 300, in <module>
    sys.exit(main())
  File "/Users/avayvod/src/depot_tools/fetch.py", line 295, in main
    return run(options, spec, root)
  File "/Users/avayvod/src/depot_tools/fetch.py", line 289, in run
    return checkout.init()
  File "/Users/avayvod/src/depot_tools/fetch.py", line 132, in init
    self.run_gclient(*sync_cmd)
  File "/Users/avayvod/src/depot_tools/fetch.py", line 76, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "/Users/avayvod/src/depot_tools/fetch.py", line 66, in run
    return subprocess.check_output(cmd, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '('gclient', 'sync')' returned non-zero exit status 2
 
Cc: erikc...@chromium.org
Components: Build
That looks like the call out to set up the hermetic mac toolchain is failing.

Does `gclient runhooks` work for you after the sync?

What happens if you run `python src/build/mac_toolchain.py` directly from the directory above src?

(I'll try these things myself when I get the chance, too).
Labels: -Pri-3 Pri-1
Mergedinto: 666586
Status: Duplicate (was: Assigned)
I need to update the checkout/build documentation.
Re: #1 I see the following _actionable_ error when running gclient runhooks:

________ running '/usr/bin/python src/build/mac_toolchain.py' in '/Users/avayvod/src/chromium'
You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gsutil config" command
to configure gsutil to use these credentials.
Access to gs://chrome-mac-sdk/ not configured.
-----------------------------------------------------------------

You appear to be a Googler.

I'm sorry for the hassle, but you need to do a one-time manual
authentication. Please run:

    download_from_google_storage --config

and follow the instructions.

NOTE 1: Use your google.com credentials, not chromium.org.
NOTE 2: Enter 0 when asked for a "project-id".

-----------------------------------------------------------------

Error: Command '/usr/bin/python src/build/mac_toolchain.py' returned non-zero exit status 1 in /Users/avayvod/src/chromium

That would be great to see when the fetch command fails instead of the generic message it outputs.

Sign in to add a comment