emerge media-gfx/imagemagick-6.6.5.6 fails in magick/composite.c Function TextureImage /bin/sh ./libtool --silent --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -pthread -fopenmp -O2 -pipe -Wall -pthread -c -o magick/magick_libMagickCore_la-compress.lo `test -f 'magick/compress.c' || echo './'`magick/compress.c magick/composite.c: In function 'TextureImage': magick/composite.c:2757: error: expected '#pragma omp' clause before 'omp_throttle' magick/composite.c:2805: error: expected '#pragma omp' clause before 'omp_throttle' make[1]: *** [magick/magick_libMagickCore_la-composite.lo] Erreur 1 Reproducible: Always Steps to Reproduce: 1.emerge -v imagemagick 2. 3. Actual Results: fails ; end of log /bin/sh ./libtool --silent --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -std=gnu99 -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/usr/include/freetype2 -pthread -fopenmp -O2 -pipe -Wall -pthread -c -o magick/magick_libMagickCore_la-constitute.lo `test -f 'magick/constitute.c' || echo './'`magick/constitute.c magick/composite.c: In function 'TextureImage': magick/composite.c:2757: error: expected '#pragma omp' clause before 'omp_throttle' magick/composite.c:2805: error: expected '#pragma omp' clause before 'omp_throttle' make[1]: *** [magick/magick_libMagickCore_la-composite.lo] Erreur 1 make[1]: *** Attente des tâches non terminées.... make[1]: quittant le répertoire « /var/tmp/portage/media-gfx/imagemagick-6.6.5.6/work/ImageMagick-6.6.5-6 » make: *** [all] Erreur 2 * ERROR: media-gfx/imagemagick-6.6.5.6 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2643: Called _eapi2_src_compile * ebuild.sh, line 646: Called die * The specific snippet of code: * emake || die "emake failed" * Expected Results: emerge should have succeeded emerge --info: viroX64 ~ # emerge --info =media-gfx/imagemagick-6.6.5.6 Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r3, 2.6.34-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-1.12.14 Timestamp of tree: Thu, 18 Nov 2010 09:45:02 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ " LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr en de" MAKEOPTS="-j3" PKGDIR="/usr/portage/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="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa amd64 audacious bash-completion berkdb bzip2 ccache cdr cli cracklib crypt cups cxx dbus dirac doc dri dvd emacs encode esd exif faac faad fat ffmpeg flac fontconfig fortran garmin gcj gdbm git gpm gstreamer hal iconv ipv6 jadetex java jpeg matroska mmx modules mp3 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python qt3support qt4 readline schroedinger session sse sse2 ssl startup-notification subversion svg sysfs tcpd theora tk truetype unicode vorbis x264 xattr xemacs xorg xscreensaver xulrunner xvid zlib" ALSA_CARDS="snd-intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="nvidia nv fbdev vesa vga" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ==== emerge -pqv viroX64 ~ # emerge -pqv =media-gfx/imagemagick-6.6.5.6 [ebuild U ] media-gfx/imagemagick-6.6.5.6 [6.6.2.5] USE="X bzip2 corefonts%* cxx fontconfig jpeg openmp perl png svg truetype zlib -autotrace -djvu -fftw -fpx -graphviz -gs -hdri -jbig -jpeg2k -lcms -lqr -openexr -q32 -q8 -raw -static-libs -tiff -wmf -xml" VIDEO_CARDS="nvidia" viroX64 ~ # ==== amd64, no gnome, no kde, xfce4
I have a similar system, but I don't have that problem. Seems like an issue with OpenMP. Have you compiled gcc with openmp support ?
(In reply to comment #1) > I have a similar system, but I don't have that problem. Seems like an issue > with OpenMP. Have you compiled gcc with openmp support ? > I think I have compiled gcc with openmp support.. viroX64 ~ # emerge -pqv gcc [ebuild R ] sys-devel/gcc-4.4.4-r2 USE="doc fortran gcj mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build (-fixed-point) -graphite -gtk (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" === But I have 2 releases of gcc installed and the current one was the old one .. viroX64 ~ # gcc-config -c x86_64-pc-linux-gnu-4.3.4 == viroX64 ~ # eix sys-devel/gcc [I] sys-devel/gcc Available versions: (2.95) *2.95.3-r9 ~*2.95.3-r10!s (3.1) *3.1.1-r2 (3.2) **3.2.2!s *3.2.3-r4 (3.3) ~3.3.6-r1!s (3.4) 3.4.6-r2!s (4.0) ~*4.0.4!s (4.1) 4.1.2!s (4.2) ~4.2.4-r1!s (4.3) ~4.3.3-r2!s 4.3.4!s ~4.3.5!s (4.4) ~4.4.2!s 4.4.3-r2!s ~4.4.3-r3!s ~4.4.4-r1!s 4.4.4-r2!s ~4.4.5!s (4.5) [M]~4.5.1!s {altivec bootstrap boundschecking build d doc fixed-point fortran gcj graphite gtk hardened ip28 ip32r10k java libffi lto mudflap multilib multislot n32 n64 nls nocxx nopie nossp nptl objc objc++ objc-gc openmp static test vanilla} Installed versions: 4.3.4(4.3)!s(10:55:34 10/02/2010)(doc fortran gcj mudflap multilib nls nptl openmp -altivec -bootstrap -build -fixed-point -gtk -hardened -libffi -multislot -n32 -n64 -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla) 4.4.4-r2(4.4)!s(13:42:36 21/10/2010)(doc fortran gcj mudflap multilib nls nptl openmp -altivec -bootstrap -build -fixed-point -graphite -gtk -hardened -libffi -multislot -n32 -n64 -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla) Homepage: http://gcc.gnu.org/ Description: The GNU Compiler Collection === So I have switched to new gcc : viroX64 ~ # gcc-config x86-64-pc-linux-gnu-4.4.4 and after that, the emerge of imagemagick-6.6.5.6 has succeeed. So you can close the bug; Ok for me. I change it to FIXED. Sorry for the disturbance; I have probably missed something when emerging gcc-4.4.4; Suggestion : add possibly a check or a warning in the ebuild .. Many thanks!
(In reply to comment #2) > (In reply to comment #1) > > I have a similar system, but I don't have that problem. Seems like an issue > > with OpenMP. Have you compiled gcc with openmp support ? > > > I think I have compiled gcc with openmp support.. > viroX64 ~ # emerge -pqv gcc > [ebuild R ] sys-devel/gcc-4.4.4-r2 USE="doc fortran gcj mudflap (multilib) > nls nptl openmp (-altivec) -bootstrap -build (-fixed-point) -graphite -gtk > (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc > -objc++ -objc-gc -test -vanilla" > === > But I have 2 releases of gcc installed and the current one was the old one .. > viroX64 ~ # gcc-config -c > x86_64-pc-linux-gnu-4.3.4 > == > viroX64 ~ # eix sys-devel/gcc > [I] sys-devel/gcc > Available versions: > (2.95) *2.95.3-r9 ~*2.95.3-r10!s > (3.1) *3.1.1-r2 > (3.2) **3.2.2!s *3.2.3-r4 > (3.3) ~3.3.6-r1!s > (3.4) 3.4.6-r2!s > (4.0) ~*4.0.4!s > (4.1) 4.1.2!s > (4.2) ~4.2.4-r1!s > (4.3) ~4.3.3-r2!s 4.3.4!s ~4.3.5!s > (4.4) ~4.4.2!s 4.4.3-r2!s ~4.4.3-r3!s ~4.4.4-r1!s 4.4.4-r2!s ~4.4.5!s > (4.5) [M]~4.5.1!s > {altivec bootstrap boundschecking build d doc fixed-point fortran gcj > graphite gtk hardened ip28 ip32r10k java libffi lto mudflap multilib multislot > n32 n64 nls nocxx nopie nossp nptl objc objc++ objc-gc openmp static test > vanilla} > Installed versions: 4.3.4(4.3)!s(10:55:34 10/02/2010)(doc fortran gcj > mudflap multilib nls nptl openmp -altivec -bootstrap -build -fixed-point -gtk > -hardened -libffi -multislot -n32 -n64 -nocxx -nopie -objc -objc++ -objc-gc > -test -vanilla) 4.4.4-r2(4.4)!s(13:42:36 21/10/2010)(doc fortran gcj mudflap > multilib nls nptl openmp -altivec -bootstrap -build -fixed-point -graphite -gtk > -hardened -libffi -multislot -n32 -n64 -nocxx -nopie -nossp -objc -objc++ > -objc-gc -test -vanilla) > Homepage: http://gcc.gnu.org/ > Description: The GNU Compiler Collection > === > > So I have switched to new gcc : > viroX64 ~ # gcc-config x86-64-pc-linux-gnu-4.4.4 > > and after that, the emerge of imagemagick-6.6.5.6 has succeeed. > > So you can close the bug; Ok for me. I change it to FIXED. > Sorry for the disturbance; I have probably missed something when emerging > gcc-4.4.4; > Suggestion : add possibly a check or a warning in the ebuild .. > Many thanks! > After some thinking and checking, I suspect that it could be that imagemagick needs OpenMP Version 3.0 then >=gcc-4.4, while gcc-3.4 provided only Version 2.5 of OpenMP. I had probably a similar issue with avidemux-2.5.4-r1 which now compiles with gcc-4.4.4 (but failed with gcc-3.4) Then it might be that gentoo could need 2 use flags openmp and openmp3, or that ebuild could need to check for >gcc-4.4 for recent versions of some (a lot?) of packages .; Of course, for the moment, I have no issues on my system, and I might be wrong.. Regards