Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compile error with sys-kernel/gentoo-sources-5.2.8
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
manmadescience
n00b
n00b


Joined: 06 Jun 2015
Posts: 12

PostPosted: Sat Aug 10, 2019 2:16 pm    Post subject: Kernel compile error with sys-kernel/gentoo-sources-5.2.8 Reply with quote

I can't compile the kernel from latest sys-kernel/gentoo-sources. 5.2.2 compiles just fine, but gives an error with later versions. Genkernel log:

Code:

* Gentoo Linux Genkernel; Version 69
* Running with options: kernel

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 5.2.8-gentoo for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-5.2.8-gentoo
* kernel: Using config from /etc/kernels/kernel-config-x86_64-5.2.8-gentoo
*         Previous config backed up to .config--2019-08-10--11-42-28.bak
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
*         >> Compiling 5.2.8-gentoo bzImage...
* ERROR: Failed to compile the "bzImage" target...
*
* -- Grepping log... --
*
*  CC      kernel/sched/debug.o
*  CC      fs/btrfs/tree-checker.o
*  CC      arch/x86/pci/fixup.o
*  CC      drivers/acpi/acpica/exfldio.o
*  CC      mm/hugetlb_cgroup.o
*  CC      mm/memory-failure.o
*--
*  GEN     .version
*  CHK     include/generated/compile.h
*  LD      vmlinux.o
*ld: drivers/input/mouse/alps.o: in function `trackpoint_detect':
*alps.c:(.text+0x4b60): multiple definition of `trackpoint_detect'; drivers/input/mouse/psmouse-base.o:psmouse-base.c:(.text+0xdf0): first defined here
*make: *** [Makefile:1054: vmlinux] Error 1
*--
* Running with options: kernel
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Failed to compile the "bzImage" target...
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

Same error when trying to compile manually:

Code:

$ make
...
  CC [M]  drivers/scsi/ses.o
  LD [M]  drivers/scsi/sr_mod.o
  LD [M]  drivers/scsi/sd_mod.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  LD      vmlinux.o
ld: drivers/input/mouse/alps.o: in function `trackpoint_detect':
alps.c:(.text+0x4b60): multiple definition of `trackpoint_detect'; drivers/input/mouse/psmouse-base.o:psmouse-base.c:(.text+0xdf0): first defined here
make: *** [Makefile:1054: vmlinux] Error 1


Does anyone have an idea what went wrong with my config? To be honest, I didn't pay much attention to it since the update to 5.0. Here's the config. Thank you in advance!
Back to top
View user's profile Send private message
manmadescience
n00b
n00b


Joined: 06 Jun 2015
Posts: 12

PostPosted: Sat Aug 10, 2019 2:30 pm    Post subject: Reply with quote

All right, I see the error is already fixed in kernel sources, and applying the patch to gentoo-sources via /etc/portage/patches resolves the issue.
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