stdlib-js/stdlib

`node-gyp` is encountering an error.

Girish-Garg opened this issue ยท 4 comments

Description

Encountered an error when i ran node-gyp build command and after building some files this error came:

 addon.c
  main.c
  c_c.c
  c_f.c
  d_d.c
  f_f.c
  f_i.c
  i_d.c
  i_f.c
  i_i.c
  z_d.c
  z_z.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  main.c
  floorf.c
  win_delay_load_hook.cc
LINK : fatal error LNK1181: cannot open input file 'm.lib' [C:\Users\gargg\Coding\stdlib\lib\node_modules\@stdlib\math\base\special\bernoullif\build\addon.vcxproj]
gyp ERR! build error

Related Issues

Related issues # , # , and # .

Questions

No.

Demo

No response

Reproduction

Expected Results

should not return a error and .node file should be made

Actual Results

returning an error

Version

@0.3.2

Environments

N/A

Browser Version

No response

Node.js / npm Version

v22.9.0

Platform

Windows 11

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

๐Ÿ‘‹ Hi there! ๐Ÿ‘‹

And thank you for opening your first issue! We will get back to you shortly. ๐Ÿƒ ๐Ÿ’จ

@Girish-Garg, I think you're running into an issue with building native addons. node-gyp build isn't the right command for that. Try this instead:

NODE_ADDONS_PATTERN="@stdlib/math/base/special/bernoullif" make install-node-addons

Just swap out the path with the one you're actually working on.

EDIT: Fixed the path for you, you can use the same command.

Image
@anandkaranubc still getting the same error

Could you share your addon.c file? Let's continue this conversation in the Gitter group channel.

I suspect this is a local issue rather than a bug. If yes, we can probably close this issue.