Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Error: Architecture mismatch on "fzero %f8" on T2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
ivo1st
n00b
n00b


Joined: 12 May 2019
Posts: 4

PostPosted: Sun May 12, 2019 12:27 am    Post subject: Error: Architecture mismatch on "fzero %f8" Reply with quote

Hello guys!

I have been using Gentoo Linux since 2006 and I had no problems (on x86 platforms) till now. I have recently installed Gentoo on SPARC Niagara T2 system (Netra T5220). Today I tried to reinstall sys-devel/make-4.2.1-r4 but it failed on this line:
Code:
sparc-unknown-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DINCLUDEDIR=\"/usr/include\" -DHAVE_CONFIG_H -I.      -O2 -mtune=niagara2 -mcpu=niagara2 -pipe -mv8plus -mvis -mvis2 -mpopc -c -o job.o job.c

with this error:
Code:
{standard input}: Assembler messages:
{standard input}:3311: Error: Architecture mismatch on "fzero %f8".
{standard input}:3311: (Requires v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v9.)
{standard input}:3479: Error: Architecture mismatch on "fzero %f8".
{standard input}:3479: (Requires v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v9.)
{standard input}:3540: Error: Architecture mismatch on "fzero %f8".
{standard input}:3540: (Requires v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is v9.)

This is my emerge --info output
Code:
Portage 2.3.62 (python 3.6.5-final-0, default/linux/sparc/17.0/desktop, gcc-8.2.0, glibc-2.28-r6, 4.19.27-gentoo-r1 sparc64)
=================================================================
System uname: Linux-4.19.27-gentoo-r1-sparc64-sun4v-with-gentoo-2.4.1
KiB Mem:    16445200 total,  13928640 free
KiB Swap:    1044216 total,   1044216 free
Timestamp of repository gentoo: Sat, 11 May 2019 23:00:01 +0000
Head commit of repository gentoo: 86c59d9418c80ac32357b605a8143210a2fdd095
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.2rc1 sparc-unknown-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo, 2.32-r1::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=niagara2 -mcpu=niagara2 -pipe -mv8plus -mvis -mvis2 -mpopc"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mtune=niagara2 -mcpu=niagara2 -pipe -mv8plus -mvis -mvis2 -mpopc"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -mtune=niagara2 -mcpu=niagara2 -pipe -mv8plus -mvis -mvis2 -mpopc"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -mtune=niagara2 -mcpu=niagara2 -pipe -mv8plus -mvis -mvis2 -mpopc"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j65"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa berkdb big-endian branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm iconv ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds readline sdl sparc spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga r128 radeon 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Other packages are compiling with no problems. I can also post the build.log if needed. I do not know where this error comes from, because I have never seen Assembler messages and errors. I hope some of you can give me some advice.


Last edited by ivo1st on Wed May 15, 2019 9:51 pm; edited 3 times in total
Back to top
View user's profile Send private message
ivo1st
n00b
n00b


Joined: 12 May 2019
Posts: 4

PostPosted: Sun May 12, 2019 6:56 pm    Post subject: Reply with quote

Same problem with dev-libs/libevdev-1.6.0.
Back to top
View user's profile Send private message
ivo1st
n00b
n00b


Joined: 12 May 2019
Posts: 4

PostPosted: Wed May 15, 2019 11:06 pm    Post subject: Reply with quote

After some help from Jeroen Roovers from SPARC developers, I understood that fzero is an instruction from 64 bit set. The problem can be fixed by:

1. Adding -m64 flag to CFLAGS. You need to switch to multilib, because Gentoo SPARC is 32 bit forced nomultilib, so 64 bit compiling is not possible.
See this https://wiki.gentoo.org/wiki/Sparc/Multilib
2. Removing -mv8plus or setting -mno-v8plus. (the easiest way for me).

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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