Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282181 - imagemagick failed to compile on hardened with recent cpu
Summary: imagemagick failed to compile on hardened with recent cpu
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-21 09:36 UTC by loux thefuture
Modified: 2009-08-21 09:42 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 loux thefuture 2009-08-21 09:36:20 UTC
on a hardened system with gcc-3.4.6, imagemagick try to add his own -march options (like core2) which failed the compilation !

Reproducible: Always

Steps to Reproduce:
1. use an hardened system with modern cpu (core2, ...)
2. emerge imagemagick
3. error

Actual Results:  
x86_64-pc-linux-gnu-gcc -std=gnu99 -c  -I../ -I.. -I/usr/include/freetype2 -I/usr/include/libxml2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -pipe -march=nocona -Wall -W -pthread -O2 -pipe -march=core2   -DVERSION=\"6.5.2\" -DXS_VERSION=\"6.5.2\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.c:1: error: bad value (core2) for -march= switch


Expected Results:  
to emerge imagemagick
Comment 1 loux thefuture 2009-08-21 09:37:21 UTC
emerge --info :

Portage 2.1.6.13 (hardened/linux/amd64/2008.0, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 21 Aug 2009 00:45:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3, 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/"
LDFLAGS="-Wl,-O1"
LINGUAS="en fr"
MAKEOPTS="-j4"
PKGDIR="/home/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip acl amd64 apache2 berkdb bzip2 calendar cli cracklib crypt ctype cups curl doc dri encode exif expat faac ffmpeg filter ftp gd gdbm gmp gnutls gpm gs hardened iconv imagemagick imap isdnlog jadetex jpeg jpeg2k justify kerberos latex lzma lzo mad md5sum mhash mmx mp3 mudflap multilib mysql mysqli nas ncurses netpbm nls nptl nptlonly ogg openmp pam pcre perl php pic pkcs11 png ppds pppd python razor readline reflection rrdcgi samba sasl sensord session simplexml sockets spamassassin spl sql sqlite sqlite3 sse sse2 ssl ssse3 svg sysfs syslog tcpd theora threads tiff tokenizer tools truetype unicode unzip urandom vhosts vorbis winbind wmf x264 xml xmlrpc xsl xvid zip zlib" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LINGUAS="en fr" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 loux thefuture 2009-08-21 09:42:28 UTC
Sorry, my fault,
i was using gcc-4 on hardened so librairy where compiling with core2 so /usr/lib64/pkgconfig/*.pc files keep trace of old core2, so imagemagick was using them (i guess)
no bugs ! my fault ! sorry
Comment 3 loux thefuture 2009-08-21 09:42:50 UTC
(In reply to comment #2)
> Sorry, my fault,
> i was using gcc-4 on hardened so librairy where compiling with core2 so
> /usr/lib64/pkgconfig/*.pc files keep trace of old core2, so imagemagick was
> using them (i guess)
> no bugs ! my fault ! sorry
>