BrainJS / BrainJS/brain.js

Cannot Install on Arch Linux

Open
#792 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
14.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

## _What_ is wrong?

Cannot install the package on arch linux. Seems to be some dependency of libangle which does not compile using gcc. :(

## _Where_ does it happen?
In the command line when running ``npm i``

## _How_ do we replicate the issue?

Not certain, but it seems to possibly be related to the fact that I am usuing arch linux.

## Expected behavior (i.e. solution)

I am able to install and use the package.

## Version information

### Nodejs: v17.8.0

## _How_ important is this (1-5)?

3

## Other Comments

```
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /home/drewr/Documents/Projects/CrashGuesser/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! make: Entering directory '/home/drewr/Documents/Projects/CrashGuesser/node_modules/gl/build'
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/MemoryBuffer.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/angleutils.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/debug.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/mathutil.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/string_utils.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/tls.o
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/utilities.o
npm ERR! AR(target) Release/obj.target/angle/src/angle_common.a
npm ERR! COPY Release/angle_common.a
npm ERR! COPY Release/obj/gen/angle/id/commit.h
npm ERR! TOUCH Release/obj.target/angle/src/commit_id.stamp
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/common/event_tracer.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/AttributeMap.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Buffer.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Caps.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Compiler.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Config.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Context.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Data.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Debug.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Device.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Display.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Error.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Fence.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Framebuffer.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/FramebufferAttachment.o
npm ERR! CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/HandleAllocator.o
npm ERR! make: Leaving directory '/home/drewr/Documents/Projects/CrashGuesser/node_modules/gl/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@17.8.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.10.4 found at "/usr/bin/python3"
npm ERR! (node:122755) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/drewr/Documents/Projects/CrashGuesser/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/drewr/Documents/Projects/CrashGuesser/node_modules/gl/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/drewr/Documents/Projects/CrashGuesser/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/drewr/.cache/node-gyp/17.8.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/drewr/.cache/node-gyp/17.8.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/drewr/Documents/Projects/CrashGuesser/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/drewr/.cache/node-gyp/17.8.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/drewr/Documents/Projects/CrashGuesser/node_modules/gl',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp: In constructor ‘gl::HandleAllocator::HandleAllocator()’:
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp:29:52: error: ‘numeric_limits’ is not a member of ‘std’
npm ERR! 29 | mUnallocatedList.push_back(HandleRange(1, std::numeric_limits::max()));
npm ERR! | ^~~~~~~~~~~~~~
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp:29:76: error: ‘::max’ has not been declared; did you mean ‘std::max’?
npm ERR! 29 | mUnallocatedList.push_back(HandleRange(1, std::numeric_limits::max()));
npm ERR! | ^~~
npm ERR! | std::max
npm ERR! In file included from /usr/include/c++/11.2.0/algorithm:62,
npm ERR! from ../angle/src/libANGLE/HandleAllocator.cpp:12:
npm ERR! /usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
npm ERR! 3467 | max(initializer_list<_Tp> __l, _Compare __comp)
npm ERR! | ^~~
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp:29:43: error: expected primary-expression before ‘(’ token
npm ERR! 29 | mUnallocatedList.push_back(HandleRange(1, std::numeric_limits::max()));
npm ERR! | ^
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp:29:52: error: ‘numeric_limits’ is not a member of ‘std’
npm ERR! 29 | mUnallocatedList.push_back(HandleRange(1, std::numeric_limits::max()));
npm ERR! | ^~~~~~~~~~~~~~
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp:29:73: error: expected primary-expression before ‘>’ token
npm ERR! 29 | mUnallocatedList.push_back(HandleRange(1, std::numeric_limits::max()));
npm ERR! | ^
npm ERR! ../angle/src/libANGLE/HandleAllocator.cpp:29:76: error: ‘::max’ has not been declared; did you mean ‘std::max’?
npm ERR! 29 | mUnallocatedList.push_back(HandleRange(1, std::numeric_limits::max()));
npm ERR! | ^~~
npm ERR! | std::max
npm ERR! In file included from /usr/include/c++/11.2.0/algorithm:62,
npm ERR! from ../angle/src/libANGLE/HandleAllocator.cpp:12:
npm ERR! /usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
npm ERR! 3467 | max(initializer_list<_Tp> __l, _Compare __comp)
npm ERR! | ^~~
npm ERR! make: *** [angle/src/libANGLE.target.mk:237: Release/obj.target/libANGLE/angle/src/libANGLE/HandleAllocator.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/drewr/Documents/Projects/CrashGuesser/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.15.32-1-MANJARO
npm ERR! gyp ERR! command "/usr/bin/node" "/home/drewr/Documents/Projects/CrashGuesser/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/drewr/Documents/Projects/CrashGuesser/node_modules/gl
npm ERR! gyp ERR! node -v v17.8.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.