Skip to content

Native Node.js Addons do not work #2

@Ralf12358

Description

@Ralf12358

Trying to compile a "Native Node.js Addon" does not work. I get the error:

Error: Dynamic loading not supported

I assume it should work, because in the example there is this line:

# eval "$("$(npm bin)/musl-exports")" # sets CC CXX and LD in the shell

which is only needed when compiling native AddOns.

Am I doing something wrong?

I tried compiling node without --fully-static to solve this problem, but then I get an error when compiling node:

> make -C out BUILDTYPE=Release V=1 touch 34387d1d5929e5a61662c04af32f67604a0a34b9.intermediate LD_LIBRARY_PATH=/home/XXX/Node-Musl/src/out/Release/lib.host:/home/XXX/Node-Musl/src/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/gypfiles; mkdir -p /home/XXX/Node-Musl/src/out/Release/obj/gen/torque-generated; "/home/XXX/Node-Musl/src/out/Release/torque" ../src/builtins/base.tq ../src/builtins/array.tq ../src/builtins/array-copywithin.tq ../src/builtins/array-foreach.tq ../src/builtins/array-reverse.tq ../src/builtins/typed-array.tq ../src/builtins/data-view.tq ../third_party/v8/builtins/array-sort.tq -o "/home/XXX/Node-Musl/src/out/Release/obj/gen/torque-generated" /bin/sh: /home/XXX/Node-Musl/src/out/Release/torque: No such file or directory make[1]: *** [deps/v8/gypfiles/v8_torque.host.mk:17: 34387d1d5929e5a61662c04af32f67604a0a34b9.intermediate] Error 127 rm 34387d1d5929e5a61662c04af32f67604a0a34b9.intermediate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions