Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
firefox will not run : "Illegal instruction" message
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
walterbyrd
n00b
n00b


Joined: 26 Apr 2017
Posts: 48

PostPosted: Sun Mar 03, 2019 1:06 am    Post subject: firefox will not run : "Illegal instruction" messa Reply with quote

Code:

$ uname -a
Linux fir 4.19.24-calculate #1 SMP PREEMPT Thu Feb 21 14:59:17 UTC 2019 x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux


I think the firefox version is 65.0.1

I have used firefox on my system for over a year with no problem. After a recent update, I just get an "Illegal instruction" message when I try to run it.

I tried to reinstall and this:

Code:

# emerge firefox

Local copy of remote index is up-to-date and will be used.
Calculating dependencies... done!
>>> Running pre-merge checks for www-client/firefox-65.0.1
 * firefox-65.0.1.tbz2 MD5 SHA1 size ;-) ...                             [ ok ]
>>> Emerging binary (1 of 1) www-client/firefox-65.0.1::gentoo
>>> Installing (1 of 1) www-client/firefox-65.0.1::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 1.76, 0.87, 0.54
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21683
Location: here

PostPosted: Sun Mar 03, 2019 8:55 am    Post subject: Reply with quote

You can post emerge --info and emerge -pvq firefox output?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7059

PostPosted: Sun Mar 03, 2019 11:33 am    Post subject: Reply with quote

Code:
Emerging binary (1 of 1) www-client/firefox-65.0.1::gentoo


it doesn't compile firefox but use a binary you have, the issue now comes because that binary use opcode not support by your cpu.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21683
Location: here

PostPosted: Sun Mar 03, 2019 4:03 pm    Post subject: Reply with quote

krinn wrote:
Code:
Emerging binary (1 of 1) www-client/firefox-65.0.1::gentoo


it doesn't compile firefox but use a binary you have, the issue now comes because that binary use opcode not support by your cpu.

You right krinn, I have not seen this particular
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3029
Location: Illinois, USA

PostPosted: Sun Mar 03, 2019 5:11 pm    Post subject: Reply with quote

Can you post the output of "lscpu" ?
Back to top
View user's profile Send private message
walterbyrd
n00b
n00b


Joined: 26 Apr 2017
Posts: 48

PostPosted: Tue Mar 05, 2019 8:20 pm    Post subject: Reply with quote

Tony0945 wrote:
Can you post the output of "lscpu" ?

Code:
$ lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       48 bits physical, 48 bits virtual
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           AuthenticAMD
CPU family:          16
Model:               5
Model name:          AMD Athlon(tm) II X4 640 Processor
Stepping:            3
CPU MHz:             800.000
CPU max MHz:         3000.0000
CPU min MHz:         800.0000
BogoMIPS:            6026.42
Virtualization:      AMD-V
L1d cache:           64K
L1i cache:           64K
L2 cache:            512K
NUMA node0 CPU(s):   0-3
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 cpuid extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate vmmcall npt lbrv svm_lock nrip_save


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
walterbyrd
n00b
n00b


Joined: 26 Apr 2017
Posts: 48

PostPosted: Tue Mar 05, 2019 8:24 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You can post emerge --info and emerge -pvq firefox output?



Code:

# emerge info

Local copy of remote index is up-to-date and will be used.
Calculating dependencies... done!
>>> Emerging binary (1 of 1) app-vim/info-1.7-r2::gentoo
>>> Installing (1 of 1) app-vim/info-1.7-r2::gentoo
>>> Recording app-vim/info in "world" favorites file...
>>> Jobs: 1 of 1 complete                           Load avg: 1.02, 1.22, 1.46
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: dev-libs/jemalloc-3.6.0
 *  - /usr/lib64/libjemalloc.so.1
 *      used by /usr/lib/plexmediaserver/Plex DLNA Server (media-tv/plex-media-server-1.13.2-r1)
 *      used by /usr/lib/plexmediaserver/Plex Media Scanner (media-tv/plex-media-server-1.13.2-r1)
 *      used by /usr/lib/plexmediaserver/Plex Media Server (media-tv/plex-media-server-1.13.2-r1)
 *      used by /usr/lib/plexmediaserver/Plex Media Server Tests (media-tv/plex-media-server-1.13.2-r1)
