View previous topic :: View next topic |
Author |
Message |
g0rg0n Tux's lil' helper
Joined: 18 Feb 2006 Posts: 97
|
Posted: Wed Jul 17, 2024 11:17 am Post subject: bootstrapping clang |
|
|
Hello There,
I just noticed that default-compiler-rt default-lld llvm-libunwind useflags are moved from clang to clang-common:
Code: |
# USE="default-compiler-rt default-lld llvm-libunwind" emerge -uUDvp clang
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 27.61 s (backtrack: 0/20).
[ebuild R ] sys-devel/clang-common-18.1.8-r1::gentoo USE="cet default-compiler-rt* default-lld* llvm-libunwind* -bootstrap-prefix -default-libcxx -hardened -verify-sig" 0 KiB
[ebuild R ] sys-libs/llvm-libunwind-18.1.8::gentoo USE="static-libs* -clang -debug -test -verify-sig" 0 KiB
Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB
# emerge -vp clang
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 5.42 s (backtrack: 0/20).
[ebuild R ] sys-devel/clang-18.1.8:18/18.1::gentoo USE="extra (pie) static-analyzer xml -debug -doc (-ieee-long-double) -test -verify-sig" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
#
|
Looking at clang-bootstrap wiki history, it seems this was changed sometime around Jan-2023 so my system has been running like this over a year...
The question is, do I need to rebuild clang-common with USE="default-lld llvm-libunwind useflags" and bootstrap clang again? or it actually won't matter since I still have -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind set in LDFLAGS? _________________ nicewarm.coffee |
|
Back to top |
|
|
g0rg0n Tux's lil' helper
Joined: 18 Feb 2006 Posts: 97
|
Posted: Wed Jul 17, 2024 11:57 am Post subject: |
|
|
Rebuilding clang-common with USE="default-compiler-rt default-lld llvm-libunwind" modified /etc/clang/gentoo-runtimes.cfg
Code: | /etc/clang # cat gentoo-runtimes.cfg
# This file is initially generated by sys-devel/clang-runtime.
# It is used to control the default runtimes using by clang.
--rtlib=libgcc
--unwindlib=libgcc
--stdlib=libstdc++
-fuse-ld=bfd
|
Code: | /etc/clang # cat gentoo-runtimes.cfg
# This file is initially generated by sys-devel/clang-runtime.
# It is used to control the default runtimes using by clang.
--rtlib=compiler-rt
--unwindlib=libunwind
--stdlib=libstdc++
-fuse-ld=lld
|
Does LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed" override the settings in /etc/clang/gentoo-runtimes.cfg? or vice versa? _________________ nicewarm.coffee |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|