Forums

Skip to content

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

"CPU you selected does not support x86-64 instruction set"

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
elomaniak
n00b
n00b
Posts: 47
Joined: Sun Jan 27, 2013 4:24 am

"CPU you selected does not support x86-64 instruction s

  • Quote

Post by elomaniak » Tue Mar 26, 2013 12:15 pm

Hi
I am having a small problem

i am trying to emerge mknbi, as i need it for my PXEBoot project, but i always keep getting the error "CPU you selected does not support x86-64 instruction set"

in .config, the AMD64/K8 is set.

here's my make.conf

Code: Select all

CFLAGS="-march=k8 -O2 -pipe"
#CFLAGS="-mtune=amdfam10 -march=amdfam10 -O3 -fomit-frame-pointer -pipe"
#CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"
ACCEPT_KEYWORDS="~amd64"
FEATURES="splitdebug"
EMERGE_DEFAULT_OPTS="--jobs=4 --quiet-build=n --autounmask=n"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"

#__Software Section_______________________________________________________________\

USE="                                                                             \
mmx sse sse2 smp -nvidia fbcon -opengl -xcomposite threads nptl nptlonly          \
hal usb -pcmcia -wifi -bluetooth -alsa -acpi -cups -nsplugin -xinerama            \
-libv4l2 -truetype unicode -gtk2 -logitech-mouse -X -tiff -png -svg -jpeg -sdl -mp3 \
dbus \
-gtk -lcms -win32codecs -thunar -gimp -ssl consolekit -qt3support -kde lirc -plasma        \
-semantic-desktop zeroconf                                                         \
\
-lib32 -gnome -tetex -krb4 accessibility -python -postgres -pulseaudio -xine      \
-multilib -mpi -hdf5 -qt4 -kde4 -phonon -networkmanager -opencl                   \
"

LANGUAGE=49
LINGUAS="de en"
ACCEPT_LICENSE="*"
AUTOCLEAN="yes"
if any other info is needed pls inform me and i will give it to you as soon as possible
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Tue Mar 26, 2013 12:19 pm

Hello,

your CHOST and CFLAGS variables are commented out. Try to uncomment them.

Can you also provide the output of "emerge --info" ?
Kind regards,
Xavier Miller
Top
elomaniak
n00b
n00b
Posts: 47
Joined: Sun Jan 27, 2013 4:24 am

  • Quote

Post by elomaniak » Tue Mar 26, 2013 12:27 pm

Here's the build log

Code: Select all

#[32;01m * #[39;49;00mPackage:    net-misc/mknbi-1.4.4
#[32;01m * #[39;49;00mRepository: gentoo
#[32;01m * #[39;49;00mMaintainer: maintainer-needed@gentoo.org
#[32;01m * #[39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
#[32;01m * #[39;49;00mFEATURES:   sandbox splitdebug
>>> Unpacking source...
>>> Unpacking mknbi-1.4.4.tar.gz to /var/tmp/portage/net-misc/mknbi-1.4.4/work
 #[32;01m*#[0m Applying mknbi-1.4.3-nossp.patch ...
#[A#[228C #[34;01m[ #[32;01mok#[34;01m ]#[0m
 #[32;01m*#[0m Applying mknbi-1.4.4-gcc4.patch ...
#[A#[228C #[34;01m[ #[32;01mok#[34;01m ]#[0m
>>> Source unpacked in /var/tmp/portage/net-misc/mknbi-1.4.4/work
>>> Compiling source in /var/tmp/portage/net-misc/mknbi-1.4.4/work/mknbi-1.4.4 ...
make -j4 
perl -ne 's|\@\@VERSION\@\@|1.4.4|; s|\@\@LIBDIR\@\@|/usr/lib/mknbi|; s|\@\@FDKSEG\@\@|0x60|; print $_;' mknbi.pl > mknbi
cp -p disnbi.pl disnbi
cp -p dismbr.pl dismbr
chmod 755 disnbi
cp -p disdosbb.pl disdosbb
chmod 755 dismbr
chmod 755 disdosbb
chmod 755 mknbi
cp -p nbitoelf.pl nbitoelf
gcc -minline-all-stringops		-I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -march=i386 -fno-stack-protector  -fno-pie -Wall -W -Wno-format -Wno-unused -DVERSION=\"1.4.4\" -o first32.o -c first32.c
gcc -minline-all-stringops		-I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -march=i386 -fno-stack-protector  -fno-pie -Wall -W -Wno-format -Wno-unused -DVERSION=\"1.4.4\" -c memsizes.c
chmod 755 nbitoelf
gcc -minline-all-stringops		-I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -march=i386 -fno-stack-protector  -fno-pie -Wall -W -Wno-format -Wno-unused -DVERSION=\"1.4.4\" -c printf.c
first32.c:1:0: error: CPU you selected does not support x86-64 instruction setgcc -minline-all-stringops		-I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -march=i386 -fno-stack-protector  -fno-pie -Wall -W -Wno-format -Wno-unused -DVERSION=\"1.4.4\" -c string.c
memsizes.c:1:0: error: CPU you selected does not support x86-64 instruction set
memsizes.c:1:0: error: CPU you selected does not support x86-64 instruction set

