Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466010 - www-client/chromium USE=system-ffmpeg fails to build with clang - build system generates empty defines that end up in compile string
Summary: www-client/chromium USE=system-ffmpeg fails to build with clang - build syste...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard: ht-wanted
Keywords: PATCH
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2013-04-15 17:28 UTC by cmuelle8
Modified: 2013-09-05 03:46 UTC (History)
0 users

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


Attachments
/etc/portage/patches/www-client/chromium/chromium-clang-do-not-gen-empty-defines.patch (chromium-clang-do-not-gen-empty-defines.patch,848 bytes, patch)
2013-04-15 17:34 UTC, cmuelle8
Details | Diff
build log 1368031234-install-www-client_chromium-27.0.1453.73:0::gentoo.out.gz (1368031234-install-www-client_chromium-27.0.1453.73:0::gentoo.out.gz,546.45 KB, application/octet-stream)
2013-05-08 20:20 UTC, cmuelle8
Details
successful build log (chromium-27.0.1453.81) (www-client:chromium-27.0.1453.81:20130509-224250.log.xz,293.68 KB, application/x-xz)
2013-05-09 23:03 UTC, Paweł Hajdan, Jr. (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cmuelle8 2013-04-15 17:28:12 UTC
cave show -f chromium::gentoo
* www-client/chromium::gentoo
    ::gentoo                  26.0.1410.43 26.0.1410.63(~) 27.0.1453.3(~) 27.0.1453.12(~) 27.0.1453.47(~)* {:0} (9999-r1)KR {:live}
    www-client/chromium-27.0.1453.47:0::gentoo
    Description               Open-source version of Google Chrome web browser
    Homepage                  http://chromium.org/
    Herds                     chromium
    Long Description          Chromium is the open-source web browser project behind Google Chrome
    Use flags                 -bindist cups custom-cflags gnome gnome-keyring -gps kerberos pulseaudio (-selinux) system-ffmpeg (-system-sqlite) (-tcmalloc) (-test) linguas: -am -ar -bg -bn -ca -cs -da de -el -en_GB -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW build_options: symbols=strip dwarf_compress -optional_tests -trace work=tidyup 
        Overridden Masks
            Keywords          ~amd64 ~x86

does not compile with clang.

SYMPTOM:
  clang++ '-DUSE_SKIA' '-D_FILE_OFFSET_BITS=64' '-DUSE_LINUX_BREAKPAD' '-DNO_TCMALLOC' '-DCHROMIUM_BUILD' '-DUSE_DEFAULT_RENDER_THEME=1' '-DUSE_LIBJPEG_TURBO=1' '-DUSE_NSS=1' '-DENABLE_ONE_CLICK_SIGNIN' '-DGTK_DISABLE_SINGLE_INCLUDES=1' '-DENABLE_REMOTING=1' '-DENABLE_WEBRTC=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_PEPPER_THREADING' '-DENABLE_CONFIGURATION_POLICY' '-DENABLE_INPUT_SPEECH' '-DENABLE_NOTIFICATIONS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DENABLE_TASK_MANAGER=1' '-DENABLE_EXTENSIONS=1' '-DENABLE_PLUGIN_INSTALLATION=1' '-DENABLE_PLUGINS=1' '-DENABLE_SESSION_SERVICE=1' '-DENABLE_THEMES=1' '-DENABLE_BACKGROUND=1' '-DENABLE_AUTOMATION=1' '-DENABLE_GOOGLE_NOW=1' '-DENABLE_LANGUAGE_DETECTION=1' '-DENABLE_PRINTING=1' '-DENABLE_CAPTIVE_PORTAL_DETECTION=1' '-DENABLE_MANAGED_USERS=1' '-DMEDIA_IMPLEMENTATION' '-DUSE_NEON' '-D' '-DCHROMIUM_OMIT_AV_CODEC_ID_VP9' '-DUSE_PULSEAUDIO' '-DSK_BUILD_NO_IMAGE_ENCODE' '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' '-DGR_AGGRESSIVE_SHADER_OPTS=1' '-DSK_ENABLE_INST_COUNT=0' '-DSK_USE_POSIX_THREADS' '-DU_USING_ICU_NAMESPACE=0' '-D__STDC_CONSTANT_MACROS' '-DUSE_SYSTEM_FFMPEG' '-D__STDC_FORMAT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' '-D_FORTIFY_SOURCE=2' -Iout/Release/obj/gen/shim_headers/libpng/target -Iout/Release/obj/gen/shim_headers/opus/target -Iout/Release/obj/gen/shim_headers/zlib/target -Iout/Release/obj/gen/shim_headers/icuuc/target -Iout/Release/obj/gen/shim_headers/icui18n/target -Iout/Release/obj/gen/shim_headers/nspr/target -Iout/Release/obj/gen/shim_headers/libevent/target -I. -Iout/Release/obj/gen/pulse -Inet/third_party/nss/ssl -Iskia/config -Ithird_party/skia/src/core -Ithird_party/skia/include/config -Ithird_party/skia/include/core -Ithird_party/skia/include/effects -Ithird_party/skia/include/pdf -Ithird_party/skia/include/gpu -Ithird_party/skia/include/gpu/gl -Ithird_party/skia/include/pipe -Ithird_party/skia/include/ports -Ithird_party/skia/include/utils -Iskia/ext -Iout/Release/obj/gen/ffmpeg  -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-exceptions -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/opus -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -MMD -MF out/Release/.deps/out/Release/obj.target/media/media/audio/async_socket_io_handler_posix.o.d.raw -march=native -pipe -O2 -Wno-c++11-extensions -c -o out/Release/obj.target/media/media/audio/async_socket_io_handler_posix.o media/audio/async_socket_io_handler_posix.cc
clang: warning: argument unused during compilation: '-fno-ident'
In file included from <built-in>:173:
<command line>:35:9: error: macro names must be identifiers
#define -DCHROMIUM_OMIT_AV_CODEC_ID_VP9 1
        ^
1 error generated.
make: *** [out/Release/obj.target/media/media/audio/async_socket_io_handler_posix.o] Error 1


SOLUTION:
The error is caused by the single '-D' in the compile string and stems from
  media/media.target.mk
which is generated by 
  build/gyp_chromium media/media.gyp

There is a dodgy python test that defines OMIT-flags on failing test programs, but does not generate any string on successful run of these test programs.  gyp generates an empty "-D" in media.target.mk which makes clang interpret the next define as an option to this single "-D".

E.g. clang++ "-D" "-DCHROMIUM_OMIT_AV_CODEC_ID_VP9" will be interpreted as
#define -DCHROMIUM_OMIT_AV_CODEC_ID_VP9 1

The ebuild uses epatch_user(), so the attached might be placed into
  /etc/portage/patches/www-client/chromium

to be applied, until gentoo devs pick it up or a fix comes around another way or with a next version.




Reproducible: Always
Comment 1 cmuelle8 2013-04-15 17:34:42 UTC
Created attachment 345636 [details, diff]
/etc/portage/patches/www-client/chromium/chromium-clang-do-not-gen-empty-defines.patch

Note about clang warnings:

I've also put
  */chromium) CFLAGS="${CFLAGS/-O?/-O2} -Wno-c++11-extensions" ;;