Use emerge @preserved-rebuild to rebuild packages using these libraries
fir /home/walter #



Code:

# emerge -pvq firefox

Local copy of remote index is up-to-date and will be used.
[binary   R   ] www-client/firefox-65.0.2  USE="bindist dbus gmp-autoupdate hwaccel lto system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite system-webp -clang -custom-cflags -custom-optimization -debug -eme-free -geckodriver -hardened -jack (-neon) -pgo -pulseaudio -screenshot (-selinux) -startup-notification -test -wayland -wifi" CPU_FLAGS_X86="-avx2" L10N="bg bs cs da de es-AR es-ES es-MX et fi fr hr hu it kk lt lv nl pl pt-BR pt-PT ro ru sk sl sq sr sv uk -ach -af -an -ar -as -ast -az -bn-BD -bn-IN -br -ca -cak -cy -dsb -el -en-GB -en-ZA -eo -es-CL -eu -fa -ff -fy -ga -gd -gl -gn -gu -he -hi -hsb -hy -id -is -ja -ka -kab -km -kn -ko -lij -mai -mk -ml -mr -ms -nb -nn -or -pa -rm -si -son -ta -te -th -tr -uz -vi -xh -zh-CN -zh-TW"

[/code]
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3029
Location: Illinois, USA

PostPosted: Tue Mar 05, 2019 8:25 pm    Post subject: Reply with quote

I'm running an Athlon II X4 on one desktop and have no problem with firefox-bin. I don't compile firefox because it's huge.

Maybe the problem is your gcc version or CFLAGS?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21683
Location: here

PostPosted: Tue Mar 05, 2019 8:26 pm    Post subject: Reply with quote

Can be related to this bug?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13734

PostPosted: Wed Mar 06, 2019 1:50 am    Post subject: Reply with quote

walterbyrd: please post the output of emerge --info as fedeliallalinea requested earlier, not the result of installing the package app-vim/info.
Back to top
View user's profile Send private message
walterbyrd
n00b
n00b


Joined: 26 Apr 2017
Posts: 48

PostPosted: Fri Mar 08, 2019 11:51 pm    Post subject: Reply with quote

Hu wrote:
walterbyrd: please post the output of emerge --info as fedeliallalinea requested earlier, not the result of installing the package app-vim/info.


Somehow, the problem fixed itself. No idea how.

Here is the output of emerge --info

Code:

# emerge --info
Portage 2.3.51 (python 3.6.5-final-0, !../../var/lib/layman/distros/profiles/CLDM/amd64, gcc-8.2.0, glibc-2.27-r6, 4.19.24-calculate x86_64)
=================================================================
System uname: Linux-4.19.24-calculate-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-18.12
KiB Mem:    11785404 total,   8797040 free
KiB Swap:    6827732 total,   6827732 free
Timestamp of repository gentoo: Thu, 07 Mar 2019 07:00:01 +0000
Head commit of repository gentoo: 07cdf2be42936b3df11135e815d5a56b9cd60342

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
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/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::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.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/calculatelinux/gentoo.git
    priority: -1000

calculate
    location: /var/lib/layman/calculate
    sync-type: laymansync
    sync-uri: git://github.com/calculatelinux/calculate.git
    masters: gentoo
    priority: 50

distros
    location: /var/lib/layman/distros
    sync-type: laymansync
    sync-uri: git://github.com/calculatelinux/distros.git
    masters: calculate gentoo
    priority: 50

megacoffee
    location: /var/lib/layman/megacoffee
    sync-type: laymansync
    sync-uri: https://rhodecode.megacoffee.net/gentoo-overlay/main
    masters: gentoo
    priority: 50

