Bug 282604 - www/chromium, www/iridium: build fail
Summary: www/chromium, www/iridium: build fail
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-chromium (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-07 11:04 UTC by Ivan Rozhuk
Modified: 2024-11-14 05:02 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (chromium)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2024-11-07 11:04:52 UTC
FAILED: gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/saml_injected.rollup.js gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/saml_injected.rollup.js.map gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/build_injected_scripts__bundle_js_requestlist.txt gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/rollup.config.mjs 
python3 ../../ui/webui/resources/tools/bundle_js.py --host about:blank --input gen/chrome/browser/resources/gaia_auth_host/stage --out_folder gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled --depfile gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts__bundle_js.d --target_name build_injected_scripts__bundle_js --exclude chrome://resources/mojo/mojo/public/js/bindings.js //resources/mojo/mojo/public/js/bindings.js chrome://resources/mojo/mojo/public/mojom/base/time.mojom-lite.js //resources/mojo/mojo/public/mojom/base/time.mojom-lite.js chrome://resources/lit/v3_0/lit.rollup.js //resources/lit/v3_0/lit.rollup.js chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js //resources/polymer/v3_0/polymer/polymer_bundled.min.js chrome://resources/js/cr.js //resources/js/cr.js chrome://resources/js/load_time_data.js //resources/js/load_time_data.js chrome://resources/ash/common/load_time_data.m.js //resources/ash/common/load_time_data.m.js chrome://resources/mwc/lit/index.js //resources/mwc/lit/index.js --external_paths chrome://resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ //resources/polymer/v3_0/\|../../third_party/polymer/v3_0/components-chromium/ chrome://resources/lit/v3_0/\|gen/third_party/lit/v3_0/minified/ //resources/lit/v3_0/\|gen/third_party/lit/v3_0/minified/ chrome://resources/\|gen/ui/webui/resources/tsc/ //resources/\|gen/ui/webui/resources/tsc/ --js_module_in_files saml_injected.js
Traceback (most recent call last):
  File "/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/../../ui/webui/resources/tools/bundle_js.py", line 285, in <module>
    main(sys.argv[1:])
  File "/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/../../ui/webui/resources/tools/bundle_js.py", line 258, in main
    optimize_output = _optimize(args.input, args)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/../../ui/webui/resources/tools/bundle_js.py", line 224, in _optimize
    js_module_out_files = _bundle(out_path, in_path, manifest_out_path,
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/../../ui/webui/resources/tools/bundle_js.py", line 168, in _bundle
    node.RunNode([node_modules.PathToRollup()] + rollup_args + [
  File "/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/third_party/node/node.py", line 40, in RunNode
    raise RuntimeError('Command \'%s\' failed\n%s' % (' '.join(cmd), err))
RuntimeError: Command '/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/third_party/node/freebsd/node-freebsd/bin/node /tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/third_party/node/node_modules/@rollup/wasm-node/dist/bin/rollup /tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/gen/chrome/browser/resources/gaia_auth_host/stage/saml_injected.js --format esm --dir /tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled --entryFileNames [name].rollup.js --sourcemap --sourcemapExcludeSources --config /tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/out/Release/gen/chrome/browser/resources/gaia_auth_host/build_injected_scripts_bundled/rollup.config.mjs' failed
/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/third_party/node/node_modules/@rollup/wasm-node/dist/wasm-node/bindings_wasm.js:369
const wasmModule = new WebAssembly.Module(bytes);
                   ^

ReferenceError: WebAssembly is not defined
    at Object.<anonymous> (/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/third_party/node/node_modules/@rollup/wasm-node/dist/wasm-node/bindings_wasm.js:369:20)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/tmp/ports/usr/ports/www/chromium/work/chromium-130.0.6723.116/third_party/node/node_modules/@rollup/wasm-node/dist/native.js:6:5)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)

Node.js v20.18.0
Comment 1 Ivan Rozhuk 2024-11-14 05:02:53 UTC
node must be build with JIT option.