in my paludis/bashrc to stop the "override is a c++11 extension" noise, but this is not necessary for a successful build

The code does not compile using  -std=c++11 or -std=c++0x  suggested by thes usage of the override feature, however..
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-04-23 00:37:00 UTC
This should be fixed in chromium-28.0.1485.0. Thanks for report and patch.
Comment 3 cmuelle8 2013-04-23 01:20:29 UTC
(In reply to comment #2)
> This should be fixed in chromium-28.0.1485.0. Thanks for report and patch.

Ok, but since 28.x is still hard masked, isn't this bug closed too early?  27.x still has it and that's what people currently use.  Any chance this will make it into 27.x until this is phased out?
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-05-03 18:44:43 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This should be fixed in chromium-28.0.1485.0. Thanks for report and patch.
> 
> Ok, but since 28.x is still hard masked, isn't this bug closed too early? 
> 27.x still has it and that's what people currently use.  Any chance this
> will make it into 27.x until this is phased out?

I've tested chromium-27.0.1453.73 and it compiled for me.
Comment 5 cmuelle8 2013-05-08 20:14:27 UTC
(In reply to comment #4)
> I've tested chromium-27.0.1453.73 and it compiled for me.

Sorry, but I cannot confirm this.  I suspect one of the following:

- clang was not used (this bug is about compiling with clang)
- system-ffmeg use flag was disabled (enabled is the default though)
- maybe the patch attached was indeed present while you tried, in
  /etc/portage/patches/www-client/chromium
  -> please observe src_prepare, look at applied user patches

If I do not use the patch attached, I'll get the same error as with .47, so it's still needed:

--8<--
clang++ '-DUSE_SKIA' [...] '-D' '-DCHROMIUM_OMIT_AV_CODEC_ID_VP9' [...]
clang: warning: argument unused during compilation: '-fno-ident'
In file included from <built-in>:173:
<command line>:35:9: error: macro names must be identifiers
#define -DCHROMIUM_OMIT_AV_CODEC_ID_VP9 1
        ^
1 error generated.
make: *** [out/Release/obj.target/media/media/audio/async_socket_io_handler_posix.o] Error 1
[...]
die trap: exiting with error.
*** Messages log: //var/log/paludis/1368031235-install-www-client_chromium-27.0.1453.73:0::gentoo.messages
*** Output log: //var/log/paludis/1368031234-install-www-client_chromium-27.0.1453.73:0::gentoo.out
--8<--


Please double check, if you still find it works for you, please attach your full, working build log.  Thanks.
Comment 6 cmuelle8 2013-05-08 20:20:33 UTC
Created attachment 347776 [details]
build log 1368031234-install-www-client_chromium-27.0.1453.73:0::gentoo.out.gz

build log showing empty-define-in-compile-string persists from 27.0.1453.47 to 27.0.1453.73
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-05-09 23:03:30 UTC
Created attachment 347886 [details]
successful build log (chromium-27.0.1453.81)

(In reply to comment #5)
> Sorry, but I cannot confirm this.  I suspect one of the following:
> 
> - clang was not used (this bug is about compiling with clang)

It was.

> - system-ffmeg use flag was disabled (enabled is the default though)

Flag was enabled.

> - maybe the patch attached was indeed present while you tried, in
>   /etc/portage/patches/www-client/chromium
>   -> please observe src_prepare, look at applied user patches

I didn't use any custom patches.

> Please double check, if you still find it works for you, please attach your
> full, working build log.  Thanks.

It's quite unusual to have a developer "prove" things to users. Still, let me know if you find something in the log, I might have missed some detail. Here are my package versions for reference:

[ebuild   R   ~] www-client/chromium-27.0.1453.81  USE="cups gnome gnome-keyring kerberos pulseaudio system-ffmpeg -bindist -custom-cflags -gps (-selinux) -system-sqlite (-tcmalloc) {-test}"
[ebuild   R   ~] media-video/ffmpeg-1.0.6  USE="X aac alsa bzip2 encode hardcoded-tables mmx mp3 opus pulseaudio sdl truetype vorbis x264 xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -avx -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -examples -faac -fdk -flite -fontconfig -frei0r -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libcaca -libv4l -mmxext -modplug (-neon) -network -openal -openssl -oss -pic -rtmp -schroedinger -speex -ssse3 -static-libs {-test} -theora -threads -twolame -v4l -vaapi -vdpau (-vis) -vpx"
[ebuild   R   ~] sys-devel/clang-3.2  USE="python static-analyzer -debug -multitarget {-test}" PYTHON_TARGETS="python2_7 -pypy1_9 -pypy2_0 -python2_6" 0 kB

Portage 2.1.11.62 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.2.5-gg1130 x86_64)
=================================================================
System uname: Linux-3.2.5-gg1130-x86_64-Intel-R-_Xeon-R-_CPU_E5-2690_0_@_2.90GHz-with-gentoo-2.2
KiB Mem:    65904780 total,  57161100 free
KiB Swap:   67031036 total,  67031036 free
Timestamp of tree: Thu, 09 May 2013 20:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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="-O2 -march=native -g -pipe -Wno-c++11-extensions "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j32"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gles2 gnome gnome-keyring gnome-online-accounts gstreamer gtk iconv icu ipv6 jpeg kerberos lcms ldap libkms libnotify libsecret mad minizip mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp opus pam pango pcre pdf perl png policykit ppds pulseaudio python qt3support qt4 readline sdl session socialweb spell sse sse2 ssl startup-notification subversion svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xa xcb xml xv xvfb xvid 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 ubx" INPUT_DEVICES="keyboard mouse 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-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 8 cmuelle8 2013-05-10 03:15:12 UTC
(In reply to comment #7)
> > - clang was not used (this bug is about compiling with clang)
> 
> It was.

Which version of clang did you use?  Improbable, but maybe handling of -D changed in trunk, I've used 3.3svn rev179489 for the compile.
Comment 9 cmuelle8 2013-05-10 03:29:23 UTC
# diff -ur <(xzcat ~/Downloads/www-client\:chromium-27.0.1453.81\:20130509-224250.log.xz | grep OMIT_AV_CODEC_ID | head -1 | tr ' ' '\n') <(zcat ~/Downloads/1368031234-install-www-client_chromium-27.0.1453.73\:0\:\:gentoo.out.gz | grep OMIT_AV_CODEC_ID | head -1 | tr ' ' '\n')
--- /dev/fd/63	2013-05-10 05:25:42.733550079 +0200
+++ /dev/fd/62	2013-05-10 05:25:42.733550079 +0200
@@ -35,7 +35,7 @@
 '-DENABLE_MANAGED_USERS=1'
 '-DMEDIA_IMPLEMENTATION'
 '-DUSE_NEON'
-'-DCHROMIUM_OMIT_CODEC_ID_OPUS'
+'-D'
 '-DCHROMIUM_OMIT_AV_CODEC_ID_VP9'
 '-DUSE_PULSEAUDIO'
 '-DSK_BUILD_NO_IMAGE_ENCODE'
@@ -104,6 +104,8 @@
 -I/usr/include/gdk-pixbuf-2.0
 -I/usr/include/libpng15
 -I/usr/include/pango-1.0
+-I/usr/include/harfbuzz
+-I/usr/include/pango-1.0
 -I/usr/include/freetype2
 -I/usr/include/glib-2.0
 -I/usr/lib64/glib-2.0/include
@@ -118,12 +120,11 @@
 -MMD
 -MF
 out/Release/.deps/out/Release/obj.target/media/media/audio/async_socket_io_handler_posix.o.d.raw
--O2
 -march=native
--g
 -pipe
+-O2
 -Wno-c++11-extensions
 -c
 -o
 out/Release/obj.target/media/media/audio/async_socket_io_handler_posix.o
-media/audio/async_socket_io_handler_posix.cc
+media/audio/async_socket_io_handler_posix.cc



Could it be that you have opus use flag disabled in ffmpeg, while I have it enabled.  You do not have an empty '-D' in your compile string, instead '-DCHROMIUM_OMIT_CODEC_ID_OPUS' fills that spot.  So it looks like you do not come across the condition where the patch is needed (i.e. opus enabled chromium).
Comment 10 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-05-10 16:54:12 UTC
(In reply to comment #8)
> Which version of clang did you use?

Please read my comment again, it contains clang version. It's sys-devel/clang-3.2 .

(In reply to comment #9)
> Could it be that you have opus use flag disabled in ffmpeg, while I have it
> enabled.

See my previous comment for my version of ffmpeg and its USE flag settings. I'm using media-video/ffmpeg-1.0.6 with opus USE flag enabled (it's enforced by chromium dependencies).

Which version of ffmpeg and with which USE flags do you have? I wonder if that could explain different behavior. 

Please also post the output of "grep CODEC_ID_OPUS -R /usr/include". Here's what it says on my system:

/usr/include/libavcodec/old_codec_ids.h:    CODEC_ID_OPUS        = MKBETAG('O','P','U','S'),
/usr/include/libavcodec/avcodec.h:    AV_CODEC_ID_OPUS        = MKBETAG('O','P','U','S'),
Comment 11 cmuelle8 2013-05-21 10:17:15 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > Which version of clang did you use?
> 
> Please read my comment again, it contains clang version. It's
> sys-devel/clang-3.2 .
> 
> (In reply to comment #9)
> > Could it be that you have opus use flag disabled in ffmpeg, while I have it
> > enabled.
> 
> See my previous comment for my version of ffmpeg and its USE flag settings.
> I'm using media-video/ffmpeg-1.0.6 with opus USE flag enabled (it's enforced
> by chromium dependencies).
> 
> Which version of ffmpeg and with which USE flags do you have? I wonder if
> that could explain different behavior. 
> 
> Please also post the output of "grep CODEC_ID_OPUS -R /usr/include". Here's
> what it says on my system:
> 
> /usr/include/libavcodec/old_codec_ids.h:    CODEC_ID_OPUS        =
> MKBETAG('O','P','U','S'),
> /usr/include/libavcodec/avcodec.h:    AV_CODEC_ID_OPUS        =
> MKBETAG('O','P','U','S'),


Same here:
/usr/include/libavcodec/old_codec_ids.h:    CODEC_ID_OPUS        = MKBETAG('O','P','U','S'),
/usr/include/libavcodec/avcodec.h:    AV_CODEC_ID_OPUS        = MKBETAG('O','P','U','S'),


* media-video/ffmpeg
    ::gentoo                  0.10.7 1.0.6(~) 1.0.7(~)* (1.2.1)R(~) (9999)KR {:0}
    ::installed               1.0.6 {:0}
    media-video/ffmpeg-1.0.6:0::installed
    Description               Complete solution to record, convert and stream audio and video. Includes libavcodec.
    Homepage                  http://ffmpeg.org/
    From repositories         gentoo
    Installed time            Sat Apr 06 23:18:11 CEST 2013
    Installed using           paludis-1.2.0
    License                   GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )
    Use flags                 (3dnow) (3dnowext) (X) (aac) (aacplus) (alsa) (-altivec) (amr) (-avx) (-bindist) (bluray) (bzip2) (cdio) (-celt) (-cpudetection) (-debug) (doc) (encode) (examples) (faac) (-fdk) (-flite) (fontconfig) (-frei0r) (-gnutls) (gsm) (hardcoded-tables) (-iec61883) (ieee1394) (jack) (jpeg2k) (-libass) (libcaca) (-libv4l) (mmx) (mmxext) (modplug) (mp3) (-neon) (network) (openal) (-openssl) (opus) (-oss) (-pic) (pulseaudio) (rtmp) (schroedinger) (sdl) (speex) (ssse3) (-static-libs) (theora) (threads) (truetype) (twolame) (v4l) (vaapi) (vdpau) (-vis) (vorbis) (vpx) (x264) (xvid) (zlib) (-test) fftools: (aviocat) (cws2fws) (ffeval) (fourcc2pixfmt) (graph2dot) (ismindex) (pktdumper) (qt-faststart) (trasher) build_options: -trace
Comment 12 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-09-05 03:46:42 UTC
  05 Sep 2013; Pawel Hajdan jr
  chromium-29.0.1547.57.ebuild, chromium-29.0.1547.65.ebuild,
  chromium-30.0.1599.22.ebuild, chromium-31.0.1612.0.ebuild,
  chromium-9999-r1.ebuild:
  Remove support for system ffmpeg. Directly fixes bug #483518 by fuzzyray. See
  also bug #480936 by floppym and bug #466010 by cmuelle8.