Forums

Skip to content

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

kernel fails to compile bc files of binutils in wrong place

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
DawgG
l33t
l33t
User avatar
Posts: 880
Joined: Wed Sep 17, 2003 12:31 pm

kernel fails to compile bc files of binutils in wrong place

  • Quote

Post by DawgG » Thu Mar 19, 2026 1:55 pm

on an up-to-date ~amd64 box of mine the kernel (6.19.8-gentoo) fails to compile because some <files>.h that belong to binutils cannot be found:

Code: Select all

/usr/src/linux-6.19.8-gentoo/tools/objtool/include/objtool/arch.h:111:10: fatal error: dis-asm.h: No such file or directory
  111 | #include <dis-asm.h>
      |          ^~~~~~~~~~~

Code: Select all

phobos /usr/src/linux # equery b dis-asm.h
 * Searching for dis-asm.h ... 
sys-devel/binutils-2.46.0 (/usr/lib64/binutils/x86_64-pc-linux-gnu/2.46.0/include/dis-asm.h)
this happened with:
bfd.h
ansidecl.h
symcat.h
which i all manually copied from /usr/lib64/binutils/x86_64-pc-linux-gnu/2.46.0/include/ to /usr/include after which the kernel-compilation went one step further.
I quit copying after these files (the next one would be dis-asm.h) since i suspect there is a deeper problem

Any idea what could be wrong here? (I already re-emerged binutils)
THX for your input!
Last edited by DawgG on Fri Mar 20, 2026 10:22 am, edited 1 time in total.
DUMM KLICKT GUT.
Top
grknight
Retired Dev
Retired Dev
Posts: 2549
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Mar 19, 2026 2:37 pm

These are installed to /usr/include with sys-libs/binutils-libs package.

I believe there was another thread about this on the forums and also [bug=970753]Bug 970753[/bug] and [bug=970027]Bug 970027[/bug]
Top
DawgG
l33t
l33t
User avatar
Posts: 880
Joined: Wed Sep 17, 2003 12:31 pm

[SOLVED] by installing sys-libs/binutils-libs-2.46.0

  • Quote

Post by DawgG » Fri Mar 20, 2026 10:22 am

@grknight
THX for your reply! This was the solution (workaraound).
Should have checked the bugs before.
After installing sys-libs/binutils-libs-2.46.0 the kernel compiles.
DUMM KLICKT GUT.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

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