Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Configuration CPU 64bit Not Supported Error
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message

Joined: 22 May 2013
Posts: 13

PostPosted: Wed May 22, 2013 2:52 pm    Post subject: Kernel Configuration CPU 64bit Not Supported Error Reply with quote

I am trying to install the kernel. I edited a lot of custom options in menuconfig but when I try to "make && make modules_install" I get the following error saying that I do not have a cpu selected that can support the x86-64 instruction set. I definitely have such a CPU. I've used the stage3-i686-20130423.tar.bz2 image. I also tried the generic-x86-64 processor family specification in the menuconfig setup as well as the Athlon64 option.

(chroot) darkstar linux # make && make modules_install
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
  CHK     include/generated/uapi/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

Here's my cpu info (for the second core):

processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 18
model           : 1
model name      : AMD A6-3620 APU with Radeon(tm) HD Graphics
stepping        : 0
microcode       : 0x3000027
cpu MHz         : 2195.838
cache size      : 1024 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov       pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp       lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf       pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a mis      alignsse 3dnowprefetch osvw ibs skinit wdt arat cpb npt lbrv svm_lock nrip_save       pausefilter
bogomips        : 4391.96
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate [9]

Here's some info on my configuration:

(chroot) darkstar linux # emerge --info
Portage (default/linux/x86/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.2.29 x86_64)
System uname: Linux-3.2.29-x86_64-AMD_A6-3620_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.1
KiB Mem:     5567468 total,   1060580 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 19 May 2013 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
CFLAGS="-O2 -march=i686 -pipe"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow X a52 aac acl acpi alsa bash-completion berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl ogg opengl openmp pam pango pcre pdf php png policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wifi wxwidgets x264 x86 xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

Thanks a ton. This is a bit frustrating as I've spent more than a day configuring the options I want in the kernel. I'd hate to do it from scratch again.
Back to top
View user's profile Send private message
Tux's lil' helper
Tux's lil' helper

Joined: 01 Oct 2010
Posts: 145
Location: Switzerland

PostPosted: Wed May 22, 2013 3:37 pm    Post subject: Reply with quote

I think, you have selected the wrong processor type in the kernel configuration. The important part in your .config file is this one:


# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
CONFIG_MCORE2=y                         #is set, because i have an Intel CPU
# CONFIG_MATOM is not set

Maybe you can select a generic CPU and then the kernel will build again. I've also noticed, that you use -march=i686. Try to use -march=generic, since gcc will detect your processor by itself.
Back to top
View user's profile Send private message

Joined: 19 Oct 2007
Posts: 2375
Location: Hilbert space

PostPosted: Wed May 22, 2013 5:11 pm    Post subject: Re: Kernel Configuration CPU 64bit Not Supported Error Reply with quote

streak wrote:
I've used the stage3-i686-20130423.tar.bz2 image.

Are you sure you picked the correct stage3, I mean the stage3 that is appropriate for the x86_64 arch ?
That's now a long time I haven't installed any stage3... to be honest... I've done that only once... so... things might have changed but I would have bet that stage3 for the x86_64 arch is named stage3-amd64...
Back to top
View user's profile Send private message

Joined: 22 May 2013
Posts: 13

PostPosted: Wed May 22, 2013 7:19 pm    Post subject: Reply with quote

Thanks guys.

mvaterlaus: Thank you. I think I've selected Generic in the kernel configuration. At least that's what it seems to say. My choice under "Processor family" was Generic-x86-64... Is there something I am missing here? Do I need to edit my make.conf file or something? I added CONFIG_GENERIC_CPU=y in my make.conf file just to see what'd happen but it didn't do the trick.

aCOSwt: The only reason why I picked i686 is because the handbook seemed pretty clear that that was the one that I should go with (quote below). I think you're right that amd64 is correct, but why did the handbook push i686? It also seems to say that i686 will always work on newer PCs. If I pick a different stage3 I think I'll have to reconfigure the kernel (arrg super frustrating) but I'll go with that if you think that's the only way. You are probably right that I should at least give that a shot. I don't think I lose my configurations if I decide that amd64 doesn't work and I go back to i686. I'll give it a spin. Thanks.

Here's a quote from :
Most PC users should use the stage3-i686-<release>.tar.bz2 stage3 archive. All modern PCs are considered i686. If you use an old machine, you can check the list of i686-compatible processors on Wikipedia. Old processors such as the Pentium, K5, K6, or Via C3 and similar require the more generic x86 stage3. Processors older than i486 are not supported.
Back to top
View user's profile Send private message

Joined: 19 Oct 2007
Posts: 2375
Location: Hilbert space

PostPosted: Wed May 22, 2013 7:39 pm    Post subject: Reply with quote

I think I can confirm my hypothesis :
Back to top
View user's profile Send private message

Joined: 22 May 2013
Posts: 13

PostPosted: Wed May 22, 2013 7:45 pm    Post subject: Reply with quote

Indeed, I was poking around to see why the handbook would recommend the wrong tar stage. I quickly realized that the handbook was dated when it talked about floppies on one of the pages.

I continued trying to figure out why it would suggest i686 and I realized I wasn't using the amd64 handbook. I guess that was stupid but now I understand why the instructions gave me the wrong advice.

Thank you for pointing out that I should've been using amd64.

EDIT: In fact, after starting over with the stage3 for amd64 the kernel compiled correctly. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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