Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED]can't compile kernel

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
dan.andersson
n00b
n00b
Posts: 9
Joined: Thu Mar 08, 2012 10:51 pm

[SOLVED]can't compile kernel

  • Quote

Post by dan.andersson » Thu Mar 08, 2012 11:05 pm

I follow the quickinstall and when i come to make of the kernel it gives

CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
kernel/bounds.c:1:0: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

And i don't have a clue what can be wrong, I followed the installation guide a week ago and don't hade this problem it didn't work but at least it compiled a kernel. Then i get it to boot with genkernel but don't get X to work, And as i found some info on how to get a sabretooth motherboard with nvidia gfx to work i thought i do it from scratch.

So far i have tried the default kernel config without and with some minor changes and the kernel config i found that's supposed to work. none of them compile i also tried with the same stage3 that i used last time when it worked at least i think it's the same i don't have it saved but downloaded the version from 28 feb, but with the same result.

Any ideas?
Last edited by dan.andersson on Fri Mar 09, 2012 7:23 pm, edited 1 time in total.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Mar 09, 2012 4:04 am

What is the output of emerge --info? You are probably using a 32-bit toolchain on a 64-bit kernel and did not setarch first, so the kernel build tries to create a 64-bit kernel.
Top
dan.andersson
n00b
n00b
Posts: 9
Joined: Thu Mar 08, 2012 10:51 pm

  • Quote

Post by dan.andersson » Fri Mar 09, 2012 8:42 am

Hu wrote:What is the output of emerge --info? You are probably using a 32-bit toolchain on a 64-bit kernel and did not setarch first, so the kernel build tries to create a 64-bit kernel.
I will check when home from work, but can't see where it can have found a 32bit toolchain, And it should create a 64bit kernel. But now when i look at the mirror site i get a suspicion that i have used the wrong stage3.

I think that AMD used to be x86_64 so i used x86 folder and i686, but at least now there is AMD64, and that for sure sounds better. Strange thou that i didn't noticed when i installed it a week ago.
Top
dan.andersson
n00b
n00b
Posts: 9
Joined: Thu Mar 08, 2012 10:51 pm

  • Quote

Post by dan.andersson » Fri Mar 09, 2012 7:27 pm

Ok now lets's just forget this, it's embarassing

but if someone finds it i had a stage3 for wrong architecture, i blame it on linux that doesn't need to be reinstalled so often so it was a few years since last time ;)
Top
Chiitoo
Administrator
Administrator
User avatar
Posts: 3036
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Fri Mar 09, 2012 8:16 pm

dan.andersson,

If I remember right, some year or so ago when I first ventured upon installing Gentoo, I think I got the ia64 stuff first for an 64bit AMD install...
So, I don't think it's something you should be embarrassed about, as I am sure you are not the first, nor the last, to stumble over something like this. ^^

Good to see you figured it out, and also, welcome (back?) to Gentoo!
Kindest of regardses.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Installing Gentoo”

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