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.

grpc-tools broken on mac OS?

See original GitHub issue

Problem description

When I try to generate static code with grpc-tools, I run into this error:

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/mariehoeger/Documents/repos/ProjectBrasilia/src/Workers/NodeWorker/node_modules/grpc-tools/bin/protoc (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/mariehoeger/Documents/repos/ProjectBrasilia/src/Workers/NodeWorker/node_modules/grpc-tools/bin/protoc (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

Reproduction steps

Run command:

grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src/channels/cloudEvent/grpc/static_codegen/ --grpc_out=grpc_js:./src/channels/cloudEvent/grpc/static_codegen/ --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` cloudevent.proto

with grpc-tools@1.9.0 and mac OS High Sierra

Environment

  • OS name, version and architecture: mac OS High Sierra (10.13.6)
  • Node version: v12.16.3
  • Node installation method: nvm
  • Package name and version: grpc-tools@1.9.0

Additional context

I got this to work with grpc-tools@1.6.6. I landed on this version by looking at the last version that was here https://node-precompiled-binaries.grpc.io/

I also installed with npm i grpc-tools, not npm i -g grpc-tools and am running the command grpc_tools_node_protoc from an npm script

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jinhuiWongcommented, Dec 19, 2020

same. macOS 10.13.6 , grpc-tools@^1.10.0

0reactions
Kupstascommented, Apr 28, 2021

same. macOS 10.13.6 (17G65), “grpc-tools”: “^1.11.1”,

Command:

yarn run grpc_tools_node_protoc \
    --js_out=import_style=commonjs,binary:${PROTO_DEST} \
    --grpc_out=grpc_js:${PROTO_DEST} \
    -I ./api/proto_telemetry \
    -I ./api/proto_buskit \
    api/proto_telemetry/*.proto api/proto_buskit/*.proto

yarn run grpc_tools_node_protoc \
    --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts \
    --ts_out=grpc_js:${PROTO_DEST} \
    -I ./api/proto_telemetry \
    -I ./api/proto_buskit \
    api/proto_telemetry/*.proto api/proto_buskit/*.proto
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on gRPC tools installation - Stack Overflow
While I tried to install gRPC tools (in Python), I came up with error like ... Could anyone tell me how to fix...
Read more >
Visual Studio 2019 for Mac v8.10 - Release Notes
Visual Studio 2019 for Mac version 8.10 Release Notes ... This is a problem with macOS platform detection in the gRPC.Tools NuGet package...
Read more >
Apple Silicon — Docker — dotnet — gRPC - Daniel Stoyanoff
Fix the build errors and run again. This is the output when running from a native terminal. If we now try under Rosetta,...
Read more >
grpc-tools - npm
Tools for developing with gRPC on Node.js. Latest version: 1.12.3, last published: 20 days ago. Start using grpc-tools in your project by ...
Read more >
Grpc.Tools 2.51.0 - NuGet
Version Downloads Last updated 2.51.0 73,839 19 days ago 2.51.0‑pre1 4,282 a month ago 2.50.0 621,812 2 months ago
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