Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914628 - media-video/transcode-1.1.7-r6 ERROR: option '--enable-imagemagick' failed: cannot compile MagickWand/MagickWand.h
Summary: media-video/transcode-1.1.7-r6 ERROR: option '--enable-imagemagick' failed: c...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 861311
Blocks:
  Show dependency tree
 
Reported: 2023-09-25 05:37 UTC by email200202
Modified: 2023-12-16 07:52 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,23.03 KB, text/x-log)
2023-09-25 05:38 UTC, email200202
Details
emerge -pqv '=media-video/transcode-1.1.7-r6::gentoo' (file_914628.txt,300 bytes, text/plain)
2023-09-25 05:39 UTC, email200202
Details
emerge --info '=media-video/transcode-1.1.7-r6::gentoo' (file_914628.txt,7.83 KB, text/plain)
2023-09-25 05:40 UTC, email200202
Details
config.log (config.log,112.02 KB, text/x-log)
2023-09-27 08:28 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2023-09-25 05:37:49 UTC
media-video/transcode-1.1.7-r6 failed to emerge with the message:

ERROR: option '--enable-imagemagick' failed: cannot compile MagickWand/MagickWand.h
MagickWand/MagickWand.h can be found in the following packages:
  MagickWand  http://www.imagemagick.org/


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -auvN world

Actual Results:  
failed

Expected Results:  
Not to fail
Comment 1 email200202 2023-09-25 05:38:25 UTC
Created attachment 871266 [details]
build.log
Comment 2 email200202 2023-09-25 05:39:30 UTC
Created attachment 871267 [details]
emerge -pqv '=media-video/transcode-1.1.7-r6::gentoo'
Comment 3 email200202 2023-09-25 05:40:51 UTC
Created attachment 871268 [details]
emerge --info '=media-video/transcode-1.1.7-r6::gentoo'
Comment 4 email200202 2023-09-25 05:48:16 UTC
Comment on attachment 871268 [details]
emerge --info '=media-video/transcode-1.1.7-r6::gentoo'

># emerge --info '=media-video/transcode-1.1.7-r6::gentoo'
>Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.38-r2, 6.1.55-gentoo x86_64)
>=================================================================
>                         System Settings
>=================================================================
>System uname: Linux-6.1.55-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-glibc2.38
>KiB Mem:    36962512 total,  23374848 free
>KiB Swap:    4194300 total,   4194300 free
>Timestamp of repository gentoo: Mon, 25 Sep 2023 01:30:01 +0000
>Head commit of repository gentoo: 46b0fc511e098676b8069a6012f1a81b57d5ff5c
>sh bash 5.2_p15-r6
>ld GNU ld (Gentoo 2.41 p2) 2.41.0
>distcc 3.4 x86_64-pc-linux-gnu [disabled]
>ccache version 4.8.3 [disabled]
>app-misc/pax-utils:        1.3.7::gentoo
>app-shells/bash:           5.2_p15-r6::gentoo
>dev-java/java-config:      2.3.1-r1::gentoo
>dev-lang/perl:             5.38.0-r1::gentoo
>dev-lang/python:           3.11.5::gentoo, 3.12.0_rc3::gentoo
>dev-lang/rust-bin:         1.72.0::gentoo
>dev-util/ccache:           4.8.3::gentoo
>dev-util/cmake:            3.27.6-r1::gentoo
>dev-util/meson:            1.2.1-r2::gentoo
>sys-apps/baselayout:       2.14::gentoo
>sys-apps/openrc:           0.50::gentoo
>sys-apps/sandbox:          2.38::gentoo
>sys-devel/autoconf:        2.71-r7::gentoo
>sys-devel/automake:        1.16.5-r1::gentoo
>sys-devel/binutils:        2.41-r1::gentoo
>sys-devel/binutils-config: 5.5::gentoo
>sys-devel/clang:           16.0.6::gentoo, 17.0.1::gentoo
>sys-devel/gcc:             13.2.1_p20230826::gentoo
>sys-devel/gcc-config:      2.11::gentoo
>sys-devel/libtool:         2.4.7-r1::gentoo
>sys-devel/llvm:            16.0.6::gentoo, 17.0.1::gentoo
>sys-devel/make:            4.4.1-r1::gentoo
>sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
>sys-libs/glibc:            2.38-r2::gentoo
>Repositories:
>
>gentoo
>    location: /usr/portage
>    sync-type: rsync
>    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>    priority: -1000
>    volatile: True
>    sync-rsync-verify-max-age: 24
>    sync-rsync-verify-metamanifest: yes
>    sync-rsync-verify-jobs: 2
>    sync-rsync-extra-opts: -4
>
>local
>    location: /usr/local/portage
>    masters: gentoo
>    priority: 0
>    volatile: True
>
>ACCEPT_KEYWORDS="amd64 ~amd64"
>ACCEPT_LICENSE="* PUEL @EULA"
>CBUILD="x86_64-pc-linux-gnu"
>CFLAGS="-O2 -pipe -march=native -mtune=native"
>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-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/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"
>CPPFLAGS="-O2 -pipe -march=native -mtune=native"
>CXXFLAGS="-O2 -pipe -march=native -mtune=native"
>DISTDIR="/usr/portage/distfiles"
>EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y --verbose-conflicts --buildpkg --buildpkg-exclude='virtual/* sys-kernel/*-sources */*-bin x11-drivers/*'"
>ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
>FCFLAGS="-O2 -pipe"
>FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
>FFLAGS="-O2 -pipe"
>GENTOO_MIRRORS="http://distfiles.gentoo.org"
>LANG="en_AU.UTF-8"
>LC_ALL="en_AU.UTF8"
>LDFLAGS="-Wl,-O1 -Wl,--as-needed"
>LEX="flex"
>MAKEOPTS="-j9 -s"
>PKGDIR="/usr/portage/packages"
>PORTAGE_CONFIGROOT="/"
>PORTAGE_RSYNC_EXTRA_OPTS="-4"
>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/tmp"
>SHELL="/bin/bash"
>USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds qml qt5 readline screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel intel8x0" 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 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ar" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="arm armeb x86_64 i386" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
>Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
>
>=================================================================
>                        Package Settings
>=================================================================
>
>media-video/transcode-1.1.7-r6::gentoo was built with the following:
>USE="X a52 aac alsa dv dvd iconv imagemagick jpeg lzo mjpeg mp3 mpeg ogg postproc quicktime sdl theora truetype userland_GNU v4l vorbis x264 xml xvid (-nuv) -oss (-pic)" ABI_X86="(64)" CPU_FLAGS_X86="mmx sse sse2 -3dnow"
Comment 5 iba68 2023-09-26 06:35:14 UTC
Confirmed here

