question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v0.31.2: macOS x64 prebuilt binaries fail on macOS < 11 with "Symbol not found: _pthread_jit_write_protect_supported_np"

See original GitHub issue

Possible install-time or require-time problem

  • I have read the documentation relating to installation.
  • I have ensured that the architecture and platform of Node.js used for npm install is the same as the architecture and platform of Node.js used at runtime.

Are you using the latest version of sharp?

  • I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.

If you are using another package which depends on a version of sharp that is not the latest, please open an issue against that package instead.


Hello! After updating Sharp from version 0.31.1 to version 0.31.2, some of my users can no longer run my application.

Dyld Error Message:
  Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Applications/electron.app/Contents/Resources/app.asar.unpacked/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

I can guess that this problem is probably inside libvips (as shown in the error message), but in the installation guide you state:

Prebuilt binaries

Ready-compiled sharp and libvips binaries are provided for use on the most common platforms:

 - macOS x64 (>= 10.13)
 - macOS ARM64
 - Linux x64 (glibc >= 2.17, musl >= 1.1.24, CPU with SSE4.2)
 - Linux ARM64 (glibc >= 2.17, musl >= 1.1.24)
 - Windows x64
 - Windows x86

So I’m just wondering if this bug should be expected to be fixed or should the supported macOS version be higher?

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:1
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
bobsamcommented, Nov 7, 2022

Also happend on MacOS 10.15.7

dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/bob/Documents/workspace/git.nie/art-design-node/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/bob/Documents/workspace/git.nie/art-design-node/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib
5reactions
leonismcommented, Dec 9, 2022

Hi @lovell, thanks for the advise, will try to give it a go by tonight.

Well, as it turned out I don’t have to wait till tonight, I have access to my local machine again. Here are the steps for everyone else that came here from a Google Search, and I noticed that it’s a MacOSX specific issue. I’m on node v16.17.1, running on MacOS Mojave 10.14.6.

  • npm uninstall sharp and
  • npm install sharp@0.31.1

And, they’re back again working as intended.

Thanks,

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GUIDE/FIX] installing on M1 (Apple Silicon) Macs: npm ERR ...
always on building Sharp. When I install vips using brew I'm getting Package OpenEXR was not found . When I remove that I'm...
Read more >
Clang linking error MacOS Big Sur | Apple Developer Forums
Looks like it cannot link the c++ std library? I have already tried to remove the command line tool and re install it....
Read more >
nvm install node fails to install on macOS Big Sur M1 Chip
If you have installed nvm using homebrew and are trying to install the node using command nvm install <some_version> , you will face...
Read more >
Installing and running NCL under MacOSX
Install XQuartz; Install gcc and gfortran; Go to list of available NCL binaries on the Climate Data Gateway; Choose and download the right...
Read more >
Downloading wxMacMolPlt
wxMacMolPlt is available as a source code tar file and as pre-built binaries for Mac OS X, Windows and several varieties of Linux....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found