Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520728 - media-gfx/gmic- fails to build with --as-needed
Summary: media-gfx/gmic- fails to build with --as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2014-08-23 22:21 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2017-08-18 02:22 UTC (History)
3 users (show)

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

media-gfx:gmic- (media-gfx:gmic-,39.30 KB, text/html)
2014-12-04 00:14 UTC, Francesco Riosa

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2014-08-23 22:21:55 UTC
Portage 2.2.11-r1 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.7.4-asneeded, glibc-2.19-r1, 3.15.5-hardened-r2 x86_64)
System uname: Linux-3.15.5-hardened-r2-x86_64-AMD_Opteron-TM-_Processor_6272-with-gentoo-2.2
KiB Mem:    65962672 total,  38878272 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 06 Aug 2014 18:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.2, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.4, 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.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches"
CONFIG_PROTECT="/etc /etc/entropy /opt/openjms/config /usr/share/bufrtables /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb /var/lib/neatx/home /var/spool/torque /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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"
CXXFLAGS="-O2 -pipe -ggdb -march=native -ftracer -frecord-gcc-switches"
FCFLAGS="-O2 -pipe -ggdb -march=native -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -ggdb -march=native -frecord-gcc-switches"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="3dnow 3dnowex acl amd64 berkdb blas bzip2 cli cracklib crypt cxx doc dri emacs ffmpeg fortran freetype iconv icu intl introspection ipv6 lapack mmx modules multilib ncurses nls nptl openmp pam pax_kernel pcre pdf plasma qt3support readline semantic-desktop session snmp sse sse2 sse3 sse4 ssl ssse3 tcmalloc tcpd truetype udev unicode vhosts xft 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="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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19" USERLAND="GNU" 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"
Comment 1 Francesco Riosa 2014-12-04 00:12:50 UTC

 * Applying gmic- ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/gmic- ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/gmic- ...
make -j12 -s AR=x86_64-pc-linux-gnu-ar CC=x86_64-pc-linux-gnu-g++ 'CFLAGS=-O2 -march=westmere -pipe -mno-3dnow -mno-sse4a -mno-movbe -mno-sha -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=12288 -mtune=westmere -mno-bmi2 -mno-avx2 -mno-lzcnt -mrdrnd --param=l1-cache-size=32 -mno-rtm -mno-hle -mno-rdseed -mno-prfchw -mno-adx -fvisibility-inlines-hidden -fabi-version=6 -ffor-scope -fstrict-enums -fuse-cxa-atexit -ffat-lto-objects' LIB=lib64 OPT_CFLAGS= DEBUG_CFLAGS= linux lib
/var/tmp/portage/media-gfx/gmic- In function `main':
gmic_use_lib.cpp:(.text+0x7a): undefined reference to `cimg_library::CImgList<float>::assign(unsigned int)'
gmic_use_lib.cpp:(.text+0xc8): undefined reference to `cimg_library::CImg<float>::assign(unsigned int, unsigned int, unsigned int, unsigned int)'
gmic_use_lib.cpp:(.text+0x56c): undefined reference to `cimg_library::CImgList<float>::assign(unsigned int)'
gmic_use_lib.cpp:(.text+0x5b2): undefined reference to `cimg_library::CImgList<char>::~CImgList()'
gmic_use_lib.cpp:(.text+0x5c1): undefined reference to `cimg_library::CImgList<float>::~CImgList()'
gmic_use_lib.cpp:(.text+0x6cd): undefined reference to `cimg_library::CImgList<char>::~CImgList()'
gmic_use_lib.cpp:(.text+0x6e1): undefined reference to `cimg_library::CImgList<float>::~CImgList()'
/var/tmp/portage/media-gfx/gmic- In function `gmic& gmic::run<float>(char const*, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, float*, bool*)':
gmic_use_lib.cpp:(.text._ZN4gmic3runIfEERS_PKcRN12cimg_library8CImgListIT_EERNS5_IcEEPfPb[_ZN4gmic3runIfEERS_PKcRN12cimg_library8CImgListIT_EERNS5_IcEEPfPb]+0xa3): undefined reference to `cimg_library::CImgList<char>::~CImgList()'
gmic_use_lib.cpp:(.text._ZN4gmic3runIfEERS_PKcRN12cimg_library8CImgListIT_EERNS5_IcEEPfPb[_ZN4gmic3runIfEERS_PKcRN12cimg_library8CImgListIT_EERNS5_IcEEPfPb]+0xc6): undefined reference to `cimg_library::CImgList<char>::~CImgList()'
collect2: error: ld returned 1 exit status
Makefile:394: recipe for target 'gmic_lib' failed
make[1]: *** [gmic_lib] Error 1
Makefile:350: recipe for target 'lib' failed
make: *** [lib] Error 2
make: *** Waiting for unfinished jobs....
 * ERROR: media-gfx/gmic- failed (compile phase):
 *   emake failed
 * If you need support, post the output of `emerge --info '=media-gfx/gmic-'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/gmic-'`.
 * The complete build log is located at '/var/log/portage/media-gfx:gmic-'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/gmic-'.
 * Working directory: '/var/tmp/portage/media-gfx/gmic-'
 * S: '/var/tmp/portage/media-gfx/gmic-'
cp: cannot stat ‘/var/tmp/portage/media-gfx/gmic-’: No such file or directory

 * Messages for package media-gfx/gmic-

 * ERROR: media-gfx/gmic- failed (compile phase):
 *   emake failed
 * If you need support, post the output of `emerge --info '=media-gfx/gmic-'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/gmic-'`.
 * The complete build log is located at '/var/log/portage/media-gfx:gmic-'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/gmic-'.
 * Working directory: '/var/tmp/portage/media-gfx/gmic-'
 * S: '/var/tmp/portage/media-gfx/gmic-'
Comment 2 Francesco Riosa 2014-12-04 00:14:05 UTC
Created attachment 390892 [details]

external link from diego tinderbox
Comment 3 Tim Harder gentoo-dev 2014-12-04 15:58:46 UTC
(In reply to Francesco Riosa from comment #2)
> Created attachment 390892 [details]
> media-gfx:gmic-
> external link from diego tinderbox

Makefile patch fixes welcome, I haven't been able to ever reproduce this but I'd probably have to track down that as-needed gcc profile forcing method to do so.
Comment 4 Michael Orlitzky gentoo-dev 2017-03-22 07:21:12 UTC
The latest media-gfx/gmic-1.7.9 works for me, even with the modified specs file. The problem was likely fixed when gmic switched to cmake. Resolved? Or somebody want to confirm?
Comment 5 Tim Harder gentoo-dev 2017-08-18 02:22:27 UTC
Closing this since I still can't reproduce it either with new versions.