View previous topic :: View next topic |
Author |
Message |
jiutian n00b

Joined: 29 May 2022 Posts: 26
|
Posted: Sun May 29, 2022 11:35 am Post subject: Clang LTO Support Merged For Linux 5.18 error |
|
|
I installed clang 15, and an error is prompted after executing the command
Code: | root@nsz:/media/nsz/ext4/linux-5.18/linux-5.18# make LLVM=1 LLVM_IAS=1 defconfig scripts/config -e LTO_CLANG_THIN make LLVM=1 LLVM_IAS=1
make: *** [Makefile:350:__build_one_by_one] error
I don't know where the error is. Does it need to be executed in three separate steps?
Step 1 execution
make LLVM=1 LLVM_IAS=1 defconfig
Step 2 execution
scripts/config -e LTO_CLANG_THIN
Step 3 execution
make LLVM=1 LLVM_IAS=1
Is that so? :oops:
thanks! |
|
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3961
|
Posted: Sun May 29, 2022 12:29 pm Post subject: |
|
|
Hi
Welcome to Gentoo Forums!
Quote: |
root@nsz:/media/nsz/ext4/linux-5.18/linux-5.18# make LLVM=1 LLVM_IAS=1 defconfig scripts/config -e LTO_CLANG_THIN make LLVM=1 LLVM_IAS=1
|
The above is a wrong line.
You should
Code: |
cd /usr/src/linux ### OR wherever the kernel tree is.
make LLVM=1 LLVM_IAS=1 defconfig
scripts/config -e LTO_CLANG_THIN
make LLVM=1 LLVM_IAS=1
|
_________________
 |
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 6089 Location: Removed by Neddy
|
Posted: Sun May 29, 2022 1:05 pm Post subject: |
|
|
also CLANG-15 is still hardmasked so there could be bugs.
kernel-5.18 builds with clang-14 just fine here
Quote: | dmesg | head -1
[ 0.000000] Linux version 5.18.0-gentoo (root@fluidmotion) (clang version 14.0.3, LLD 14.0.3) #1 SMP PREEMPT_DYNAMIC Sat May 28 21:35:07 BST 2022 |
_________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|
Back to top |
|
 |
jiutian n00b

Joined: 29 May 2022 Posts: 26
|
Posted: Mon May 30, 2022 3:22 am Post subject: |
|
|
I am the terminal that right-click to open the folder after decompressing. Is this also wrong?
It doesn't make a big difference with the method you said.
Naib wrote: | also CLANG-15 is still hardmasked so there could be bugs.
kernel-5.18 builds with clang-14 just fine here
Quote: | dmesg | head -1
[ 0.000000] Linux version 5.18.0-gentoo (root@fluidmotion) (clang version 14.0.3, LLD 14.0.3) #1 SMP PREEMPT_DYNAMIC Sat May 28 21:35:07 BST 2022 |
|
|
|
Back to top |
|
 |
jiutian n00b

Joined: 29 May 2022 Posts: 26
|
Posted: Mon May 30, 2022 3:24 am Post subject: |
|
|
OK, I'll try clang 14 thank you!
Naib wrote: | also CLANG-15 is still hardmasked so there could be bugs.
kernel-5.18 builds with clang-14 just fine here
Quote: | dmesg | head -1
[ 0.000000] Linux version 5.18.0-gentoo (root@fluidmotion) (clang version 14.0.3, LLD 14.0.3) #1 SMP PREEMPT_DYNAMIC Sat May 28 21:35:07 BST 2022 |
|
|
|
Back to top |
|
 |
jiutian n00b

Joined: 29 May 2022 Posts: 26
|
Posted: Mon May 30, 2022 4:12 am Post subject: |
|
|
The error cannot be fixed because you require some packages to remain as is, because they break the dependencies between packages
Is this serious
Naib wrote: | also CLANG-15 is still hardmasked so there could be bugs.
kernel-5.18 builds with clang-14 just fine here
Quote: | dmesg | head -1
[ 0.000000] Linux version 5.18.0-gentoo (root@fluidmotion) (clang version 14.0.3, LLD 14.0.3) #1 SMP PREEMPT_DYNAMIC Sat May 28 21:35:07 BST 2022 |
| [/quote] |
|
Back to top |
|
 |
|