Code Monkey home page Code Monkey logo

Comments (7)

springmeyer avatar springmeyer commented on August 16, 2024 1

@apendleton I'll get a working example going in node-cpp-skel next

Here is a working example you can follow: mapbox/vtquery#63

Up to now I've used binutils-gold for linking and not lld and I'd like to give lld a shot.

Ideally need to do this mapbox/mason#561 for easy lld usage, so I think sticking with binutils linker (per the vtquery example PR above) is ideal.

from carmen-cache.

springmeyer avatar springmeyer commented on August 16, 2024 1

@apendleton yes, LTO requires a consistent major clang++ version to be used. That is my oversight: so due to the external dep we'll need to:

So, I recommend you continue the cleanup work without this LTO addition, to make sure you'r not blocked. We can hit it as a followup once the mason fix is available.

from carmen-cache.

apendleton avatar apendleton commented on August 16, 2024

@springmeyer it looks from cursory Googling like lld already supports LTO, so just to be sure I'm understanding: this should just be adding -flto to cppflags and ldflags in our binding.gyp, right?

from carmen-cache.

springmeyer avatar springmeyer commented on August 16, 2024

@apendleton I'll get a working example going in node-cpp-skel next and then ping you when ready. Up to now I've used binutils-gold for linking and not lld and I'd like to give lld a shot.

from carmen-cache.

apendleton avatar apendleton commented on August 16, 2024

@springmeyer we gave this a go and it seems not to be working, I think because we're trying to link to previously-built static libraries from Mason that were compiled with a different LLVM version (rocksdb, etc.). We get this error:

/home/travis/build/mapbox/carmen-cache/mason_packages/.link/bin/ld: error: LLVM gold plugin has failed to create LTO module: Invalid value (Producer: 'LLVM5.0.0git-30c4647' Reader: 'LLVM 3.9.1')

see for reference the job: https://travis-ci.org/mapbox/carmen-cache/jobs/346996737

Thoughts on how to proceed?

from carmen-cache.

springmeyer avatar springmeyer commented on August 16, 2024

Mason fix is looking good at #119

from carmen-cache.

apendleton avatar apendleton commented on August 16, 2024

Done in #116

from carmen-cache.

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.