Comments (2)
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.
You need
--targets "AArch64;ARM"
indo_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
inkernel/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 anx86_64
host, you need to includeX86
in your targets (e.g.--targets "AArch64;ARM;X86"
), otherwise the tests will fail and you won't be able to use it forHOSTCC
orHOSTLD
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)
- -fno-semantic-interposition and -Bsymbolic-functions HOT 2
- CMake build error in ./build-llvm.py on Ubuntu Bionic HOT 1
- [Question] Does build-llvm.py need an update for clang-14? HOT 3
- question: how to find out why a linking error happens? HOT 2
- [BOLT] Minimum hardware requirements? HOT 10
- download llvm from tarball's rather than shallow clone? HOT 1
- Ability to specify llvm sha HOT 1
- Building kernels: Show Linux version (when passing -L option) HOT 3
- Use sccache to speed up builds HOT 5
- Bump binutils to version 2.39
- Good revision broken on arm64 HOT 4
- Display total build-time HOT 6
- build-binutils.py: Do not build texinfo docs HOT 3
- Print total disc-usage in MiB HOT 4
- Alpine/Musl segfault when building BOLT in stage 3 HOT 7
- ld.gold and ld.bfd HOT 1
- ld.bfd ld.gold missing and build_binutils problem HOT 22
- build-binutils.py: don't assume -mtune == -march HOT 2
- Could not find LLVM_VERSION_MAJOR in CMakeLists.txt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tc-build.