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

runtime err on startup: dyld: Symbol not found: _usdt_create_provider #118

Open
thom-nic opened this issue May 7, 2018 · 5 comments
Open

Comments

@thom-nic
Copy link

thom-nic commented May 7, 2018

$npm tst
....

dyld: lazy symbol binding failed: Symbol not found: _usdt_create_provider
  Referenced from: PROJECT/node_modules/bunyan/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node
  Expected in: flat namespace

dyld: Symbol not found: _usdt_create_provider
  Referenced from: PROJECT/node_modules/bunyan/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node
  Expected in: flat namespace

$ npm ls dtrace-provider
PROJECT
└─┬ snmpjs@0.1.8
  └─┬ bunyan@1.7.1
    └── dtrace-provider@0.6.0 

$ uname -a
Darwin HOSTNAME 17.5.0 Darwin Kernel Version 17.5.0 

$node --version
v8.9.3

High Sierra 10.13.4. This actually started breaking after I upgraded some packages that depend on node-pre-gyp. I've tried deleting node_modules and re-installing; builds fine. Most frustrating, I can't seem to exclude it with npm i --no-optional. I can only find one other reference to this issue at hexojs/hexo#2803 and they "fixed" it by forking bunyan and removing the dependency on dtrace-provider :(

@thom-nic thom-nic changed the title runtime err on startup: runtime err on startup: dyld: Symbol not found: _usdt_create_provider May 7, 2018
@timmywil
Copy link

timmywil commented Nov 8, 2018

@thom-nic did you figure out a workaround?

@hellerve
Copy link

I can still reproduce this issue on OS X 10.14.1 and node v11.4.0. Are there any updates?

@thom-nic
Copy link
Author

In the nicest way possible, I hate that any project that uses bunyan, pulls this in and always causes headaches. bunyan seems to insist that it's not an issue: https://github.com/trentm/node-bunyan/issues?utf8=%E2%9C%93&q=is%3Aissue+dtrace :(

I've resorted to rm -r node_modules/dtrace_provider. You could turn this into a postInstall script in your package.json. Sorry it's the best I've got :(

@andrewgould
Copy link

@thom-nic Do you have binutils installed via Homebrew? I was encountering the same problem as you (https://stackoverflow.com/questions/54014971/macos-dyld-symbol-not-found-usdt-create-provider) and managed to fix it by removing this package.

@Nazgolze
Copy link

Nazgolze commented Jun 9, 2021

I'm running into this issue as well on an M1 mac (yes it's bunyan @thom-nic haha). In my case, I think it's due to lack of ARM support.

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

5 participants