Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clang LTO Support Merged For Linux 5.18 error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Sun May 29, 2022 11:35 am    Post subject: Clang LTO Support Merged For Linux 5.18 error Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sun May 29, 2022 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6089
Location: Removed by Neddy

PostPosted: Sun May 29, 2022 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Mon May 30, 2022 3:22 am    Post subject: Reply with quote

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
View user's profile Send private message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Mon May 30, 2022 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
jiutian
n00b
n00b


Joined: 29 May 2022
Posts: 26

PostPosted: Mon May 30, 2022 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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