Code Monkey home page Code Monkey logo

Comments (2)

nathanchance avatar nathanchance commented on August 15, 2024

You need --targets "AArch64;ARM" in do_llvm(), as the 32-bit vDSO requires the 32-bit ARM backend:

https://git.kernel.org/linus/3e6f8d1fa18457d54b20917bd9174d27daf09ab9
https://lore.kernel.org/[email protected]/
https://lore.kernel.org/CAKwvOdn7oW+ZO83-rFuGUMWBj10f=yZ=+O3ZTQ_afgQ6ossZOA@mail.gmail.com/

Alternatively, disable CONFIG_COMPAT_VDSO in kernel/build.sh but that could make 32-bit programs slower.

I really do not recommend messing with the --targets argument unless you truly know what you are doing. If you are building on an x86_64 host, you need to include X86 in your targets (e.g. --targets "AArch64;ARM;X86"), otherwise the tests will fail and you won't be able to use it for HOSTCC or HOSTLD in the kernel. You could also remove --check-targets clang lld llvm but that helps ensure that you are not getting a known buggy toolchain due to failing tests.

This is not a bug with the script so closing. I am happy to have follow up discussions if you feel something could be improved here.

from tc-build.

StarOnTheSky avatar StarOnTheSky commented on August 15, 2024

You need --targets "AArch64;ARM" in do_llvm(), as the 32-bit vDSO requires the 32-bit ARM backend:

https://git.kernel.org/linus/3e6f8d1fa18457d54b20917bd9174d27daf09ab9 https://lore.kernel.org/[email protected]/ https://lore.kernel.org/CAKwvOdn7oW+ZO83-rFuGUMWBj10f=yZ=+O3ZTQ_afgQ6ossZOA@mail.gmail.com/

Alternatively, disable CONFIG_COMPAT_VDSO in kernel/build.sh but that could make 32-bit programs slower.

I really do not recommend messing with the --targets argument unless you truly know what you are doing. If you are building on an x86_64 host, you need to include X86 in your targets (e.g. --targets "AArch64;ARM;X86"), otherwise the tests will fail and you won't be able to use it for HOSTCC or HOSTLD in the kernel. You could also remove --check-targets clang lld llvm but that helps ensure that you are not getting a known buggy toolchain due to failing tests.

This is not a bug with the script so closing. I am happy to have follow up discussions if you feel something could be improved here.

Okay. I'm building on an ARM64 server. After adding ARM target, it works properly now. Thank for your answer.

from tc-build.

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.