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

node-gyp is encountering an error. #6244

Open
2 tasks done
Girish-Garg opened this issue Mar 21, 2025 · 4 comments
Open
2 tasks done

node-gyp is encountering an error. #6244

Girish-Garg opened this issue Mar 21, 2025 · 4 comments

Comments

@Girish-Garg
Copy link

Girish-Garg commented Mar 21, 2025

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.
@stdlib-bot
Copy link
Contributor

👋 Hi there! 👋

And thank you for opening your first issue! We will get back to you shortly. 🏃 💨

@anandkaranubc
Copy link
Contributor

anandkaranubc commented Mar 21, 2025

@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.

@Girish-Garg
Copy link
Author

Image
@anandkaranubc still getting the same error

@anandkaranubc
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants