Coder Social home page Coder Social logo

[clang] enable lld about kernelci-core HOT 7 CLOSED

kernelci avatar kernelci commented on July 26, 2024
[clang] enable lld

from kernelci-core.

Comments (7)

kees avatar kees commented on July 26, 2024 1

Maybe we could build a handful of defconfigs with an llvm build environment, as well as the current clang ones?

An "all LLVM tools" option now exists by setting LLVM=1 on the "make" command line. So now we could do GCC+bfd, Clang+bfd, and Clang+lld+all-other-LLVM-tools.

from kernelci-core.

nickdesaulniers avatar nickdesaulniers commented on July 26, 2024

Also, probably need to verify that ld.lld is packaged in the docker images.

from kernelci-core.

nickdesaulniers avatar nickdesaulniers commented on July 26, 2024

Also, the TCWG @ linaro is also testing with Clang+LLD on by default.

from kernelci-core.

broonie avatar broonie commented on July 26, 2024

Unless upstream arranges for clang builds to use lld by default we should probably keep coverage of builds with GNU LD since that's what people will be building if they just decide to go and build with clang. Testing with lld would definitely be good and I'm all in favour of adding it, I just worry about loosing coverage of the more standard case.

A reference to the discussion with Arnd would be helpful.

from kernelci-core.

nickdesaulniers avatar nickdesaulniers commented on July 26, 2024

A reference to the discussion with Arnd would be helpful.

Video call, unrecorded.

Unless upstream arranges for clang builds to use lld by default we should probably keep coverage of builds with GNU LD since that's what people will be building if they just decide to go and build with clang.

Sure if someone just does make CC=clang then clang will likely use ld.bfd (it needs a CMake variable -DCLANG_DEFAULT_LINKER=lld.

But we'd like to build the kernel with more than just clang; we'd like to use all llvm utilities so we can catch regressions in them.

I agree that make CC=clang LD=ld.lld NM=llvm-nm ... will get burdensome eventually, and have a few ideas to simplify that in Kbuild.

In the meantime, we'd really like to get testing coverage with lld.

from kernelci-core.

gctucker avatar gctucker commented on July 26, 2024

Maybe we could build a handful of defconfigs with an llvm build environment, as well as the current clang ones?

I think this could be defined as part of the Docker image used to do the kernel builds (Debian alternatives, or env variables set up before calling make...).

from kernelci-core.

gctucker avatar gctucker commented on July 26, 2024

Sounds like something we should be trying with linux-next on staging.

from kernelci-core.

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.