Error building on Apple Silicon - "LASTCHANGE" file missing

110 views
Skip to first unread message

Noah

unread,
Nov 15, 2022, 7:07:11 PM11/15/22
to Chromium-discuss
Hi! Not sure if this is the right place to post this. 

I was trying to build Chromium from source according to these instructions: https://chromium.googlesource.com/chromium/src/+/main/docs/mac_build_instructions.md

When I run `gn gen out/Default` I get the error

```

ERROR at //chrome/version.gni:114:11: Script returned non-zero exit code.

_result = exec_script("//build/util/version.py",

          ^----------

Current dir: /Users/Noah/Desktop/chromuim-bug/chromium/src/out/Default/

Command: python3 /Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py -e PATCH_HI=int(PATCH)//256 -e PATCH_LO=int(PATCH)%256 -f ../../chrome/VERSION -t full = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@" major = "@MAJOR@" minor = "@MINOR@" build = "@BUILD@" patch = "@PATCH@" patch_hi = @PATCH_HI@ patch_lo = @PATCH_LO@  --os mac

Returned 1.

stderr:


Traceback (most recent call last):

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py", line 267, in <module>

    sys.exit(main())

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py", line 256, in main

    output = BuildOutput(sys.argv[1:])

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py", line 248, in BuildOutput

    values = GenerateValues(options, evals)

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py", line 198, in GenerateValues

    values = FetchValues(options.file, options.official)

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py", line 62, in FetchValues

    FetchValuesFromFile(lastchange_values, lastchange_filename)

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/version.py", line 29, in FetchValuesFromFile

    with open(file_name, 'r') as f:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/LASTCHANGE'


See //ui/gl/features.gni:8:1: whence it was imported.

import("//chrome/version.gni")

^----------------------------

See //BUILD.gn:35:1: whence it was imported.

import("//ui/gl/features.gni")

^----------------------------

```

The important line is `FileNotFoundError: [Errno 2] No such file or directory: '/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/LASTCHANGE'`

Is there something I can do to fix this problem? I didn't find anything on Google.

I'm on an M1 MacBook Air running macOS 13.0.

Thank you!

Reply all
Reply to author
Forward
0 new messages