first32.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [first32.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [memsizes.o] Error 1
printf.c:1:0: error: CPU you selected does not support x86-64 instruction set
printf.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [printf.o] Error 1
string.c:1:0: error: CPU you selected does not support x86-64 instruction set
string.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [string.o] Error 1
emake failed
 #[31;01m*#[0m ERROR: net-misc/mknbi-1.4.4 failed (compile phase):
 #[31;01m*#[0m   emake failed
 #[31;01m*#[0m 
 #[31;01m*#[0m Call stack:
 #[31;01m*#[0m          ebuild.sh, line   93:  Called src_compile
 #[31;01m*#[0m        environment, line 2012:  Called __eapi0_src_compile
 #[31;01m*#[0m   phase-helpers.sh, line  592:  Called __eapi2_src_compile
 #[31;01m*#[0m   phase-helpers.sh, line  632:  Called die
 #[31;01m*#[0m The specific snippet of code:
 #[31;01m*#[0m   		emake || die "emake failed"
 #[31;01m*#[0m 
 #[31;01m*#[0m If you need support, post the output of `emerge --info '=net-misc/mknbi-1.4.4'`,
 #[31;01m*#[0m the complete build log and the output of `emerge -pqv '=net-misc/mknbi-1.4.4'`.
 #[31;01m*#[0m The complete build log is located at '/var/tmp/portage/net-misc/mknbi-1.4.4/temp/build.log'.
 #[31;01m*#[0m The ebuild environment file is located at '/var/tmp/portage/net-misc/mknbi-1.4.4/temp/environment'.
 #[31;01m*#[0m Working directory: '/var/tmp/portage/net-misc/mknbi-1.4.4/work/mknbi-1.4.4'
 #[31;01m*#[0m S: '/var/tmp/portage/net-misc/mknbi-1.4.4/work/mknbi-1.4.4'
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Tue Mar 26, 2013 12:32 pm

please set the CFLAGS and CHOST variables.
Kind regards,
Xavier Miller
Top
elomaniak
n00b
n00b
Posts: 47
Joined: Sun Jan 27, 2013 4:24 am

  • Quote

Post by elomaniak » Tue Mar 26, 2013 12:43 pm

set them and still the same error

gcc -minline-all-stringops -I. -Os -ffreestanding -fstrength-reduce -fomit-frame-pointer -march=i386 -fno-stack-protector -fno-pie -Wall -W -Wno-format -Wno-unused

dont know where this comes from but it seems this is preventing the package from install
Last edited by elomaniak on Tue Mar 26, 2013 12:48 pm, edited 2 times in total.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Tue Mar 26, 2013 12:46 pm

Can you provide the output of

Code: Select all

emerge --info
please ?
Kind regards,
Xavier Miller
Top
elomaniak
n00b
n00b
Posts: 47
Joined: Sun Jan 27, 2013 4:24 am

  • Quote

Post by elomaniak » Tue Mar 26, 2013 12:47 pm

emerge --info

Code: Select all

Portage 2.1.11.58 (default/linux/amd64/13.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-gentoo-2.1
KiB Mem:     3924172 total,   3145512 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Tue, 26 Mar 2013 12:30:02 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac accessibility acl amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam fbcon firefox flac fortran gdbm gif gpm hal iconv ipv6 ldap libnotify lirc mad mmx mng modules mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg openmp pam pango pcre pdf policykit ppds readline session smp spell sse sse2 startup-notification tcpd threads udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" 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" LINGUAS="de en" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Tue Mar 26, 2013 1:11 pm

Hello,

This package seems not to support 64 bits architecture. It will not work.
Kind regards,
Xavier Miller
Top
Post Reply

8 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

 

 

magic