SimSIMD: Will not work in a Vercel instance

Both for Node 18 and Node 20:

[14:23:34.076] .../usearch@2.8.15/node_modules/usearch install: ../simsimd/include/simsimd/types.h:27: warning: "SIMSIMD_TARGET_ARM_NEON" redefined
[14:23:34.076] .../usearch@2.8.15/node_modules/usearch install:    27 | #define SIMSIMD_TARGET_ARM_NEON 0
[14:23:34.076] .../usearch@2.8.15/node_modules/usearch install:       | 
[14:23:34.077] .../usearch@2.8.15/node_modules/usearch install: <command-line>: note: this is the location of the previous definition
[14:23:34.077] .../usearch@2.8.15/node_modules/usearch install: In file included from ../simsimd/include/simsimd/binary.h:23,
[14:23:34.077] .../usearch@2.8.15/node_modules/usearch install:                  from ../simsimd/include/simsimd/simsimd.h:17,
[14:23:34.077] .../usearch@2.8.15/node_modules/usearch install:                  from ../include/usearch/index_plugins.hpp:68,
[14:23:34.077] .../usearch@2.8.15/node_modules/usearch install:                  from ../include/usearch/index_dense.hpp:10,
[14:23:34.078] .../usearch@2.8.15/node_modules/usearch install:                  from ../javascript/lib.cpp:18:
[14:23:34.078] .../usearch@2.8.15/node_modules/usearch install: ../simsimd/include/simsimd/types.h:36: warning: "SIMSIMD_TARGET_ARM_SVE" redefined
[14:23:34.078] .../usearch@2.8.15/node_modules/usearch install:    36 | #define SIMSIMD_TARGET_ARM_SVE 0
[14:23:34.078] .../usearch@2.8.15/node_modules/usearch install:       | 
[14:23:34.078] .../usearch@2.8.15/node_modules/usearch install: <command-line>: note: this is the location of the previous definition
[14:23:35.137] .../usearch@2.8.15/node_modules/usearch install: In file included from ../simsimd/include/simsimd/simsimd.h:18,
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install:                  from ../include/usearch/index_plugins.hpp:68,
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install:                  from ../include/usearch/index_dense.hpp:10,
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install:                  from ../javascript/lib.cpp:18:
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install: ../simsimd/include/simsimd/probability.h:457:8: error: '__m512h' does not name a type; did you mean '__m512i'?
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install:   457 | inline __m512h
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install:       |        ^~~~~~~
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install:       |        __m512i
[14:23:35.138] .../usearch@2.8.15/node_modules/usearch install: ../simsimd/include/simsimd/probability.h:477:1: error: attribute 'avx512fp16' argument 'target' is unknown
[14:23:35.139] .../usearch@2.8.15/node_modules/usearch install:   477 | simsimd_avx512_f16_kl(simsimd_f16_t const* a, simsimd_f16_t const* b, simsimd_size_t n) {
[14:23:35.139] .../usearch@2.8.15/node_modules/usearch install:       | ^~~~~~~~~~~~~~~~~~~~~

Vercel error log:

500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: cle1:cle1::sw2js-1705001182897-78fa89a33f7c
19:26:23 [ERROR] Error: No native build was found for platform=linux arch=x64 runtime=node abi=115 uv=1 libc=glibc node=20.10.0
    loaded from: /var/task/node_modules/.pnpm/simsimd@3.6.3/node_modules/simsimd

    at load.resolve.load.path (/var/task/node_modules/.pnpm/node-gyp-build@4.8.0/node_modules/node-gyp-build/node-gyp-build.js:60:9)
    at load (/var/task/node_modules/.pnpm/node-gyp-build@4.8.0/node_modules/node-gyp-build/node-gyp-build.js:22:30)
    at Object.<anonymous> (/var/task/node_modules/.pnpm/simsimd@3.6.3/node_modules/simsimd/javascript/simsimd.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at r.<computed>.e._load (/var/task/___vc/__launcher/bridge-server-72TT5FOD.js:1:1574)
    at cjsLoader (node:internal/modules/esm/translators:345:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:294:7)

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 24 (24 by maintainers)

Most upvoted comments

I have something that deploys to vercel so I can do a test later this afternoon.

I know what it is, and it was something I was going to change this weekend anyhow.

@sroussey just a default Vercel instance. Node 18/20.

Can I contribute to the fallback stuff? I think it’d be good for me to learn how this works…

Possibly? I used ES6 syntax to import… tell me when it’s merged!