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

Cannot compile node #35438

Closed
stefanradu904 opened this issue Oct 1, 2020 · 12 comments
Closed

Cannot compile node #35438

stefanradu904 opened this issue Oct 1, 2020 · 12 comments
Labels
build Issues and PRs related to build files or the CI.

Comments

@stefanradu904
Copy link

stefanradu904 commented Oct 1, 2020

Hello,

I am trying to compile node node-v12.18.4 using this steps:

./configure --shared-zlib --shared-openssl --without-snapshot --without-npm --with-intl=system-icu
make -j4

And i get this error:

Traceback (most recent call last):
  File "../../deps/v8/tools/run.py", line 12, in <module>
    sys.exit(subprocess.call(sys.argv[1:]))
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
make[1]: *** [tools/v8_gypfiles/generate_bytecode_builtins_list.target.mk:13: /home/popas/node-v12.18.4/out/Release/obj/gen/generate-bytecode-output-root/builtins-generated/bytecodes-builtins-list.h] Error 1
make[1]: *** Waiting for unfinished jobs....
rm 898b05f873552e59064f2da4401537ee80f37c1a.intermediate
make: *** [Makefile:104: node] Error 2

Can you help me?

@himself65
Copy link
Member

try to use python3?

@stefanradu904
Copy link
Author

Same situation

@stefanradu904
Copy link
Author

Any updates here?

@baslr
Copy link
Contributor

baslr commented Oct 15, 2020

can you do a verbose (V=1) make?

@PoojaDurgad PoojaDurgad added the build Issues and PRs related to build files or the CI. label Oct 21, 2020
@Jack-he1233
Copy link

@stefanradu904
I also encountered the same problem. Is this problem solved?

@gengjiawen
Copy link
Member

Can you try python3 ./configure --shared-zlib --shared-openssl --without-snapshot --without-npm --with-intl=system-icu ?

@Jack-he1233
Copy link

@gengjiawen Excuting an order:“python3 ./configure --prefix=**/node-v12.18.3 --dest-cpu=arm64 --dest-os=linux --without-snapshot --cross-compiling --without-intl”,Will display information"Please use Python 2.7:",How to compile node-v12 version with python3?

@gengjiawen
Copy link
Member

@gengjiawen Excuting an order:“python3 ./configure --prefix=**/node-v12.18.3 --dest-cpu=arm64 --dest-os=linux --without-snapshot --cross-compiling --without-intl”,Will display information"Please use Python 2.7:",How to compile node-v12 version with python3?

Guess we are not porting python3 to 12.x branch. Will you take docker build as an options ?

@Jack-he1233
Copy link

Jack-he1233 commented Feb 24, 2021

@gengjiawen Do you mean node-v12. * version can't be cross compiled with Python 3? Does docker have anything to do with Python 3 compilation? Have you cross compiled node-v12. * successfully?

@gengjiawen
Copy link
Member

The initial question is not about cross-compile. It's just compiling to v12.x. You can try this docker gengjiawen/node-build.

for cross-compile, please see #35252

@Jack-he1233
Copy link

@gengjiawen Where is the address of the container "gengjiawen/node-build"? Can node-v12 be successfully cross-compiled in this container?

@gengjiawen
Copy link
Member

@gengjiawen Where is the address of the container "gengjiawen/node-build"? Can node-v12 be successfully cross-compiled in this container?

For cross-compile, please see other issue.

I am gonna to close this as original author lack response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

No branches or pull requests

6 participants