-
Notifications
You must be signed in to change notification settings - Fork 55
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
Build failed MacOS Catalina node 4.x libstdc++ #61
Comments
I think most of the libs are dropping support for older node version. |
Is there any way I can keep my node version and make cld work? |
Hi @saqib-ahmed, @oliverjessner is right. [email protected] supports only node 12+. You should be able to build [email protected] for node 4. Can you try that and if it fails please paste the complete terminal output starting with the npm command and everything after. |
Here you go:
= |
Looks like there's something wrong with my Clang configuration. Doesn't Here's the output of
|
It has to be something with Catalina or your particular system. I'll research if there is anything in MacOS 10.15 standard libraries that could be breaking it. |
This seems to be a similar issue: |
Does running |
Trying. Will update you. |
@dachev Updating xcode command-line tools didn't help. Any other idea? |
The bewildering thing is that |
After a bit more debugging, tried to see the compiler command that node-gyp runs in case of both the node versions.
v10.16.3: succeeds
Apart from some extra includes and some other flags I didn't understand, the main difference is |
Finally, I was able to create a build of node-cld for MacOS Catalina with an older version of nodejs. The problem was really the flag:
Just for reference, on an off-chance if anybody needs to build node-cld (or any other nodejs library with native addons for that matter) for nodejs 4.x on MacOS Catalina, you can follow the steps below:
OR
Run |
Thank you for the research and for sharing your fix @saqib-ahmed. Much appreciated. |
My Environment
NodeJS: 4.9.1
NPM: 2.15.11
MacOS Catalina: 10.15.3
The Error
I'm trying to install node-cld and it gives the following error. I'm simply running
npm i cld
It works alright when I try to install it with node v10.x. I need to build it with node v4.9.1. What's wrong here?
The text was updated successfully, but these errors were encountered: