Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516382 - dev-libs/nss-3.16.1 - nsinstall.c:1:0: error: CPU you selected does not support x86-64 instruction set
Summary: dev-libs/nss-3.16.1 - nsinstall.c:1:0: error: CPU you selected does not supp...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
Depends on:
Reported: 2014-07-04 17:38 UTC by Richard Cox
Modified: 2014-07-05 09:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

gzipped build log (build.log.gz,34.46 KB, application/gzip)
2014-07-04 18:04 UTC, Richard Cox

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Cox 2014-07-04 17:38:07 UTC
This started happening with the latest version of dev-libs/nss-3.16.1.  Always happens:

cd nsinstall; make libs
make[1]: Entering directory '/var/tmp/portage/dev-libs/nss-3.16.1/work/nss-3.16.1/nss-abi_x86_64.amd64/coreconf/nsinstall'
i686-pc-linux-gnu-gcc -o Linux3.15_x86_64_i686-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall.o -c -O2 -fno-strict-aliasing -fPIC -DLINUX2_1 -m64 -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I../../dist/Linux3.15_x86_64_i686-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/include -I../../dist/public/coreconf -I../../dist/private/coreconf -I../../dist/Linux3.15_x86_64_i686-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/include/dbm  nsinstall.c
nsinstall.c:1:0: error: CPU you selected does not support x86-64 instruction set
 /* This Source Code Form is subject to the terms of the Mozilla Public
../../coreconf/ recipe for target 'Linux3.15_x86_64_i686-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall.o' failed
make[1]: *** [Linux3.15_x86_64_i686-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall.o]
Comment 1 Richard Cox 2014-07-04 17:42:02 UTC
Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.15.3-gentoo x86_64)
System uname: Linux-3.15.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:    32852208 total,  17164900 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Fri, 04 Jul 2014 04:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.2.5-r4, 3.3.5, 3.4.1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo perl-experimental multimedia sunrise nbigaouette mrueg java gamerlay sage-on-gentoo local
Installed sets: @local-kde-4.8, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/lib64/udev/rules.d/97-bluetooth-hid2hci.rules /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS=" --quiet-build=n --with-bdeps=y --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 -l4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental /var/lib/layman/multimedia /var/lib/layman/sunrise /var/lib/layman/nbigaouette /var/lib/layman/mrueg /var/lib/layman/java /var/lib/layman/gamerlay /var/lib/layman/sage-on-gentoo /usr/local/portage"
USE="X a52 aac aacplus acl acpi alsa amd64 aspell avx berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative doc dri dts dvd dvdnav dvdr emboss encode eselect exif fam firefox flac fortran gdbm gif gpm gstreamer gtk htmlhandbook hunspell iconv icu ipv6 jack java jpeg kde kipi lcms ldap libnotify libwww lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin ogg openexr opengl openmp openrc oss pam pango pcre pdf perl phonon plasma png policykit ppds python qt3support qt4 rdesktop readline samba sdl semantic-desktop session spell spl sse sse2 sse3 ssl ssse3 startup-notification svg tcpd theora threads tiff tools truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau vlc vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="32 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" 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="serial" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.7 3.2 3.3"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-04 17:43:06 UTC
Please attach the entire build log to this bug report.
Comment 3 Richard Cox 2014-07-04 17:46:37 UTC
Getting a bugzilla error message saying page does not exist when trying to attach the build log.
Comment 4 Richard Cox 2014-07-04 18:04:44 UTC
Created attachment 380196 [details]
gzipped build log
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-04 19:06:22 UTC
So unless something has gone horribly wrong with the build environment (which is possible), it looks the toolchain thinks you are actually trying to cross-compile multilib-amd64 from an i686 host toolchain.

I assume that this is not the case, but could you confirm if you have any sort of i686 toolchain installed at all (probably via crossdev)?
Comment 6 Richard Cox 2014-07-04 19:17:21 UTC
Actually, I do have the i686 crossdev toolchain installed.
Comment 7 Richard Cox 2014-07-04 19:19:55 UTC
[vespasian64:/tmp]# gcc-config -l
 [1] avr-4.7.2 *

 [2] i686-pc-linux-gnu-4.8.3 *

 [3] x86_64-pc-linux-gnu-4.6.4
 [4] x86_64-pc-linux-gnu-4.7.4
 [5] x86_64-pc-linux-gnu-4.8.3 *
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-04 19:49:42 UTC

Ok, there are a number of known issues between having an i686 crossdev installed on amd64, and amd64-multilib.  This issue isn't something I can fix from within the ebuild.

The recommendation is to unmerge your i686 crossdev packages, and instead emerge the new package 'sys-devel/multilib-gcc-wrappers' , which provides i686 wrappers to the native toolchain (and x32 ones too).
Comment 9 Richard Cox 2014-07-04 22:08:35 UTC
OK, makes sense.  How about the AVR crossdev stuff?  I do arduino programming, so I hope that isn't a problem.
Comment 10 Richard Cox 2014-07-04 22:24:13 UTC
Just to confirm, unmerging the i686 crossdev toolchain was enough to fix the problem.  I appreciate the speedy responses :-)
Comment 11 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-05 09:22:28 UTC
(In reply to Richard Cox from comment #9)
> OK, makes sense.  How about the AVR crossdev stuff?  I do arduino
> programming, so I hope that isn't a problem.

I havne't done anything related to AVR, but I did test the ebuild on a ppc crossdev and it showed no issues (the main arch is amd64)