Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make localmodconfig fails on amd64-musl-llvm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JaWie
n00b
n00b


Joined: 03 Apr 2025
Posts: 1

PostPosted: Thu Apr 10, 2025 1:54 pm    Post subject: make localmodconfig fails on amd64-musl-llvm Reply with quote

Hi everyone,

I’m trying to install Gentoo musl-llvm on an AMD64-based laptop, using the newest release of Gentoo LiveGUI. Since I did most of steps of AMD64 handbook last week, the stage 3 file extracted on disk is stage3-amd64-musl-llvm-20250330T165244Z.tar.xz.I’m currently stuck at manual configuration of the Linux kernel. While trying to run
Code:
make localmodconfig
in /usr/src/linux, I get the following output:
Code:
HOSTCC  scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[2]: *** [scripts/Makefile.host:116: scripts/basic/fixdep] Error 127
make[1]: *** [/usr/src/linux-6.12.21-gentoo/Makefile:623: scripts_basic] Error 2
make: *** [Makefile:224: __sub-make] Error 2

The second line surprised me, since I thought that emerging sys-kernel/gentoo-sources should automatically take care of dependencies and/or fetch the right files. The handbook did so far include notes regarding musl users, but nothing here this time. What’s the correct way of fixing this problem? I tried searching for solutions, but found nothing similar enough to my case.

I’m aware of various nuances of using a musl-based OS, I deliberately decided on choosing this flavor. While I don’t consider myself an advanced Linux user, I’m neither entirely new to it. I even installed Gentoo once (and it worked), but that was years ago and many things have changed since then.

If it’s anything of importance, I also got weird behavior from sys-kernel/modprobed-db. When I tried to run
Code:
modprobed-db store
inside the chroot, it gave me:
Code:
==> ERROR: Cannot locate user home directory.

I checked and /root is there. But when I opened another terminal window in the LiveGUI and (without chrooting) pointed to the binary on the laptop’s disk, it ran as described in the handbook, as well as the Wiki page. I ended up manually copying the created database onto the laptop.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2106

PostPosted: Thu Apr 10, 2025 2:09 pm    Post subject: Reply with quote

I believe you need LLVM=1 added to all kernel make operations. Otherwise, the kernel build assumes gcc.

See also Building Linux with Clang/LLVM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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