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

Unable to build in Ubuntu 22.04 - execv: Argument list too long #143

Open
zzz08900 opened this issue Jun 18, 2024 · 2 comments
Open

Unable to build in Ubuntu 22.04 - execv: Argument list too long #143

zzz08900 opened this issue Jun 18, 2024 · 2 comments

Comments

@zzz08900
Copy link

Is there some compatibility issue with node-gyp or gcc?

error /home/andrew/testProject/node_modules/@u4/opencv4nodejs: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /home/andrew/testProject/node_modules/@u4/opencv4nodejs
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@10.1.0
gyp info using node@20.14.0 | linux | x64
gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"

gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/home/andrew/testProject/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/andrew/testProject/node_modules/@u4/opencv4nodejs/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/andrew/testProject/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/andrew/.cache/node-gyp/20.14.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/andrew/.cache/node-gyp/20.14.0',
gyp info spawn args '-Dnode_gyp_dir=/home/andrew/testProject/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/andrew/.cache/node-gyp/20.14.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/andrew/testProject/node_modules/@u4/opencv4nodejs',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/andrew/testProject/node_modules/@u4/opencv4nodejs/build'
  CXX(target) Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o
g++: fatal error: cannot execute ‘/usr/lib/gcc/x86_64-linux-gnu/11/cc1plus’: execv: Argument list too long
compilation terminated.
make: *** [opencv4nodejs.target.mk:10236: Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1
make: Leaving directory '/home/andrew/testProject/node_modules/@u4/opencv4nodejs/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/home/andrew/testProject/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Linux 6.5.0-35-generic
gyp ERR! command "/home/andrew/.nvm/versions/node/v20.14.0/bin/node" "/home/andrew/testProject/node_modules/@u4/opencv4nodejs/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/andrew/testProject/node_modules/@u4/opencv4nodejs
gyp ERR! node -v v20.14.0
gyp ERR! node-gyp -v v10.1.0
gyp ERR! not ok

@zzz08900 zzz08900 changed the title Unable to build in Ubuntu 22.04 Unable to build in Ubuntu 22.04 - execv: Argument list too long Jun 18, 2024
@Pnlvfx
Copy link

Pnlvfx commented Jun 25, 2024

+1

@Pnlvfx
Copy link

Pnlvfx commented Jun 27, 2024

Can someone help us?

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

No branches or pull requests

2 participants