Coder Social home page Coder Social logo

cannot build on FreeBSD about grpc-node HOT 5 CLOSED

grpc avatar grpc commented on September 23, 2024 1
cannot build on FreeBSD

from grpc-node.

Comments (5)

Techwolf12 avatar Techwolf12 commented on September 23, 2024

Same issue here. Glad to see it is getting a lot of attention from the maintainers 👍

from grpc-node.

Techwolf12 avatar Techwolf12 commented on September 23, 2024

Right, already seemed to have gcc installed. It works now like this:

env LINK=gcc6 CC=gcc6 CXX=g++6 LINKXX=g++6 npm install grpc

If you use pkg, you can install lang/gcc49, just replace the 6 with 49 in the command list.

This however doesn't mean the library shouldn't support the clang compiler of course...

from grpc-node.

eatonphil avatar eatonphil commented on September 23, 2024

I have the same issue. Delete the line that includes -zdef in the appropriate binding.gyp file relative to the version (and package manager) you're installing for a quick fix. For me on version 1.9.0, the file was ~/.cache/yarn/v1/npm-grpc-1.9.0-99ca91c7dddc158da1d7edc4f7e09971a8b68a84/binding.gyp

from grpc-node.

rzemykers avatar rzemykers commented on September 23, 2024

I confirm it's binding.gyp file.
I'm not a champion of gyp files but I think it should be something like this

"conditions": [
        ['OS=="freebsd"', {
          'cflags': [
          '-pthread',
          '-Wno-error=deprecated-declarations'
      ],
        }],
        ['OS!="freebsd"', {
          'cflags': [
          '-pthread',
          '-zdefs',
          '-Wno-error=deprecated-declarations'
        }],
      ],

from grpc-node.

nicolasnoble avatar nicolasnoble commented on September 23, 2024

We've removed zdefs.

from grpc-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.