Installed sets: @autodeps, @custom.cldm
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=x86-64 -pipe"
DISTDIR="/var/calculate/remote/distfiles"
EMERGE_DEFAULT_OPTS=" --binpkg-changed-deps=n --quiet-build=n --binpkg-respect-use=y --jobs=4"
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 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
INSTALL_MASK="/etc/systemd /lib*/systemd /usr/lib*/systemd /etc/shorewall/*[!.]???? /etc/shorewall/???? /etc/shorewall/??? /etc/shorewall6/*[!.]???? /etc/shorewall6/???? /etc/shorewall6/???"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/calculate/packages/x86_64"
PORTAGE_BINHOST="http://www.gtlib.gatech.edu/pub/calculate/grp/x86_64"
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/calculate/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi aes alsa amd64 amr audiofile avi avx berkdb bittorrent bluetooth box bzip2 cairo caps cdda cddb cdparanoia cgroups chm cli consolekit cpudetection cracklib crypt css cue cups cxx dbus dftk djvu dri dv dvd dvdr dvdread ebook encode exif faac fexif ffmpeg flac flash fma3 fma4 foomaticdb fortran ftp gadu gd gdbm gif gphoto2 gpm gstreamer gtk hunspell iconv id3tag idn ieee1394 imagemagick imap introspection ios ipod ipv6 irc jabber jpeg jpeg2k libnotify libtirpc libwww lm_sensors logrotate lz4 lzo mad matroska mikmod mimap mmx mmxext mp3 mpeg mplayer multilib musepack mysqli ncurses networkmanager nfs nls nptl nsplugin ogg oggvorbis openal opencore-amr openexr opengl openmp opus oscar padlock pam pcre pdf pgo png policykit popcnt ppp pulseaudio quicktime raw rdesktop readline real samba sasl scanner sdl seccomp semantic-desktop smp smtp speex spell srt sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 svg taglib tcpd tga theora threads tiff truetype udev udisks unicode upnp upower usb userlocales v4l v4l2 vaapi vcd vdpau vhosts vnc vorbis vpx wavpack webkit webp wimax win32codecs wmf wxwindows x264 x265 xanim xattr xcomposite xinerama xmp xop xv xvid xvmc 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" 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx sse sse2 * mmxext" 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" GRUB_PLATFORMS="efi-64 efi-32 pc" INPUT_DEVICES="libinput evdev mutouch synaptics keyboard mouse" KERNEL="linux" L10N="en be bg bs cs da de de-1901 es es-AR es-ES es-MX et fi fr fr-CA hr hu it kk lt lv nl pl pt pt-BR pt-PT ro ru sk sl sr sq sv uk" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" 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-7" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" THEMES="CLDM" USERLAND="GNU" VIDEO_CARDS="amdgpu i915 i965 intel nouveau nv nvidia r100 r200 r300 r600 radeon qxl radeonsi vesa virtualbox via" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 487
Location: Estonia

PostPosted: Sat Mar 09, 2019 4:10 pm    Post subject: Reply with quote

Probably unrelated, but I suggest to review your CFLAGS and CXXFLAGS (probably should be identical), as your current one doesn't optimize for your CPU, but the earliest amd64 available, which makes use of SSE2 at most, but you have other options, and it has very different instruction costs. If you only run the packages on that same machine, you can just go with "-O2 -march=native -pipe". Your CPU_FLAGS_X86 is weird too - what's that "*" doing in there near the end?

Edit: As pointed out this is Calculate (didn't notice the subforum this is in), so nevermind on that, probably not good to touch it then (though if compiling something instead of calculate binary packages, might still be useful for those, but I don't know how binary packages interact with it - that is, if they still get used if the CFLAGS differ)
_________________
GNOME team lead; GStreamer; MIPS/ARM64


Last edited by Leio on Sat Mar 09, 2019 6:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43009
Location: 56N 3W

PostPosted: Sat Mar 09, 2019 5:23 pm    Post subject: Reply with quote

This is a Calculate Linux install, not Gentoo.

Code:
$ uname -a
Linux fir 4.19.24-calculate

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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