Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] gentoo-sources-6.13.0: make 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
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 431
Location: UK

PostPosted: Mon Jan 20, 2025 5:23 pm    Post subject: [SOLVED] gentoo-sources-6.13.0: make error Reply with quote

I'm seeing this when I run make on gentoo-sources-6.13.0:
Code:
/usr/src/linux # make
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  KSYMS   .tmp_vmlinux0.kallsyms.S
  AS      .tmp_vmlinux0.kallsyms.o
  LD      .tmp_vmlinux1
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_driver_fbdev_probe':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:171:(.text+0x178): undefined reference to `drm_fb_helper_alloc_info'
ld: /usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:177:(.text+0x195): undefined reference to `drm_fb_helper_fill_info'
ld: /usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:192:(.text+0x20e): undefined reference to `drm_fb_helper_deferred_io'
ld: /usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:202:(.text+0x24d): undefined reference to `drm_fb_helper_release_info'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_get_page':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:86:(.text+0x2e6): undefined reference to `drm_gem_fb_get_obj'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_fb_destroy':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:62:(.text+0x3e8): undefined reference to `drm_fb_helper_fini'
ld: /usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:67:(.text+0x40a): undefined reference to `drm_fb_helper_unprepare'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_fb_mmap':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:45:(.text+0x446): undefined reference to `drm_gem_fb_get_obj'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_defio_write':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:37:(.text+0x575): undefined reference to `drm_fb_helper_damage_range'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_defio_imageblit':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:37:(.text+0x4af): undefined reference to `drm_fb_helper_damage_area'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_defio_copyarea':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:37:(.text+0x4ef): undefined reference to `drm_fb_helper_damage_area'
ld: drivers/gpu/drm/drm_fbdev_shmem.o: in function `drm_fbdev_shmem_defio_fillrect':
/usr/src/linux-6.13.0-gentoo/drivers/gpu/drm/drm_fbdev_shmem.c:37:(.text+0x52f): undefined reference to `drm_fb_helper_damage_area'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0x48): undefined reference to `drm_fb_helper_check_var'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0x50): undefined reference to `drm_fb_helper_set_par'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0x60): undefined reference to `drm_fb_helper_setcmap'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0x68): undefined reference to `drm_fb_helper_blank'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0x70): undefined reference to `drm_fb_helper_pan_display'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0xa0): undefined reference to `drm_fb_helper_ioctl'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0xc8): undefined reference to `drm_fb_helper_debug_enter'
ld: drivers/gpu/drm/drm_fbdev_shmem.o:(.rodata+0xd0): undefined reference to `drm_fb_helper_debug_leave'
make[2]: *** [scripts/Makefile.vmlinux:77: vmlinux] Error 1
make[1]: *** [/usr/src/linux-6.13.0-gentoo/Makefile:1227: vmlinux] Error 2
make: *** [Makefile:251: __sub-make] Error 2


To get to this I do the following
Code:
cd /usr/src/linux
make distclean
zcat /proc/config.gz >.config
make olddefconfig
make menuconfig # exit with no changes
make -j64

Then, after the failure, I run:
make
which provided the output above


The errors noted above are in the drm area - anyone else seeing this?


Last edited by ipic on Mon Jan 20, 2025 6:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 431
Location: UK

PostPosted: Mon Jan 20, 2025 6:04 pm    Post subject: Reply with quote

The following configuration options in my .config were not set:
Code:
CONFIG_DRM_AMD_ISP
CONFIG_DRM_SIMPLEDRM
CONFIG_SYSFB_SIMPLEFB


When I set these to "Y", the kernel compiled and installed OK.

I'm about to reboot - I'll be back if it works.
Back to top
View user's profile Send private message
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 431
Location: UK

PostPosted: Mon Jan 20, 2025 6:19 pm    Post subject: Reply with quote

Booted OK :-)

My guess would be that CONFIG_DRM_AMD_ISP is not the source of the problem.
It seems more likely that a simple frame buffer device is assumed - especially since the note in the config help says to enable if unsure.

Anyway - this may help someone.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5362
Location: Bavaria

PostPosted: Mon Jan 20, 2025 11:52 pm    Post subject: Reply with quote

My guess is: You have copied your old .config into 6.13 and did immediately a "make" ... without doing a "make oldconfig" before ... ;-)

(if this is true then please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#What_is_.22make_oldconfig.22_.3F )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
ipic
Guru
Guru


Joined: 29 Dec 2003
Posts: 431
Location: UK

PostPosted: Tue Jan 21, 2025 7:40 am    Post subject: Reply with quote

pietinger wrote:
My guess is: You have copied your old .config into 6.13 and did immediately a "make" ... without doing a "make oldconfig" before ... ;-)

(if this is true then please read: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#What_is_.22make_oldconfig.22_.3F )


No.
I reproduced it three times, and it's scripted.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2113

PostPosted: Tue Jan 21, 2025 10:19 pm    Post subject: Reply with quote

It's a kernel bug if it allows configuration options which result in a link failure. There's likely some missing #ifdef based on the CONFIG_* you have disabled.
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