Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662916 - media-libs/libpng does not create libpng --> libpng16 symlink causing (at least) opencv to fail emerge
Summary: media-libs/libpng does not create libpng --> libpng16 symlink causing (at lea...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-06 00:16 UTC by Bearcat M. Şándor
Modified: 2018-08-22 17:10 UTC (History)
3 users (show)

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


Attachments
Build log of media-libs/opencv-3.3.0-r5 (build.log,31.70 KB, text/x-log)
2018-08-07 23:40 UTC, Bearcat M. Şándor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bearcat M. Şándor 2018-08-06 00:16:38 UTC
When attempting to emerge media-libs/opencv, the compilation halts with 'fatal error: /usr/include/libpng/png.h: No such file or directory'

media-libs/libpng installs /usr/include/libpng16/ but does not create a /usr/include/libpng symlink to it

Reproducible: Always

Steps to Reproduce:
1.emerge -av opencv
2.
3.
Actual Results:  
Compile fails

Expected Results:  
Compile succeeds

if a symlink is created via 'ln -s libpng16 libpng' within /usr/include the compilation of opencv gets further. It still fails for me, but gets further at least.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-08-06 00:50:22 UTC
Please show evidence that this is necessary as it works for me without a symlink
Comment 2 Jonas Stein gentoo-dev 2018-08-06 15:19:41 UTC
Perhaps we can see something in the logs.
Please recompile and *attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 3 Bearcat M. Şándor 2018-08-07 23:37:48 UTC
emerge --info
-------------------------------
Portage 2.3.44 (python 3.6.6-final-0, default/linux/amd64/17.1/systemd, gcc-7.3.0, glibc-2.27-r6, 4.16.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.3-gentoo-x86_64-AMD_FX-tm-6300_Six-Core_Processor-with-gentoo-2.6
KiB Mem:    32850972 total,   9750480 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 07 Aug 2018 19:24:29 +0000
Head commit of repository gentoo: 6db1c8a6f82ba7b6bd2b8eda8c1cad79abe807c0

Timestamp of repository audio-overlay: Tue, 07 Aug 2018 17:03:54 +0000
Head commit of repository audio-overlay: aac5722c141d8f37598b3c1b0a99f9889ba7528b

sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.12.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

audio-overlay
    location: /var/db/repos/audio-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/audio-overlay.git
    masters: gentoo

moonwind
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.gossamerhost.com"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7 -l6"
PKGDIR="/usr/portage/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="/var/tmp"
USE="3dnow 3dnowext X \ a52 aac acl acpi alsa ambisonics amd64 aria2 berkdb bluetooth bluray btrfs bzip2 cacert cairo cdda cli colord corefonts cracklib crypt css cups curl cxx dbus declarative djvu dmenu dri drm dts dvb dvd dvdnav dvi egl exif fftw flac fluidsynth fortran fuse gdbm geo geoclue geolocation gif gimp git gles gnome-keyring gnupg google gpg gstaudio gstreamer gstvideo gtk gtk3 html http iconv icu idn imagemagick imap imlib ipv6 jack javascript jpeg jpeg2k json keyring ladspa lame latex lcms libass libnotify libsamplerate libtirpc libvisual llvm lm_sensors lua luajit lv2 lzma mac mad maildir midi mms modules mp3 mpeg multilib musicbrainz ncurses nls nptl offensive ogg openal opencl openexr opengl openmp opus pam pcre pdf png portaudio portmidi python qml qrcode qt5 raw readline realtime replaygain rubberband ruby rust savedconfig scanner sctp sdl seccomp sftp smime smp soap soundcloud sox soxr spell sqlite ssh ssl svg systemd tcmalloc tcpd theora threads tiff truetype udev udisks unicode usb user-session vaapi vdpau vorbis vpx vulkan wavpack wayland webp websockets x264 xattr xkb xml xmlrpc xps xz yaml zlib zsh-completion" 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" 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-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby23 ruby24 ruby25" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-libs/opencv-3.3.0-r5::gentoo was built with the following:
USE="contrib eigen gstreamer gtk jpeg jpeg2k opencl openexr opengl openmp png python qt5 threads tiff vaapi webp -contrib_cvv -contrib_dnn -contrib_hdf -contrib_sfm -contrib_xfeatures2d -cuda -debug -examples -ffmpeg -gdal -gflags -glog -gphoto2 -ieee1394 (-ipp) -java -lapack -libav -pch -tesseract -testprograms -v4l -vtk -xine" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Comment 4 Bearcat M. Şándor 2018-08-07 23:40:25 UTC
Created attachment 542744 [details]
Build log of media-libs/opencv-3.3.0-r5
Comment 5 Alexander Tsoy 2018-08-22 12:14:41 UTC
It seems the real issue here is a failed fma3 test:

CMake Error at cmake/OpenCVCompilerOptimizations.cmake:449 (message):
  Required baseline optimization is not supported: FMA3
  (CPU_BASELINE_REQUIRE=;SSE;SSE2;SSE3;SSSE3;SSE4_1;SSE4_2;POPCNT;AVX;FMA3)

Does opencv compile fine with USE="-cpu_flags_x86_fma3" ?
Comment 6 Alexander Tsoy 2018-08-22 12:22:07 UTC
Yeah, this looks like a dupe of bug #656638. Missing /usr/include/libpng is not an issue here.
Comment 7 Bearcat M. Şándor 2018-08-22 17:10:39 UTC
Thank you! That did it.