Additional Infos related to this bug.
With ALL imagemagick 7.1.1.xx versions prior to  imagemagick-7.1.1.18  transcode-1.1.7-r6 builds fine
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-27 06:36:49 UTC
Please upload /var/tmp/portage/media-video/transcode-1.1.7-r6/work/transcode-1.1.7/config.log.
Comment 7 Attila Tóth 2023-09-27 07:39:07 UTC
The root of the problem here is, that the MagickWand.h is located in ImageMagick-7/MagickWand/ and not MagickWand/ ...
I'll try to come up with a patch
Comment 8 email200202 2023-09-27 08:28:54 UTC
Created attachment 871524 [details]
config.log
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-27 08:31:14 UTC
(In reply to Attila Tóth from comment #7)
> The root of the problem here is, that the MagickWand.h is located in
> ImageMagick-7/MagickWand/ and not MagickWand/ ...
> I'll try to come up with a patch

Are you sure? That's not consistent with the error in the just-posted config.log.

configure:30095: checking for MagickWand/MagickWand.h
configure:30095: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -mtune=native -O2 -pipe -march=native -mtune=native -I/usr/include/ImageMagick-7 conftest.c >&5
In file included from /usr/include/ImageMagick-7/MagickWand/MagickWand.h:29,
                 from conftest.c:134:
/usr/include/ImageMagick-7/MagickCore/magick-config.h:63:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" [-Wcpp]
   63 | # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
      |   ^~~~~~~
/usr/include/ImageMagick-7/MagickCore/magick-config.h:64:3: warning: #warning "this is an obsolete behavior please fix your makefile" [-Wcpp]
   64 | # warning "this is an obsolete behavior please fix your makefile"
      |   ^~~~~~~
/usr/include/ImageMagick-7/MagickCore/magick-config.h:86:3: error: #error "you should set MAGICKCORE_HDRI_ENABLE"
   86 | # error "you should set MAGICKCORE_HDRI_ENABLE"
      |   ^~~~~
/usr/include/ImageMagick-7/MagickCore/magick-config.h:121:3: error: #error "you should set MAGICKCORE_HDRI_ENABLE"
  121 | # error "you should set MAGICKCORE_HDRI_ENABLE"
      |   ^~~~~
configure:30095: $? = 1
configure: failed program was:
| /* confdefs.h */
[...]
Comment 10 Attila Tóth 2023-09-28 15:29:44 UTC
(In reply to Sam James from comment #9)
> (In reply to Attila Tóth from comment #7)
> > The root of the problem here is, that the MagickWand.h is located in
> > ImageMagick-7/MagickWand/ and not MagickWand/ ...
> > I'll try to come up with a patch
> 
> Are you sure? That's not consistent with the error in the just-posted
> config.log.

Your are right, I was probably wrong. Configure tries to figure out cflags using pkg-config. Pkg-config correctly gives the necessary flags, that the error messages miss. Some flags disappear during the processing of the flags. I didn't get to the end of it...
Comment 11 Attila Tóth 2023-10-02 13:55:11 UTC
Spoonfeeding missing flags in the Makefile and configure solves the issue. I failed so far to come up with a patch for configure.in(ac) and Makefile.in that retains the modifications.