Chromium build error

198 views
Skip to first unread message

Akshayan

unread,
Mar 12, 2023, 12:55:15 PM3/12/23
to Chromium-dev

I get this error when building Chromium. Any ideas?


FAILED: gen/chrome/browser/resources/gaia_auth_host/saml_injected.rollup.js 

python3 ../../ui/webui/resources/tools/optimize_webui.py --host about:blank --input gen/chrome/browser/resources/gaia_auth_host/stage --out_folder gen/chrome/browser/resources/gaia_auth_host --depfile gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts.d --target_name build_injected_scripts --external_paths chrome://resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ chrome://resources/\|gen/ui/webui/resources/tsc/ //resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ //resources/\|gen/ui/webui/resources/tsc/ --js_module_in_files saml_injected.js

Traceback (most recent call last):

  File "/Volumes/AK's Drive 1/horizonsrc/src/out/Default/../../ui/webui/resources/tools/optimize_webui.py", line 318, in <module>

    main(sys.argv[1:])

  File "/Volumes/AK's Drive 1/horizonsrc/src/out/Default/../../ui/webui/resources/tools/optimize_webui.py", line 294, in main

    optimize_output = _optimize(args.input, args)

  File "/Volumes/AK's Drive 1/horizonsrc/src/out/Default/../../ui/webui/resources/tools/optimize_webui.py", line 248, in _optimize

    js_module_out_files = _bundle_v3(tmp_out_dir, in_path, out_path,

  File "/Volumes/AK's Drive 1/horizonsrc/src/out/Default/../../ui/webui/resources/tools/optimize_webui.py", line 196, in _bundle_v3

    node.RunNode([node_modules.PathToRollup()] + rollup_args + [

  File "/Volumes/AK's Drive 1/horizonsrc/src/third_party/node/node.py", line 34, in RunNode

    raise RuntimeError('Command \'%s\' failed\n%s' % (' '.join(cmd), err))

RuntimeError: Command '/Volumes/AK's Drive 1/horizonsrc/src/third_party/node/mac/node-darwin-arm64/bin/node /Volumes/AK's Drive 1/horizonsrc/src/third_party/node/node_modules/rollup/dist/bin/rollup /Volumes/AK's Drive 1/horizonsrc/src/out/Default/gen/chrome/browser/resources/gaia_auth_host/stage/saml_injected.js --format esm --dir /Volumes/AK's Drive 1/horizonsrc/src/out/Default/gen/chrome/browser/resources/gaia_auth_host/tmpnmzrl5ge --entryFileNames [name].rollup.js --sourcemap --sourcemapExcludeSources --config /Volumes/AK's Drive 1/horizonsrc/src/out/Default/gen/chrome/browser/resources/gaia_auth_host/tmpnmzrl5ge/rollup.config.mjs' failed

[!] SyntaxError: missing ) after argument list

    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)

    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)

    at link (node:internal/modules/esm/module_job:67:21)




[14/54690] CXX obj/third_party/abseil-cpp/absl/debugging/symbolize/symbolize.o

ninja: build stopped: subcommand failed.

Bruce Dawson

unread,
Mar 13, 2023, 11:08:22 AM3/13/23
to Chromium-dev, Akshayan
The problem appears to be caused by the space in your drive name. Chromium assumes that it is in a directory path with no spaces. It would be possible to remove that limitation but you would have to add quoting to a significant number of command invocations and it doesn't seem worth it.
Reply all
Reply to author
Forward
0 new messages