Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error build brain.js #896

Open
Maksim990 opened this issue May 23, 2023 · 5 comments
Open

error build brain.js #896

Maksim990 opened this issue May 23, 2023 · 5 comments
Labels

Comments

@Maksim990
Copy link

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /home/kotik9821/Desktop/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c -- prebuild-install || node-gyp rebuild
npm ERR! make: вход в каталог «/home/kotik9821/Desktop/node_modules/gl/build»
npm ERR! CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
npm ERR! make: выход из каталога «/home/kotik9821/Desktop/node_modules/gl/build»
npm ERR! prebuild-install warn install No prebuilt binaries found (target=19.9.0 runtime=node arch=x64 libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.11.3 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/kotik9821/Desktop/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/kotik9821/Desktop/node_modules/gl/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/kotik9821/Desktop/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/kotik9821/.cache/node-gyp/19.9.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/kotik9821/.cache/node-gyp/19.9.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/kotik9821/Desktop/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/kotik9821/.cache/node-gyp/19.9.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/kotik9821/Desktop/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! In file included from ../angle/src/common/debug.h:16,
npm ERR! from ../angle/src/common/mathutil.h:12,
npm ERR! from ../angle/src/common/Float16ToFloat32.cpp:9:
npm ERR! ../angle/src/common/angleutils.h:36:14: ошибка: «uintptr_t» не является именем типа
npm ERR! 36 | extern const uintptr_t DirtyPointer;
npm ERR! | ^~~~~~~~~
npm ERR! ../angle/src/common/angleutils.h:21:1: замечание: «uintptr_t» is defined in header «»; did you forget to «#include »?
npm ERR! 20 | #include
npm ERR! +++ |+#include
npm ERR! 21 |
npm ERR! make: *** [angle/src/angle_common.target.mk:157: Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o] Ошибка 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/kotik9821/Desktop/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 6.1.28-1-lts
npm ERR! gyp ERR! command "/usr/bin/node" "/home/kotik9821/Desktop/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/kotik9821/Desktop/node_modules/gl
npm ERR! gyp ERR! node -v v19.9.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! /home/kotik9821/.npm/_logs/2023-05-23T11_00_16_885Z-debug-0.log

@Maksim990 Maksim990 added the bug label May 23, 2023
@kul-sudo
Copy link

Any updates? I mean, if this error does not get fixed, there is no way to use this library on Linux.

@cclauss
Copy link
Contributor

cclauss commented Jul 24, 2023

See #905

@Maksim990
Copy link
Author

I'am use archlinux
image

@zackylight
Copy link

I have the same problem.

@unixfool
Copy link

unixfool commented Dec 31, 2023

Hello, Still got the same Error display. Try to running on Linux/Ubuntu 22.04-Server. Can't do npm install brain.js

I was doing some test with Ubuntu 22.04 - Server.

This is my note:

Went ubuntu 22.04 get install and all packet are update. We get version Python3 by default and npm install brain.js get error.

I fix this doing this step:

STEP 1: sudo apt install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
STEP 2: If you dont got install python2 install it.
STEP 3: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
STEP 4: sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 2
STEP 5: sudo update-alternatives --config python
STEP 6: Select Python Version 2
STEP 7: Now you can do npm install brain.js

NOTE: This still drop the error: npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

But brain.js get install it.
Hope this help!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants