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

Usage with M1 / Apple Silicon #66

Open
mitchellbusby opened this issue Feb 8, 2022 · 3 comments
Open

Usage with M1 / Apple Silicon #66

mitchellbusby opened this issue Feb 8, 2022 · 3 comments

Comments

@mitchellbusby
Copy link

mitchellbusby commented Feb 8, 2022

Several members of my team (myself included) have been having issues with ghostscript4js on Apple Silicon Macs. Even when installed and configured (symlinked) correctly, we get the message:
dyld[7981]: missing symbol called

I notice that this is not an issue with Ghostscript itself, but I suspect in the linker code between it and NodeJS.

I also notice in the npm postinstall logs that this is logged:

warning: ignoring file /usr/local/lib/libgs.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

Has anyone else been able to reproduce this?

@NickNaso
Copy link
Owner

NickNaso commented Feb 9, 2022

Hi @mitchellbusby,
could you try to use Node.js v16? Today after some debug I found that with M1 / Apple Silicon some cflags are set to -arch x86_64 instead of -arch arm64. Now I'm trying to find a solution to patch the binding.gyp file. The first version of Node.js that support Apple Silicon / M1 is Node.js v16. Please let me know if the switch to Node,js v16 or above solve the problem.

@mitchellbusby
Copy link
Author

Hi @NickNaso!

That's quite interesting! I have tried doing a clean node modules install under Node 16 (using 16.14 via nvm). That seems to have not resolved the issue 😓 I still get the issue:

dyld[28688]: missing symbol called

@NickNaso
Copy link
Owner

The release v3.2.3 should compile and work with Apple Silicon.

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

2 participants