Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Can't compile my kernel

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Point2Kelvin
n00b
n00b
Posts: 19
Joined: Sat Oct 31, 2020 2:43 am

Can't compile my kernel

  • Quote

Post by Point2Kelvin » Fri Nov 06, 2020 7:00 pm

I'm unsure what caused this, it may have been an emerge --depclean at some point but when I try to recompile, I get the error:

Code: Select all

$ doas make -j9
  DESCEND  objtool
  CALL    scripts/atomic/check-atomics.sh
make[4]: *** No rule to make target '/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/stddef.h', needed by '/usr/src/linux-5.9.2-gentoo/tools/objtool/fixdep.o'.  Stop.
make[3]: *** [Makefile:43: /usr/src/linux-5.9.2-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-5.9.2-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
make[1]: *** [Makefile:68: objtool] Error 2
make: *** [Makefile:1886: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....
  CALL    scripts/checksyscalls.sh
I tried updating packages and doing another depclean, but it's still giving me this error, even after a reboot.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 06, 2020 8:12 pm

Point2Kelvin,

Welcome to Gentoo.

Start out just this once with

Code: Select all

make mrproper
.
That's

Code: Select all

make clean
and then some.

What does make have to say for itself now?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Point2Kelvin
n00b
n00b
Posts: 19
Joined: Sat Oct 31, 2020 2:43 am

  • Quote

Post by Point2Kelvin » Fri Nov 06, 2020 8:22 pm

Thanks for the response!

This was the output of 'make mrproper'

Code: Select all

$ doas make mrproper                                                                                                    [15:18:39]
  CLEAN   arch/x86/entry/vdso
  CLEAN   arch/x86/kernel/cpu
  CLEAN   arch/x86/kernel
  CLEAN   arch/x86/realmode/rm
  CLEAN   arch/x86/lib
  CLEAN   certs
  CLEAN   drivers/firmware/efi/libstub
  CLEAN   drivers/scsi
  CLEAN   drivers/tty/vt
  CLEAN   drivers/video/logo
  CLEAN   lib/raid6
  CLEAN   lib
  CLEAN   net/wireless
  CLEAN   security/selinux
  CLEAN   usr
  CLEAN   arch/x86/boot/compressed
  CLEAN   arch/x86/boot
  CLEAN   arch/x86/tools
  CLEAN   vmlinux.symvers modules.builtin modules.builtin.modinfo
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   scripts/mod
  CLEAN   scripts/selinux/genheaders
  CLEAN   scripts/selinux/mdp
  CLEAN   scripts
  CLEAN   include/config include/generated arch/x86/include/generated .config .config.old .version Module.symvers
After running 'make clean' I tried to run 'make -j9' once again and I get

Code: Select all

$ doas make -j9
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make: *** [Makefile:701: .config] Error 1
I wanted to post this first, but I assume that I should just run one of those suggested commands?

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 06, 2020 8:28 pm

Point2Kelvin,

Oops.

Code: Select all

make mrproper 
removes your .config file too.
I'm sorry about that.
It returns the kernel tree to the state in was in when portage unpacked it.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Point2Kelvin
n00b
n00b
Posts: 19
Joined: Sat Oct 31, 2020 2:43 am

  • Quote

Post by Point2Kelvin » Fri Nov 06, 2020 8:30 pm

Oh, what do I do about that then? Is it a completely lost cause, or...?
Top
Point2Kelvin
n00b
n00b
Posts: 19
Joined: Sat Oct 31, 2020 2:43 am

  • Quote

Post by Point2Kelvin » Fri Nov 06, 2020 8:31 pm

Nevermind, I just looked in my 'make menuconfig' and it looks like all of my settings for my kernel are still set. I just saved it as a new .config file and it seems to be compiling just fine so far.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 06, 2020 8:40 pm

Point2Kelvin,

What you have there is the default kernel configuration.
I don't know of anyone who uses that as is.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Point2Kelvin
n00b
n00b
Posts: 19
Joined: Sat Oct 31, 2020 2:43 am

  • Quote

Post by Point2Kelvin » Fri Nov 06, 2020 8:42 pm

Its definitely not the default, because all of the edits I made are still present. I guess they were still saved somehow.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy