Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525862 - =media-libs/freeimage-3.15.4 - Source/FreeImage/PluginRAW.cpp:22:20: No such file or directory
Summary: =media-libs/freeimage-3.15.4 - Source/FreeImage/PluginRAW.cpp:22:20: No such ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-19 12:28 UTC by Dmitriy Baranov
Modified: 2014-11-29 18:40 UTC (History)
1 user (show)

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


Attachments
emerge output (foo,17.79 KB, text/plain)
2014-10-19 14:45 UTC, Dmitriy Baranov
Details
build.log (build.log,17.14 KB, text/plain)
2014-10-19 19:55 UTC, Dmitriy Baranov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Baranov 2014-10-19 12:28:35 UTC
Source/FreeImage/PluginRAW.cpp:22:20: fatal: libraw.h: No such file or directory
 #include <libraw.h>
                    ^


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-19 14:12:35 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Dmitriy Baranov 2014-10-19 14:27:08 UTC
$ emerge --info
Portage 2.2.14_rc1 (python 3.3.5-final-0, !/mnt/storage/overlays/0x1u1z/profiles/0x1u1z/desktop, gcc-4.9.1, glibc-2.19-r1, 3.16.2-gentoo x86_64)
=================================================================
System uname: Linux-3.16.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-4690_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    16386112 total,   2044576 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 18 Oct 2014 15:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.20.1
dev-lang/python:          2.7.8, 3.3.5-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: 0x1u1z gentoo local qt steam-overlay
Installed sets: @0x1u1z
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/mnt/routine/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/mnt/routine/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/routine/portage"
PORTDIR_OVERLAY="/mnt/storage/overlays/0x1u1z /mnt/routine/portage /mnt/routine/overlays/local /mnt/routine/overlays/qt /mnt/routine/overlays/steam"
USE="X a52 aac aacplus aacs acl aften aio alsa amd64 amr avx berkdb bluray bzip2 c++0x cairo cli consolekit corefonts cracklib crypt cxx dbus declarative djvu dri dts dv dvb dvd enca exif faac faad ffmpeg flac fontconfig g3dvl gd gdbm gif gmp gnutls gpg gstreamer gudev hdri highlight hwdb iconv icu idn ipv6 jpeg jpeg2k kde kdrive keymap kipi lame lcms libass lzma lzo mad matroska minizip mmx mmxext mng modplug modules mp3 mpeg mtp multilib multimedia natspec ncurses network nls nptl ogg openal openexr opengl openmp openssl opus pam pango pcre pdf plasma png policykit postgres qt3support qt4 quicktime raw readline rtmp session sndfile speex spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 svg taglib tcpd theora threads tiff tray truetype udev udisks unicode usb v4l vaapi vcd vdpau vorbis vpx webdav webdav-serf webp x264 xa xcb xinerama xml xmlpatterns xmp xorg xv xvid zlib" ABI_X86="64 32" 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" FOO2ZJS_DEVICES="hp1020" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 3 Dmitriy Baranov 2014-10-19 14:28:02 UTC
build successfuly with "#include <libraw/libraw.h>" in files/freeimage-3.15.4-unbundling.patch
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-19 14:30:47 UTC
(In reply to Jeroen Roovers from comment #1)
> 2) Please attach the entire build log to this bug report.
Comment 5 Dmitriy Baranov 2014-10-19 14:45:08 UTC
Created attachment 386950 [details]
emerge output
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-19 17:14:30 UTC
Comment on attachment 386950 [details]
emerge output

That's not the build log. That's emerge output. This is the build log:


 * The complete build log is located at '/var/tmp/portage/media-libs/freeimage-3.15.4/temp/build.log'.
Comment 7 Dmitriy Baranov 2014-10-19 19:55:10 UTC
Created attachment 386978 [details]
build.log

Okay okay. Just fix in tree please.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2014-10-21 06:57:28 UTC
I wasn't able to reproduce this failure.
Comment 9 i.Dark_Templar 2014-11-24 13:00:23 UTC
I hit same issue during rebuild of freeimage.

