Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues compiling kernel
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
cl0q
n00b
n00b


Joined: 04 Aug 2022
Posts: 43

PostPosted: Wed Sep 28, 2022 10:39 pm    Post subject: Issues compiling kernel Reply with quote

Trying to install gentoo on a old and low spec laptop, got to the point of compiling the kernel, up until then everything is according to wiki. Ran make && make modules_install and it errored out. I tried uploading the log with wgetpaste but it seems to be too big since its been running for 10mins now. Error looks something like this:
Code:
drm_fb_helper.c:(.text+0xABCD): undefined reference to `sys_fillrect':
ld: drivers/gpu/drm/drn_fb_helper.o: in function `drm_fbdev_fb_imageblit'
<again but with many other functions and references, all in drivers/gpu/drm i suspect (i cant read whole output)>

make: *** [Makefile:1214: vmlinux] Error 1

I have tried searching online, to no avail really, the only gentoo thread didnt help me.
Here is my .config: https://dpaste.com/bjfgdvq5v

If any logs are necesary i can deliver
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Sep 28, 2022 11:10 pm    Post subject: Reply with quote

How did you edit the kernel config? Did you use 'make menuconfig'? Or did you edit .config with a text editor?

If you did the latter: don't do it. Use 'make menuconfig'. If you enable modules in 'make menuconfig', make sometimes enables additional options or modules, which are required to compile a driver or module. If you edit .config with a text editor, it's likely that you miss those options. And that may lead to errors like the one you reported.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3026
Location: Edge of marsh USA

PostPosted: Thu Sep 29, 2022 4:18 am    Post subject: Reply with quote

Suggestion. Install a stable version of sys-kernel/gentoo-kernel-bin in order to have a working & booting system. I further suggest version 5.10.144. Once you have a booting system, you can work on the gentoo-sources without urgency. You can also learn things from the working/running kernel to apply in configuring the source based kernel.

The output of emerge --info might also be helpful.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Back to top
View user's profile Send private message
cl0q
n00b
n00b


Joined: 04 Aug 2022
Posts: 43

PostPosted: Thu Sep 29, 2022 5:22 am    Post subject: Reply with quote

I edited the .config with make menuconfig.

How can i install a specific version of genkernel?
When i get home i will definitely try this.
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