Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522504 - media-gfx/imagemagick-6.8.9.7 - illegal instruction in ? at ?
Summary: media-gfx/imagemagick-6.8.9.7 - illegal instruction in ? at ?
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 12:29 UTC by Michael Brakemeier
Modified: 2014-09-13 15:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Brakemeier 2014-09-10 12:29:52 UTC
ImageMagick-6.8.9.7 uses some configure-time m4 heuristics (in m4/ax_gcc_archflag.m4) to determine the --march used for optimized compilation and adds - in my case - --march=corei7-avx to the CFLAGS. The heuristics is broken, my cpu is a G630T which does not support this instruction set. As a result all imagemagick-tools and all binaries linked to the libs are broken.

There are some similar reports and suggested solutions for e.g. ARCH dating back several month.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-10 12:53:05 UTC
Please post your `emerge --info media-gfx/imagemagick' output in a comment.
Comment 2 Michael Brakemeier 2014-09-10 15:04:33 UTC
Portage 2.2.12 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.15.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.10-gentoo-x86_64-Intel-R-_Pentium-R-_CPU_G630T_@_2.30GHz-with-gentoo-2.2
KiB Mem:     8136764 total,   6450436 free
KiB Swap:   67108816 total,  67108816 free
Timestamp of tree: Wed, 10 Sep 2014 09:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
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.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 vdr-devel brakemeier-de
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/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=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vdr-devel /usr/local/portage/brakemeier.de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aacs acl acpi alsa amd64 apache2 audiofile berkdb bzip2 cairo cdda cdparanoia clamav cli cmdsubmenu cracklib crypt css cups curl cvs cxx dbus ddepgentry device-mapper dga dri dv dvb dvbsetup dvlvidprefer ffmpeg fftw fontconfig fortran fuse g3dvl gdbm ggi gif gnome gtk gtk3 hbci iconv imagemagick imap inotify ipv6 jpeg lame latex libnotify libwww liemikuutio lirc lm_sensors lvm lzma lzo maildir mdadm mjpeg mmx mmxext modules multilib musepack ncurses network-cron nls nptl nvcontrol nvidia openmp oscar pam pcre png policykit projectx readline rtc samba sasl sdk session sna sndfile spell sqlite sse sse2 sse2i sse4_1 ssh ssl ssse3 subversion tcpd threads tiff timerinfo truetype udev udisks unicode v4l vaapi vcd vdpau vdr vnc wareagleicon xinetd xpm xrandr zip 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="access_compat actions alias asis auth_basic auth_digest authn_alias authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk cern_meta charset_lite cgi cgid dav dav_fs dav_lock dbd deflate dir dumpio env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat log_config log_forensic logio mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi rewrite reqtimeout setenvif slotmem_shm speling socache_shmcb status substitute unique_id userdir usertrack unixd version vhost_alias" APACHE2_MPMS="worker" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="ncurses imon text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel fbdev vesa nvidia" XFCE_PLUGINS="brightness clock trash" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-gfx/imagemagick-6.8.8.10-r1 was built with the following:
USE="X bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lqr lzma openexr openmp perl png postscript raw tiff truetype webp wmf zlib -autotrace -lcms -opencl -pango -q32 -q64 -q8 -static-libs -svg -test -xml" ABI_X86="64"
Comment 3 Michael Brakemeier 2014-09-10 15:05:54 UTC
downgraded to 6.8.8.10 by masking 6.8.9.7 without further changes
Comment 4 Michael Brakemeier 2014-09-13 15:20:55 UTC
Illegal instruction in each and every command immediatly after calling due to completely wrong -march determined by configure-script and given to gcc. Definitly no coredump required to analyse that...
This is an upstream bug. Thanks for your coop.