question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR at //build/toolchain/concurrent_links.gni:90:19: Script returned non-zero exit code.

See original GitHub issue

I was trying to build ungoogled-chromium by following all of the steps shown in the README, but somehow, when I execute the build.py script, at some point it gives me this error after executing certain command, Any ideas on any possible fix for this? Appreciated

ERROR at //build/toolchain/concurrent_links.gni:90:19: Script returned non-zero exit code.
  _command_dict = exec_script("get_concurrent_links.py", _args, "scope")
                  ^----------
Current dir: D:/ungoogled-chromium-windows/build/src/out/Default/
Command: C:/Users/Matias/AppData/Local/Microsoft/WindowsApps/python3.exe D:/ungoogled-chromium-windows/build/src/build/toolchain/get_concurrent_links.py --mem_per_link_gb=6
Returned 9009.
See //build/gn_logs.gni:5:1: whence it was imported.
import("//build/toolchain/concurrent_links.gni")
^----------------------------------------------
See //BUILD.gn:17:1: whence it was imported.
import("//build/gn_logs.gni")
^---------------------------

D:\ungoogled-chromium-windows\build\src>exit
Traceback (most recent call last):
  File "D:\ungoogled-chromium-windows\build.py", line 220, in <module>
    main()
  File "D:\ungoogled-chromium-windows\build.py", line 212, in main
    _run_build_process('out\\Default\\gn.exe', 'gen', 'out\\Default', '--fail-on-unused-args')
  File "D:\ungoogled-chromium-windows\build.py", line 64, in _run_build_process
    subprocess.run(('cmd.exe', '/k'),
  File "C:\Users\Matias\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('cmd.exe', '/k')' returned non-zero exit status 1.

D:\ungoogled-chromium-windows>```

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:37 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 25, 2021

After 8~ hours of building, I am really happy to say that I was able to successfully compile ungoogled-chromium for the performance oriented OS I am using. Thanks a lot for the help! image I am going to be making a Pull Request soon with the Windows SDK issue I found. Thanks a lot once again!

0reactions
farteryhrcommented, Jan 20, 2022

You probably need to restart CMD after turning off the python aliases. BTW, only Python 3.6 - 3.9 is supported.

https://stackoverflow.com/questions/57485491/python-python3-executes-in-command-prompt-but-does-not-run-correctly

gn looks for Python 3 on Windows by default, and python3 links to a wrapper that connects you to Microsoft Store.

# The python interpreter to use by default. On Windows, this will look
# for python3.exe and python3.bat.
script_executable = "python3"

fell into the very same pitfall here, plus using python 310.

please consider updating the “Building” section in README.md about it assuming python3 command (which is not done by official python installer by default, and also windows 10 does this 💩 by default) and the minor version requirement.

and yes, the domsubcache.tar.gz pitfall got me too. please consider updating to “remove everything under build\ other than build\downloads_cache”.

thanks to this discussion, i only had to delete build\[anything but src] twice before succeeding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error running command: Build script returned non-zero exit ...
Check if you have package-lock.json file commited to your code repository. If so, delete it from the repo, and trigger the deploy again....
Read more >
Build failed due to a user error: Build script returned non-zero ...
Hello , I'm facing this issue Build failed due to a user error: Build script returned non-zero exit code: 2. and I can't...
Read more >
Netlify build fails with "Build script returned non-zero exit code
The build succeeds locally with no error. I now tried readding the .gitmodules and the academic.Rproj files, but it still does not work....
Read more >
Build script returned non-zero exit code: 1 netlify · Issue #14434
The problem is that when I want deploy my project in Netlify, the console deploy show this error and I dont know to...
Read more >
Returning information from a shell script via an Exit Code
Exit Codes - A Bourne Shell Programming / Scripting Tutorial for learning about ... with exit 0 ; failure is normally indicated with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found