Imagemagick 6.8.9.9 does produce processor specific code, i.e. configure determines the cpu and sets for example: -march=core2 so its not possible to build x86 generic code. I have to add the parameter --with-gcc-arch=generic to the configure command to get portable code for my gentoo based distribution. Reproducible: Always Steps to Reproduce: 1. emerge imagemack 2. 3. Actual Results: look at the log you will see CFLAGS=-march=... Expected Results: There should be a use flag which sets the parameter --with-gcc-arch=generic to the configure command
unreproducible here. Please add a build.log and reopen.
+*imagemagick-6.9.0.3 (04 Jan 2015) + + 04 Jan 2015; Justin Lecher <jlec@gentoo.org> -imagemagick-6.9.0.0.ebuild, + +imagemagick-6.9.0.3.ebuild, metadata.xml: + Version BUmp, fixes potential security problems, #534106; do not inject + march, #533634; install some extra_dist files +
I can't emerge =media-gfx/imagemagick-6.9.0.3 after adding --with-gcc-arch=no-automagic. After commenting this string at ebuild everything is ok. emerge --info media-gfx/imagemagick::gentoo Portage 2.2.15 (python 2.7.9-final-0, default/linux/x86/13.0/desktop/kde, gcc-4.8.4, glibc-2.19-r1, 3.17.7-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-3.17.7-gentoo-i686-Intel-R-_Core-TM-_Duo_CPU_T2350_@_1.86GHz-with-gentoo-2.2 KiB Mem: 3098424 total, 478892 free KiB Swap: 2104508 total, 1888320 free Timestamp of tree: Thu, 08 Jan 2015 05:30:01 +0000 sh bash 4.3_p33 ld GNU ld (Gentoo 2.24 p1.4) 2.24 ccache version 3.2.1 [enabled] app-shells/bash: 4.3_p33 dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.1-r4 dev-lang/python: 2.7.9-r1, 3.4.2 dev-util/ccache: 3.2.1-r1 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.6 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6-r1, 1.13.4, 1.14.1, 1.15 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.4 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.4 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo overlays-oschtan science rion flying Installed sets: @toolchain ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL skype-4.0.0.7-copyright dlj-1.1 AdobeFlash-11.x Oracle-BCLA-JavaSE" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CPPFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr" CXXFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mtune=generic -mfxsr" DISTDIR="/mnt/slag/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build --with-bdeps=y" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs buildpkg ccache collision-protect distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://linux.nsu.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/mnt/slag/gentoo-tree/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="/mnt/slag" PORTDIR="/mnt/slag/gentoo-tree" PORTDIR_OVERLAY="/mnt/slag/layman/oschtan /mnt/slag/layman/science /mnt/slag/layman/rion /mnt/slag/layman/flying" USE="7zip X a52 aac aalib acl acpi additions alsa amr apng archive aspell audiofile autotools bash-completion bazaar bdf bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cdrdao cdrom chardet cli consolekit cracklib curl cvs cxx dbus declarative dia divx djvu docbook dri dri3 drm dts dvd dvdnav dvdr dvi emboss emf enca encode exceptions exif expat extensions fam fbcondecor fbsplash ffmpeg firefox flac fontconfig fortran ftp fuse gallium gd gecko gif gimp git glamor glib glitz gmp gnutls gpm graphviz gstreamer gtkstyle harfbuzz hddtemp http iconv icu idn imagemagick imlib jabber jbig jemalloc jpeg jpeg2k kde kipi lame lasi lastfm latex lcms libass libffi libnotify libsamplerate libyaml lm_sensors lqr lxde lzma lzo mad matroska mercurial mime mms mmx mmxext mng modules mp2 mp3 mp4 mpeg mplayer musepack natspec ncurses nls nptl ogg openexr opengl openmp opus orc osmesa pam pango pcre pdf phonon plasma plotutils png policykit postscript ppds pulseaudio qt3support qt4 rar raw readline rtc rtf science sdl session shared-dricore shared-glapi smp sndfile speex spell sqlite sse sse2 ssl startup-notification stats subversion svg symlink syslog system-sqlite szip t1lib tcpd theora threads tiff truetype twolame udev udisks unicode upower usb utils uxa v4l valgrind vba vorbis vpx wav wavpack webdav webdav-neon webgl webp wifi wma wmf wps wxwidgets x264 x264-svn-encoder x265 x86 xattr xcb xcomposite xml xmp xorg xpm xps xscreensaver xv xvid zip zlib" ABI_X86="32" ALSA_CARDS="hda-intel" 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" CURL_SSL="gnutls" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915" 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" Unset: CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Created attachment 393454 [details] imagemagick build.log with --with-gcc-arch=no-automagic
Could you please attach the config.log? Your configure says, checking whether C compiler accepts -march=no-automagic... yes which is very weird.
Created attachment 393456 [details] config.log (In reply to Justin Lecher from comment #5) > Could you please attach the config.log? > > Your configure says, > > checking whether C compiler accepts -march=no-automagic... yes > > which is very weird.
interesting Following works gcc -march=no-automagic -march=core2 gcc -march=no-automagic -march=pentium-m Following breaks gcc -march=no-automagic -march=native We need to report this upstream
I expect that this bug is now obsolete. If you are still able to reproduce with latest version available in Gentoo repository please re-open the bug!
(In reply to Thomas Deutschmann from comment #8) > I expect that this bug is now obsolete. If you are still able to reproduce > with latest version available in Gentoo repository please re-open the bug! I can reproduce this with =media-gfx/imagemagick-6.9.10.71 and =sys-devel/gcc-9.2.0-r2. gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/9.2.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: /mnt/slag/portage/sys-devel/gcc-9.2.0-r2/work/gcc-9.2.0/configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/9.2.0 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/9.2.0/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/9.2.0 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/9.2.0/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/9.2.0/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/9.2.0/include/g++-v9 --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/9.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 9.2.0-r2 p3' --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-arch=i686 --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix gcc version 9.2.0 (Gentoo 9.2.0-r2 p3)
emerge --info Portage 2.3.79 (python 3.6.9-final-0, default/linux/x86/17.0/desktop/plasma, gcc-9.2.0, glibc-2.30-r2, 4.14.150-gentoo i686) ================================================================= System uname: Linux-4.14.150-gentoo-i686-Intel-R-_Core-TM-_Duo_CPU_T2350_@_1.86GHz-with-gentoo-2.6 KiB Mem: 3092748 total, 354396 free KiB Swap: 7347384 total, 6904732 free Timestamp of repository gentoo: Fri, 15 Nov 2019 11:46:06 +0000 Head commit of repository gentoo: de01157b0f355b9983158089ba1730c0368b94d4 Timestamp of repository flying: Wed, 18 Sep 2019 16:56:48 +0000 Timestamp of repository oschtan: Wed, 01 Aug 2018 15:39:26 +0000 Head commit of repository deadbeef-overlay: 53e0a41db6e7193bd83ef117f8055457f0990cb7 Head commit of repository jorgicio: 7e6d5440f8cf24f195d58918f604c5fd1d52e42c Head commit of repository kde: a1f0ca40ebbc7c0184a1c693bfd816f80789f8be Head commit of repository mozilla: ccd85d32248670e33fabc35a82e9c8df18c56ede Head commit of repository rion: 2573c7b3b9d30d066146cbf56eece6c6384e60cf Head commit of repository science: 689b5a8428e0ae09ada3a67201df18e10889789a Head commit of repository stuff: 84d73d82ebd1c7bcb001c474bd2d7578068046e4 sh bash 5.0_p11 ld GNU ld (Gentoo 2.33.1 p1) 2.33.1 ccache version 3.7.5 [enabled] app-shells/bash: 5.0_p11::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.0::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/ccache: 3.7.5::gentoo dev-util/cmake: 3.15.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r2::gentoo sys-devel/binutils: 2.32-r1::gentoo, 2.33.1::gentoo sys-devel/gcc: 7.4.0-r2::gentoo, 9.2.0-r2::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r2::gentoo Repositories: gentoo location: /mnt/slag/gentoo-tree sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 flying location: /mnt/slag/layman/flying masters: gentoo oschtan location: /mnt/slag/layman/oschtan sync-type: rsync sync-uri: rsync://oschtan.icu/oschtan/ masters: gentoo sync-rsync-extra-opts: deadbeef-overlay location: /mnt/slag/layman/deadbeef-overlay sync-type: git sync-uri: https://github.com/damex/deadbeef-overlay.git masters: gentoo priority: 50 jorgicio location: /mnt/slag/layman/jorgicio sync-type: git sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git masters: gentoo priority: 50 kde location: /mnt/slag/layman/kde sync-type: git sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 mozilla location: /mnt/slag/layman/mozilla sync-type: git sync-uri: git://anongit.gentoo.org/proj/mozilla.git masters: gentoo priority: 50 rion location: /mnt/slag/layman/rion sync-type: git sync-uri: https://github.com/rion-overlay/rion-overlay.git masters: gentoo priority: 50 science location: /mnt/slag/layman/science sync-type: git sync-uri: git://github.com/gentoo-science/sci.git masters: gentoo priority: 50 stuff location: /mnt/slag/layman/stuff sync-type: git sync-uri: https://github.com/istitov/stuff.git masters: gentoo priority: 50 Installed sets: @toolchain ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="@FREE" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mno-accumulate-outgoing-args -mno-sahf -msse3 -mtune=generic --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=2048 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CPPFLAGS="-march=pentium-m -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mno-accumulate-outgoing-args -mno-sahf -msse3 -mtune=generic --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=2048 -O2 -pipe" CXXFLAGS="-march=pentium-m -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mno-accumulate-outgoing-args -mno-sahf -msse3 -mtune=generic --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=2048 -O2 -pipe" DISTDIR="/mnt/slag/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build --with-bdeps=y" 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="-march=pentium-m -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mno-accumulate-outgoing-args -mno-sahf -msse3 -mtune=generic --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=2048 -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache collision-protect distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=pentium-m -mavx256-split-unaligned-load -mavx256-split-unaligned-store -mno-accumulate-outgoing-args -mno-sahf -msse3 -mtune=generic --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=2048 -O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru ru_RU" MAKEOPTS="-j3" PKGDIR="/mnt/slag/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="/mnt/slag" USE="X a52 aac acl acpi alsa amr apng archive aspell bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit curl cxx dbus declarative djvu dri dts dvd dvdnav dvdr emboss emf enca encode exceptions exif expat faac faad fam fbcondecor ffmpeg flac fontconfig fortran ftp fuse gif git glib gmp gnutls gpm harfbuzz http iconv icu idn imagemagick introspection jbig jemalloc jpeg jpeg2k kde kwallet lame latex lcms libass libnotify libsamplerate libtirpc lm-sensors lz4 lzma lzo mad man mime mng modemmanager mp3 mp4 mpeg mtp musepack natspec ncurses networkmanager nls nptl ogg opengl openmp orc osmesa pam pango pcre pdf phonon plasma plymouth png policykit postscript ppds pulseaudio qml qt5 rar readline rtc seccomp sndfile spell split-usr sqlite ssl startup-notification svg tcpd threads tiff truetype twolame udev udisks unicode upower usb utils vorbis wavpack webengine webp widgets wifi wmf wxwidgets x264 x86 xattr xcb xcomposite xml xmp xorg xv xvid zip zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" 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="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i915" 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, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 596304 [details] build.log of media-gfx/imagemagick-6.9.10.71 with gcc-9.2.0