Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388849 - media-video/dirac-1.0.2 fails with gcc-4.5.3
Summary: media-video/dirac-1.0.2 fails with gcc-4.5.3
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
Keywords: PATCH
Depends on:
Reported: 2011-10-29 11:40 UTC by Touch
Modified: 2018-03-01 11:10 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Touch 2011-10-29 11:40:13 UTC
Fails to build with:
quant_chooser.cpp:343:49: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' and 'int' to binary 'operator<<'
quant_chooser.cpp: In member function 'dirac::CoeffType dirac::QuantChooser::BlockAbsMax(const dirac::Subband&)':
quant_chooser.cpp:358:64: error: no matching function for call to 'max(int&, __gnu_cxx::__enable_if<true, double>::__type)'
make[1]: *** [libdirac_encoder_la-quant_chooser.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-video/dirac-1.0.2/work/dirac-1.0.2/libdirac_encoder'
make: *** [all-recursive] Error 1
 * ERROR: media-video/dirac-1.0.2 failed (compile phase):
 *   emake failed

Reproducible: Always

There is the same bug in debian linux:

To fix:
~# wget ';filename=dirac.patch;att=1;bug=564976' -O /usr/portage/media-video/dirac/files/dirac.patch
edit /usr/portage/media-video/dirac/dirac-1.0.2.ebuild, add to section:

src_prepare() {
epatch "${FILESDIR}"/dirac.patch

~# ebuild /usr/portage/media-video/dirac/dirac-1.0.2.ebuild 
and remerge again
Comment 1 Chris Bruner 2011-12-06 17:32:25 UTC
I can confirm that the bug exists as stated, and that the supplied patch now compiles without errors.
Comment 2 Pacho Ramos gentoo-dev 2018-03-01 11:10:41 UTC
this compiles with gcc6 in current stable with profiles 17.x