#Verbose compile mode?

1 messages · Page 1 of 1 (latest)

tidal bison
#

Is there a verbose compile mode, as I have a ts file that works when compiling but errors when running uncompiled running on alpine due to Error relocating /app/node_modules/onnxruntime-node/bin/napi-v3/linux/x64//libonnxruntime.so.1: __vsnprintf_chk: symbol not found

/app # bun run start
$ bun run index.ts
4 | Object.defineProperty(exports, "__esModule", { value: true });
5 | exports.binding = void 0;
6 | // export native binding
7 | exports.binding =
8 | // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
9 | require(`../bin/napi-v3/${process.platform}/${process.arch}/onnxruntime_binding.node`);
    ^
TypeError: Error relocating /app/node_modules/onnxruntime-node/bin/napi-v3/linux/x64//libonnxruntime.so.1: __vsnprintf_chk: symbol not found
      at /app/node_modules/onnxruntime-node/dist/binding.js:9:1
      at /app/node_modules/onnxruntime-node/dist/backend.js:18:7
      at /app/node_modules/onnxruntime-node/dist/index.js:21:5

Bun v1.1.42 (Linux x64 baseline)
ebon dragon
#

I think the onnxruntime is not compatiable with alpine's musl libc

tidal bison
#

Ideally I can get it working without having to compile, but not sure what exactly compiling is doing in order to copy libs to right places to try replicate.

Although nodemodules is still required even for compiled version which is a bit annoying.