Node errors while building Chrome?

774 views
Skip to first unread message

Chris Palmer

unread,
Aug 11, 2020, 9:12:28 PM8/11/20
to Chromium-dev
Hi all,

I'm seeing these build failures on tip of tree:

FAILED: gen/third_party/devtools-frontend/src/front_end/cm/cm.js
python ../../third_party/node/node.py ../../third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup --silent --plugin terser --config ../../third_party/devtools-frontend/src/front_end/rollup.config.js --input gen/third_party/devtools-frontend/src/front_end/cm/cm.prebundle.js --file gen/third_party/devtools-frontend/src/front_end/cm/cm.js
Traceback (most recent call last):
  File "../../third_party/node/node.py", line 44, in <module>
    RunNode(sys.argv[1:])
  File "../../third_party/node/node.py", line 39, in RunNode
    raise RuntimeError('%s failed: %s' % (cmd, stderr))
RuntimeError: ['../../third_party/node/linux/node-linux-x64/bin/node', '../../third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup', '--silent', '--plugin', 'terser', '--config', '../../third_party/devtools-frontend/src/front_end/rollup.config.js', '--input', 'gen/third_party/devtools-frontend/src/front_end/cm/cm.prebundle.js', '--file', 'gen/third_party/devtools-frontend/src/front_end/cm/cm.js'] failed: [!] Error: Could not resolve '../third_party/codemirror/package/lib/codemirror.js' from gen/third_party/devtools-frontend/src/front_end/cm/cm.prebundle.js
Error: Could not resolve '../third_party/codemirror/package/lib/codemirror.js' from gen/third_party/devtools-frontend/src/front_end/cm/cm.prebundle.js
    at error (/usr/local/google/home/palmer/chromium/src/third_party/devtools-frontend/src/node_modules/rollup/dist/shared/rollup.js:10123:30)
    at ModuleLoader.handleResolveId (/usr/local/google/home/palmer/chromium/src/third_party/devtools-frontend/src/node_modules/rollup/dist/shared/rollup.js:16764:24)
    at /usr/local/google/home/palmer/chromium/src/third_party/devtools-frontend/src/node_modules/rollup/dist/shared/rollup.js:16652:26
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at rollupInternal (/usr/local/google/home/palmer/chromium/src/third_party/devtools-frontend/src/node_modules/rollup/dist/shared/rollup.js:18164:18)
    at build (/usr/local/google/home/palmer/chromium/src/third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup:1453:20)
    at runRollup (/usr/local/google/home/palmer/chromium/src/third_party/devtools-frontend/src/node_modules/rollup/dist/bin/rollup:2120:21) 


and

FAILED: gen/third_party/devtools-frontend/src/front_end/cm_headless/devtools_entrypoint-cm_headless-tsconfig-tsconfig.json gen/third_party/devtools-frontend/src/front_end/cm_headless/devtools_entrypoint-cm_headless-tsconfig-tsconfig.json.tsbuildinfo gen/third_party/devtools-frontend/src/front_end/cm_headless/cm_headless.prebundle.js gen/third_party/devtools-frontend/src/front_end/cm_headless/cm_headless.prebundle.js.map gen/third_party/devtools-frontend/src/front_end/cm_headless/cm_headless.prebundle.d.ts
python ../../third_party/devtools-frontend/src/third_party/typescript/ts_library.py --tsconfig_output_location gen/third_party/devtools-frontend/src/front_end/cm_headless/devtools_entrypoint-cm_headless-tsconfig-tsconfig.json --front_end_directory gen/third_party/devtools-frontend/src/front_end/cm_headless --sources gen/third_party/devtools-frontend/src/front_end/cm_headless/cm_headless.prebundle.ts

TypeScript compilation failed. Used tsconfig gen/third_party/devtools-frontend/src/front_end/cm_headless/devtools_entrypoint-cm_headless-tsconfig-tsconfig.json

error TS5055: Cannot write file '/usr/local/google/home/palmer/chromium/src/out/Default/gen/third_party/devtools-frontend/src/front_end/third_party/codemirror/package/addon/runmode/runmode-standalone.js' because it would overwrite input file.


Is anyone else seeing this? Am I holding it wrong? :) Thanks.

Rouslan Solomakhin

unread,
Aug 12, 2020, 6:33:34 AM8/12/20
to Chromium-dev, Chris Palmer
I'm seeing the same error and not sure how to fix it. Halp!

Rouslan Solomakhin

unread,
Aug 12, 2020, 6:40:09 AM8/12/20
to Chromium-dev, Rouslan Solomakhin, Chris Palmer
Well, slightly different, but also devtools related:

[14932/32219] ACTION //third_party/devtools-frontend/src:generate_devtools_grd(//build/toolchain/linux:clang_x64)
FAILED: gen/devtools/devtools_resources.grd 
python ../../third_party/devtools-frontend/src/scripts/build/generate_devtools_grd.py --file_list __third_party_devtools-frontend_src_generate_devtools_grd___build_toolchain_linux_clang_x64__rule.rsp --relative_path_dirs resources/inspector ../../third_party/devtools-frontend/src/front_end --images ../../third_party/devtools-frontend/src/front_end/Images --output gen/devtools/devtools_resources.grd
Traceback (most recent call last):
  File "../../third_party/devtools-frontend/src/scripts/build/generate_devtools_grd.py", line 155, in <module>
    sys.exit(main(sys.argv))
  File "../../third_party/devtools-frontend/src/scripts/build/generate_devtools_grd.py", line 140, in main
    shutil.copy(filename, target_dir)
  File "/usr/lib/python2.7/shutil.py", line 139, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 96, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'resources/inspector/third_party/lit-html/package/directives/if-defined.js'
[15931/32219] CXX obj/ui/accessibility/ax_base/ax_enum_util.o
ninja: build stopped: subcommand failed.

Takuto Ikuta

unread,
Aug 12, 2020, 7:12:05 AM8/12/20
to rou...@chromium.org, devtoo...@chromium.org, Chris Palmer
move chromium-dev to bcc
+devtools-dev 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ce71414f-7699-4e1e-88d0-c5357f35f516n%40chromium.org.

Ian Clelland

unread,
Aug 12, 2020, 8:21:12 AM8/12/20
to Chromium-dev, Takuto Ikuta, Chris Palmer, Rouslan Solomakhin, devtoo...@chromium.org
I ran into Rouslan's issue yesterday on my first day back after OOO, and filed https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2351521 to fix it. It may be related to Chris' problem as well.

It looks like the copy-files.js script won't always copy all of the files in its input list, so node package updates might not get installed correctly, depending on what files are already present in the output dir.

Chris Palmer

unread,
Aug 12, 2020, 2:11:41 PM8/12/20
to Ian Clelland, Chromium-dev, Takuto Ikuta, Rouslan Solomakhin, devtoo...@chromium.org
Deleting out/Default/gen/third_party/devtools-frontend and pulling a fresh tip of tree worked for me. Thanks all!
Reply all
Reply to author
Forward
0 new messages