bytehound icon indicating copy to clipboard operation
bytehound copied to clipboard

Crash when build server-core

Open lingege32 opened this issue 3 years ago • 1 comments

When I use cargo build --release -p bytehound-cli to build bytehound-cli. The installation crash at building webui. Same issue with #79 , but no solution for me so I file a new issue.

> cargo build --release -p bytehound-cli

Error message:
  Packaging & Optimizing...
   Built in 18.17s

  dist/index.html                                  363 B     1.00s
  dist/index.8bed19df.js                     ⚠️  1.22 MB    11.09s
  dist/feather-sprite.be6e0e50.svg              42.52 KB     1.06s
  dist/index.d35b3801.css                      324.05 KB     218ms
  dist/fontawesome-webfont.3981e506.eot        161.86 KB      77ms
  dist/fontawesome-webfont.3981e506.eot        161.86 KB      94ms
  dist/fontawesome-webfont.58488e7e.woff2       75.35 KB      95ms
  dist/fontawesome-webfont.ed962b83.woff        95.73 KB     114ms
  dist/fontawesome-webfont.0caf0c90.ttf        161.67 KB      78ms
  dist/fontawesome-webfont.a9323ae9.svg         378.7 KB     1.29s

  --- stderr
  warning [email protected]: New custom equality api does not play well with all equality helpers. Please use v5.x
  warning [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
  warning [email protected]: Package no longer supported. Contact [email protected] for more info.
  warning reactstrap > react-popper > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
  warning parcel > @parcel/config-default > @parcel/optimizer-htmlnano > svgo > [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
  warning " > [email protected]" has incorrect peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0".
  warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.1".
  warning " > [email protected]" has incorrect peer dependency "react@^16.14.0".
  warning " > [email protected]" has incorrect peer dependency "react@^16.x.x".
  warning " > [email protected]" has incorrect peer dependency "react@^16.0.0".
  warning "reactstrap > [email protected]" has incorrect peer dependency "[email protected] || ^15.0.0 || ^16.0.0".
  thread 'main' panicked at 'Failed to build WebUI; child process exited with error code None!', server-core/build.rs:154:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If I execute ./node_modules/.bin/parcel build src/index.html --dist-dir dist alone in webui folder.

> ./node_modules/.bin/parcel build src/index.html --dist-dir dist
 Built in 18.04s

dist/index.html                                  363 B     1.08s
dist/index.8bed19df.js                     ⚠️  1.22 MB    10.94s
dist/feather-sprite.be6e0e50.svg              42.52 KB     1.03s
dist/index.d35b3801.css                      324.05 KB     229ms
dist/fontawesome-webfont.3981e506.eot        161.86 KB     113ms
dist/fontawesome-webfont.3981e506.eot        161.86 KB     123ms
dist/fontawesome-webfont.58488e7e.woff2       75.35 KB      88ms
dist/fontawesome-webfont.ed962b83.woff        95.73 KB      95ms
dist/fontawesome-webfont.0caf0c90.ttf        161.67 KB      98ms
dist/fontawesome-webfont.a9323ae9.svg         378.7 KB     1.33s
[3]    2989 segmentation fault (core dumped)  ./node_modules/.bin/parcel build src/index.html --dist-dir dist

The following is my environment.

> lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-ia32:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.3.1611 (Core)
Release:        7.3.1611
Codename:       Core

> node --version
v16.14.2

> npm --version
9.2.0

lingege32 avatar Jan 17 '23 05:01 lingege32

have u solved it now?

sylzd avatar Mar 11 '24 09:03 sylzd