Error building on Apple Silicon - "LASTCHANGE" file missing

Skip to first unread message


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:

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/",


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

Command: python3 /Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/ -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.


Traceback (most recent call last):

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


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

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

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

    values = GenerateValues(options, evals)

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

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

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

    FetchValuesFromFile(lastchange_values, lastchange_filename)

  File "/Users/Noah/Desktop/chromuim-bug/chromium/src/build/util/", 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.



See // whence it was imported.




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
0 new messages