Hi, i’m trying to compile the gsa module and i retrieve this error:
gvm@KaliGVM20:/tmp/gvm-source/gsa/build# make
[ 5%] Build gsa install files
yarn run v1.22.5
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
<--- Last few GCs --->
[32070:0x55dfda649010] 71931 ms: Mark-sweep 348.3 (352.7) -> 347.7 (352.5) MB, 966.4 / 0.0 ms (average mu = 0.119, current mu = 0.055) allocation failure scavenge might not succeed
[32070:0x55dfda649010] 72835 ms: Mark-sweep 348.9 (352.5) -> 348.4 (353.0) MB, 873.1 / 0.0 ms (average mu = 0.081, current mu = 0.033) allocation failure scavenge might not succeed
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x7f98c1b7ad59]
1: StubFrame [pc: 0x7f98c1afc2b1]
2: ConstructFrame [pc: 0x7f98c1afbd4f]
3: StubFrame [pc: 0x7f98c1bdef80]
Security context: 0x0b54b96db989 <JSObject>
4: new FunctionExpressionNameScope [0x2e78b9ee41b9] [/tmp/gvm-source/gsa/gsa/node_modules/webpack/node_modules/eslint-scope/lib/scope.js:591] [bytecode=0x3d4e0db6d8e9 offset=92](this=0x06306e800ad1 <Scope map = 0x35cb0e4070f9>,0x2558ddf7...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x7f98c0f502d8 node::Abort() [/lib/x86_64-linux-gnu/libnode.so.72]
2: 0x7f98c0e8d69a [/lib/x86_64-linux-gnu/libnode.so.72]
3: 0x7f98c1117282 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.72]
4: 0x7f98c111752f v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.72]
5: 0x7f98c12b01b5 [/lib/x86_64-linux-gnu/libnode.so.72]
6: 0x7f98c12bff0d v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.72]
7: 0x7f98c12c0bb6 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.72]
8: 0x7f98c12c2d3c v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.72]
9: 0x7f98c12c2da4 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.72]
10: 0x7f98c128949b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/lib/x86_64-linux-gnu/libnode.so.72]
11: 0x7f98c15ba9d5 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.72]
12: 0x7f98c1b7ad59 [/lib/x86_64-linux-gnu/libnode.so.72]
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make[2]: *** [gsa/CMakeFiles/gsa.dir/build.make:1198: gsa/bundle.stamp] Errore 1
make[1]: *** [CMakeFiles/Makefile2:204: gsa/CMakeFiles/gsa.dir/all] Errore 2
make: *** [Makefile:149: all] Errore 2
i’ve try to update yarn and here my yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
browserslist@^4.13.0:
version "4.14.7"
resolved "https://registry.npm.taobao.org/browserslist/download/browserslist-4.14.7.tgz#c071c1b3622c1c2e790799a37bb09473a4351cb6"
integrity sha1-wHHBs2IsHC55B5mje7CUc6Q1HLY=
dependencies:
caniuse-lite "^1.0.30001157"
colorette "^1.2.1"
electron-to-chromium "^1.3.591"
escalade "^3.1.1"
node-releases "^1.1.66"
caniuse-lite@^1.0.30001157:
version "1.0.30001159"
resolved "https://registry.npm.taobao.org/caniuse-lite/download/caniuse-lite-1.0.30001159.tgz?cache=0&sync_timestamp=1605683104423&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcaniuse-lite%2Fdownload%2Fcaniuse-lite-1.0.30001159.tgz#bebde28f893fa9594dadcaa7d6b8e2aa0299df20"
integrity sha1-vr3ij4k/qVlNrcqn1rjiqgKZ3yA=
colorette@^1.2.1:
version "1.2.1"
resolved "https://registry.npm.taobao.org/colorette/download/colorette-1.2.1.tgz#4d0b921325c14faf92633086a536db6e89564b1b"
integrity sha1-TQuSEyXBT6+SYzCGpTbbbolWSxs=
electron-to-chromium@^1.3.591:
version "1.3.598"
resolved "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.598.tgz?cache=0&sync_timestamp=1605637958162&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felectron-to-chromium%2Fdownload%2Felectron-to-chromium-1.3.598.tgz#8f757018902ab6190323a8c5f6124d854893a35b"
integrity sha1-j3VwGJAqthkDI6jF9hJNhUiTo1s=
escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz?cache=0&sync_timestamp=1602567437752&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fescalade%2Fdownload%2Fescalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA=
node-releases@^1.1.66:
version "1.1.67"
resolved "https://registry.npm.taobao.org/node-releases/download/node-releases-1.1.67.tgz?cache=0&sync_timestamp=1605581679207&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-releases%2Fdownload%2Fnode-releases-1.1.67.tgz#28ebfcccd0baa6aad8e8d4d8fe4cbc49ae239c12"
integrity sha1-KOv8zNC6pqrY6NTY/ky8Sa4jnBI=
i don’t understand where is the problem, i think is all updated…but during the “make” i see this before the error
so if i try a “yarn upgrade” in the same directory i see:
gvm@KaliGVM20:/tmp/gvm-source/gsa/build# yarn upgrade
yarn upgrade v1.22.5
warning package.json: No license field
warning No license field
warning No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
success Saved lockfile.
warning No license field
success Saved 6 new dependencies.
info Direct dependencies
└─ browserslist@4.14.7
info All dependencies
├─ browserslist@4.14.7
├─ caniuse-lite@1.0.30001159
├─ colorette@1.2.1
├─ electron-to-chromium@1.3.598
├─ escalade@3.1.1
└─ node-releases@1.1.67
Done in 3.41s.
but nothing, it doesn’t help
An anyone help me?
thanks