$ emerge --info libraw freeimage
Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo.45 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.16.5-gentoo.45-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.2
KiB Mem:     4050464 total,   2043852 free
KiB Swap:    4192252 total,   3869576 free
Timestamp of tree: Mon, 24 Nov 2014 00:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.5
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
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 rion sunrise local-overlay
Installed sets: @fortune, @kde, @lxqt, @pidgin, @psi
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y --autounmask=n --complete-graph=y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="binpkg-logs distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.bloodhost.ru/ http://mirror.mdfnet.se/gentoo ftp://mirror.mdfnet.se/gentoo http://gentoo.inode.at/ http://ftp.df.lth.se/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK=" /etc/systemd /lib/systemd /lib32/systemd /lib64/systemd /lib/tmpfiles.d /lib32/tmpfiles.d /lib64/tmpfiles.d /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /usr/lib/tmpfiles.d /usr/lib32/tmpfiles.d /usr/lib64/tmpfiles.d "
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rion /var/lib/layman/sunrise /usr/local/portage"
SYNC=""
USE="X a52 aac acl acpi alsa amd64 amr apm ares bash-completion bidi bluetooth branding bzip2 c++0x cairo caps cdda cdio cdr cleartype cli consolekit cracklib crypt cue cups custom-cflags custom-optimization cxx dbus dga dirac dri dts dvd dvdr emboss encode exif faad fam fbcon ffmpeg firefox flac fontconfig fontforge freetype gcrypt gif glamor gme gmp gnutls gpm gtk iconv icu idn imlib inotify ipv6 jadetex jpeg kde lcms libass libdvdcss lzma lzo mad matroska midi mmap mmx mng modules mp3 mp4 mpeg mpi multilib ncurses network nfs nls nptl offensive ogg openal opengl openmp pango pch pcmcia pcntl pcre pdf pic plasma pm-utils png policykit posix postproc ppds private-headers projectm qt3support qt4 raw readline schroedinger session sftp sndfile sockets spell sse sse2 ssl ssse3 startup-notification svg system-cairo system-icu system-jpeg system-sqlite tcpd tga theora threads tiff truetype udev udisks unicode upower usb utils v4l vaapi vdpau vorbis vpx wavpack wicd wifi wma wxwidgets x264 xattr xcb xcomposite xft xinerama xpm xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en ru_RU en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="vesa vga nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

media-libs/libraw-0.16.0 was built with the following:
USE="jpeg lcms openmp -demosaic -examples -jpeg2k" ABI_X86="32 64 -x32"


media-libs/freeimage-3.15.4 was built with the following:
USE="jpeg mng png raw tiff -jpeg2k -openexr -static-libs" ABI_X86="64"
Comment 10 cono 2014-11-25 12:37:18 UTC
I have the same issue, looks like after following update:
     Tue Nov 25 13:44:58 2014 >>> media-libs/libraw-0.16.0

libraw.h moved to another directory:

<root@claptop:/var/tmp/portage/media-libs/freeimage-3.15.4/work/FreeImage>
zsh 107 # x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -fomit-frame-pointer -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit   -DUSE_JPEG -DUSE_MNG -DUSE_PNG    -I/usr/include/libpng16  -DUSE_TIFF   -I/usr/include/OpenEXR  -DUSE_RAW    -I/usr/include/libraw/libraw  -fPIC -c Source/FreeImage/PluginRAW.cpp -o Source/FreeImage/PluginRAW.o
Source/FreeImage/PluginRAW.cpp:22:20: fatal error: libraw.h: No such file or directory
 #include <libraw.h>
                    ^
compilation terminated.

I've changed it to:
x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -fomit-frame-pointer -I. -ISource -ISource/Metadata -ISource/FreeImageToolkit   -DUSE_JPEG -DUSE_MNG -DUSE_PNG    -I/usr/include/libpng16  -DUSE_TIFF   -I/usr/include/OpenEXR  -DUSE_RAW    -I/usr/include/libraw  -fPIC -c Source/FreeImage/PluginRAW.cpp -o Source/FreeImage/PluginRAW.o 

And it works fine now.

Something wrong with:
# pkg-config --cflags-only-I libraw
-I/usr/include/libraw/libraw

I'm not familiar what pkg-config does.
Comment 11 cono 2014-11-25 12:52:22 UTC
Well, I looked a bit deeper and if I'm not mistaken, problem is over here:

% grep -E "includedir" /usr/lib64/pkgconfig/libraw.pc
includedir=${prefix}/include/libraw
Cflags: -I${includedir}/libraw

I also got LibRaw-0.16.0 from /usr/portage/distfiles and tried to "make" it in my temporary dir and I got proper .pc file, dunno why it doesn't work through the emerge:

% grep -E "includedir" ~/tmp/LibRaw-0.16.0/libraw.pc
includedir=${prefix}/include
Cflags: -I${includedir}/libraw
Comment 12 Daniel.Savard 2014-11-29 17:17:27 UTC
I am running into this exact bug too.
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2014-11-29 18:22:50 UTC
Looks like a bug in libraw-0.16.0.ebuild.  I recommend dropping back to libraw-0.15.4.ebuild until it's fixed.
Comment 14 Mr. Bones. (RETIRED) gentoo-dev 2014-11-29 18:40:23 UTC
libraw-0.16.0-r1.ebuild has the fix so this should be all set.