error log: out/Release/obj.target/geni/ffmpeg_stubs.cc:20:39: fatal error: third_party/libvpx/libvpx.h: No such file or directory compilation terminated. make: *** [out/Release/obj.target/geni/ffmpeg_stubs.o] Error 1 make: *** Waiting for unfinished jobs.... emake failed Reproducible: Always
Created attachment 264765 [details] build log
Created attachment 264767 [details, diff] ebuild diff
Created attachment 264769 [details, diff] patch
I'm seeing the same error. I'm not sure about attachment 264769 [details, diff]; I think the intent was for -DUSE_SYSTEM_VPX to be passed to gcc via ffmpeg.gyp, but that doesn't seem to be working properly.
(In reply to comment #4) > I'm not sure about attachment 264769 [details, diff] Yeah, the attached patch is not the proper way to fix it. > I think the intent was for > -DUSE_SYSTEM_VPX to be passed to gcc via ffmpeg.gyp, but that doesn't seem to > be working properly. I think I forgot to add libvpx.h to the list of files excluded from bundled libs removal. If anyone can test that locally I'd appreciate it; I usually don't work with the 9999 ebuild.
(In reply to comment #5) > I think I forgot to add libvpx.h to the list of files excluded from bundled > libs removal. If anyone can test that locally I'd appreciate it; I usually > don't work with the 9999 ebuild. > Yes, you did forget this. :) After I add libvpx.h to the exclusion list, I get the following build error, which is likely why the bug Alphat-PC created his patch. Note the absence of -DUSE_SYSTEM_VPX. x86_64-pc-linux-gnu-g++ '-DNO_HEAPCHECKER' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DUSE_PROPRIE TARY_CODECS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-D__STDC_CONSTANT_MACROS' '-DNDEBUG' '-DNVALGRI ND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -Iout/Release/obj/gen/ffmpeg -I. -pthread -fno-exceptions -Wno -unused-parameter -Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -pipe - fPIC -fno-strict-aliasing -Wno-deprecated -Wno-format -O2 -fno-ident -fdata-sections -ffunction-sect ions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -MMD -MF out/Release/.deps/out/Re lease/obj.target/geni/ffmpeg_stubs.o.d.raw -ggdb -O2 -pipe -march=native -c -o out/Release/obj.targe t/geni/ffmpeg_stubs.o out/Release/obj.target/geni/ffmpeg_stubs.cc In file included from out/Release/obj.target/geni/ffmpeg_stubs.cc:20:0: ./third_party/libvpx/libvpx.h:19:60: fatal error: third_party/libvpx/source/libvpx/vpx/vpx_codec.h: No such file or directory compilation terminated.
(In reply to comment #6) > which is likely why the bug Alphat-PC created his patch. Sorry about that, I didn't mean to call you a bug. Copy/paste fail.
Is the patch working for you?
I´ve tried to apply the patch in my local overlay, but it is still failing. :( Any workaround yet for this bug? Kind Regards, Ralf
(In reply to comment #9) > I´ve tried to apply the patch in my local overlay, but it is still failing. :( > Any workaround yet for this bug? > Kind Regards, > > Ralf Paweł made another upstream commit that broke the patch. The real issue here is that -DUSE_SYSTEM_VPX=1 isn't being passed to the compiler for this particular build target. I haven't puzzled out how to fix that upstream via gyp, but a simple workaround is to add "append-flags -DUSE_SYSTEM_VPX=1" to the ebuild. You can find that in my overlay: https://bitbucket.org/floppym/chromium-overlay/changeset/605cbf0c03d7
Thank you for the information, I've added your overlay and now it works like a charm! I very appreciate the work you've done! Thanks Mike Gilbert & Pawel Hajdan for this awesome work! :) (I like live ebuilds :D)
no libvpx.h from libvpx-9999 after update today.
(In reply to comment #12) > no libvpx.h from libvpx-9999 after update today. and -DUSE_SYSTEM_VPX=1 has no effect , still use third-party libvxp.h
x86_64-pc-linux-gnu-g++ '-DNO_HEAPCHECKER' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-D__STDC_CONSTANT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -Iout/Release/obj/gen/ffmpeg -I. -pthread -fno-exceptions -Wno-unused-parameter -Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -pipe -fPIC -fno-strict-aliasing -Wno-deprecated -Wno-format -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -MMD -MF out/Release/.deps/out/Release/obj.target/geni/ffmpeg_stubs.o.d.raw -mtune=core2 -march=core2 -O2 -msse4.1 -pipe -DUSE_SYSTEM_VPX=1 -c -o out/Release/obj.target/geni/ffmpeg_stubs.o out/Release/obj.target/geni/ffmpeg_stubs.cc rm -f out/Release/obj.target/chrome/libutility.a && x86_64-pc-linux-gnu-ar crsT out/Release/obj.target/chrome/libutility.a out/Release/obj.target/utility/chrome/utility/utility_main.o out/Release/obj.target/utility/chrome/utility/utility_thread.o rm -f out/Release/obj.target/chrome/libworker.a && x86_64-pc-linux-gnu-ar crsT out/Release/obj.target/chrome/libworker.a out/Release/obj.target/worker/chrome/worker/websharedworker_stub.o out/Release/obj.target/worker/chrome/worker/webworker_stub_base.o out/Release/obj.target/worker/chrome/worker/webworker_stub.o out/Release/obj.target/worker/chrome/worker/webworkerclient_proxy.o out/Release/obj.target/worker/chrome/worker/worker_main.o out/Release/obj.target/worker/chrome/worker/worker_thread.o out/Release/obj.target/worker/chrome/worker/worker_webapplicationcachehost_impl.o out/Release/obj.target/worker/chrome/worker/worker_webkitclient_impl.o touch out/Release/obj.target/third_party/WebKit/Source/WebKit/chromium/devtools_html.stamp touch out/Release/obj.target/third_party/WebKit/Source/WebCore/WebCore.gyp/inspector_protocol_sources.stamp export LD_LIBRARY_PATH=/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/lib.host:/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/lib.target:$LD_LIBRARY_PATH; cd third_party/WebKit/Source/WebKit/chromium; mkdir -p /var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/resources/inspector; python scripts/concatenate_css_files.py ../../WebCore/inspector/front-end/inspector.html ../../WebCore/inspector/front-end src/js "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/resources/inspector/devTools.css" export LD_LIBRARY_PATH=/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/lib.host:/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/lib.target:$LD_LIBRARY_PATH; cd chrome; mkdir -p /var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj.target/geni/repack; python ../tools/data_pack/repack.py "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj.target/geni/repack/chrome.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/chrome/autofill_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/chrome/browser_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/chrome/common_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/chrome/default_plugin_resources/default_plugin_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/chrome/renderer_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/chrome/theme_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/app/app_resources/app_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/ui/gfx/gfx_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/net/net_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/webkit/webkit_chromium_resources.pak" "/var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999/out/Release/obj/gen/webkit/webkit_resources.pak" out/Release/obj.target/geni/ffmpeg_stubs.cc:20:39: ERROR:third_party/libvpx/libvpx.h:no such file make: *** [out/Release/obj.target/geni/ffmpeg_stubs.o] ERROR 1
(In reply to comment #13) > (In reply to comment #12) > > no libvpx.h from libvpx-9999 after update today. > > and -DUSE_SYSTEM_VPX=1 has no effect , still use third-party libvxp.h I refer you to comments 5 and 6. You need to keep third_party/libvpx/libvpx.h AND pass -DUSE_SYSTEM_VPX=1. --- a/www-client/chromium/chromium-9999-r1.ebuild +++ b/www-client/chromium/chromium-9999-r1.ebuild @@ -158,6 +158,7 @@ \! -path 'third_party/launchpad_translations/*' \ \! -path 'third_party/libjingle/*' \ \! -path 'third_party/libsrtp/*' \ + \! -path 'third_party/libvpx/libvpx.h' \ \! -path 'third_party/libwebp/*' \ \! -path 'third_party/mesa/*' \ \! -path 'third_party/modp_b64/*' \ @@ -277,6 +278,9 @@ # Avoid a build error with -Os, bug #352457. replace-flags "-Os" "-O2" + # Fix vpx header issue + append-flags "-DUSE_SYSTEM_VPX=1" + egyp ${myconf} || die }
x86_64-pc-linux-gnu-g++ '-DNO_HEAPCHECKER' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DGOOGLE_PROTOBUF_NO_RTTI' '-DUSE_SYSTEM_ZLIB' '-DFEATURE_ENABLE_SSL' '-DFEATURE_ENABLE_VOICEMAIL' '-DEXPAT_RELATIVE_PATH' '-DLINUX' '-DPOSIX' '-D__STDC_FORMAT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -I. -Igpu -Ithird_party/protobuf -Ithird_party/protobuf/src -Ithird_party/libvpx/include -Ithird_party/libjingle/overrides -Ithird_party/libjingle/source -Ithird_party/expat/files -Iout/Release/obj/gen/protoc_out -pthread -fno-exceptions -Wall -Wno-unused-parameter -Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -pipe -fPIC -fno-strict-aliasing -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -MMD -MF out/Release/.deps/out/Release/obj.target/chromoting_base/remoting/base/decoder_vp8.o.d.raw -mtune=core2 -march=core2 -O2 -msse4.1 -pipe -c -o out/Release/obj.target/chromoting_base/remoting/base/decoder_vp8.o remoting/base/decoder_vp8.cc In file included from remoting/base/decoder_vp8.cc:13:0: ./third_party/libvpx/libvpx.h:19:60: ERROR:third_party/libvpx/source/libvpx/vpx/vpx_codec.h:No such file or directory COMPILE FAILED x86_64-pc-linux-gnu-g++ '-DNO_HEAPCHECKER' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DGOOGLE_PROTOBUF_NO_RTTI' '-DUSE_SYSTEM_ZLIB' '-DFEATURE_ENABLE_SSL' '-DFEATURE_ENABLE_VOICEMAIL' '-DEXPAT_RELATIVE_PATH' '-DLINUX' '-DPOSIX' '-D__STDC_FORMAT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -I. -Igpu -Ithird_party/protobuf -Ithird_party/protobuf/src -Ithird_party/libvpx/include -Ithird_party/libjingle/overrides -Ithird_party/libjingle/source -Ithird_party/expat/files -Iout/Release/obj/gen/protoc_out -pthread -fno-exceptions -Wall -Wno-unused-parameter -Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -pipe -fPIC -fno-strict-aliasing -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -MMD -MF out/Release/.deps/out/Release/obj.target/chromoting_base/remoting/base/decoder_row_based.o.d.raw -mtune=core2 -march=core2 -O2 -msse4.1 -pipe -c -o out/Release/obj.target/chromoting_base/remoting/base/decoder_row_based.o remoting/base/decoder_row_based.cc make: *** [out/Release/obj.target/chromoting_base/remoting/base/decoder_vp8.o] ERROR 1 make: *** Waiting for unfinished task .... emake failed * ERROR: www-client/chromium-9999-r1 failed (compile phase):
the new chromium-9999-r1.ebuild,v 1.7 2011/03/11 20:02:29 phajdan.jr failed: In file included from remoting/base/decoder_vp8.cc:13:0: ./third_party/libvpx/libvpx.h:19:60: ERROR:third_party/libvpx/source/libvpx/vpx/vpx_codec.h:No such file or directory COMPILE FAILED
(In reply to comment #17) 10 Mar 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> +files/chromium-system-vpx-r3.patch, -chromium-11.0.686.1.ebuild, +chromium-11.0.696.1.ebuild, chromium-9999-r1.ebuild: Version bump for dev channel release. Fixed bug #357451 by Alphat-PC <AlphatPC@gmail.com> fully for dev channel ebuild and partially for live ebuild (will land fixes upstream). Remove old. Patience please; he probably hasn't landed this yet. My overlay includes the patch if you can't wait.
chromium-9999-r1.ebuild,v 1.9 2011/03/16 16:25:03 phajdan.jr failed chromium version 78515: x86_64-pc-linux-gnu-g++ '-DNO_HEAPCHECKER' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DGOOGLE_PROTOBUF_NO_RTTI' '-DUSE_SYSTEM_ZLIB' '-DFEATURE_ENABLE_SSL' '-DFEATURE_ENABLE_VOICEMAIL' '-DEXPAT_RELATIVE_PATH' '-DLINUX' '-DPOSIX' '-D__STDC_FORMAT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -I. -Igpu -Ithird_party/protobuf -Ithird_party/protobuf/src -Ithird_party/libvpx/include -Ithird_party/libjingle/overrides -Ithird_party/libjingle/source -Ithird_party/expat/files -Iout/Release/obj/gen/protoc_out -pthread -fno-exceptions -Wall -Wno-unused-parameter -Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -pipe -fPIC -fno-strict-aliasing -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -MMD -MF out/Release/.deps/out/Release/obj.target/chromoting_base/remoting/base/decoder_vp8.o.d.raw -mtune=core2 -march=core2 -O2 -msse4.1 -pipe -c -o out/Release/obj.target/chromoting_base/remoting/base/decoder_vp8.o remoting/base/decoder_vp8.cc x86_64-pc-linux-gnu-g++ '-DNO_HEAPCHECKER' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DUSE_PROPRIETARY_CODECS' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DGOOGLE_PROTOBUF_NO_RTTI' '-DUSE_SYSTEM_ZLIB' '-DFEATURE_ENABLE_SSL' '-DFEATURE_ENABLE_VOICEMAIL' '-DEXPAT_RELATIVE_PATH' '-DLINUX' '-DPOSIX' '-D__STDC_FORMAT_MACROS' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -I. -Igpu -Ithird_party/protobuf -Ithird_party/protobuf/src -Ithird_party/libvpx/include -Ithird_party/libjingle/overrides -Ithird_party/libjingle/source -Ithird_party/expat/files -Iout/Release/obj/gen/protoc_out -pthread -fno-exceptions -Wall -Wno-unused-parameter -Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -pipe -fPIC -fno-strict-aliasing -O2 -fno-ident -fdata-sections -ffunction-sections -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -MMD -MF out/Release/.deps/out/Release/obj.target/chromoting_base/remoting/base/decoder_row_based.o.d.raw -mtune=core2 -march=core2 -O2 -msse4.1 -pipe -c -o out/Release/obj.target/chromoting_base/remoting/base/decoder_row_based.o remoting/base/decoder_row_based.cc In file included from remoting/base/decoder_vp8.cc:13:0: ./third_party/libvpx/libvpx.h:19:60: ERROR:third_party/libvpx/source/libvpx/vpx/vpx_codec.h:No such file or directory
(In reply to comment #19) > ERROR:third_party/libvpx/source/libvpx/vpx/vpx_codec.h:No such file or > directory Mike's fix still have to be applied into current chromium-9999-r1 ebuild. As Mike said, it's not the right way to fix it but it currently compiles/works. --- a/www-client/chromium/chromium-9999-r1.ebuild +++ b/www-client/chromium/chromium-9999-r1.ebuild @@ -267,6 +267,9 @@ src_configure() { # Avoid a build error with -Os, bug #352457. replace-flags "-Os" "-O2" + # Fix vpx header issue + append-flags "-DUSE_SYSTEM_VPX=1" + egyp ${myconf} || die }
(In reply to comment #20) > Mike's fix still have to be applied into current chromium-9999-r1 ebuild. As > Mike said, it's not the right way to fix it but it currently compiles/works. > I'm currently applying this patch in my overlay instead of the -DUSE_SYSTEM_VPX kludge. I believe Pawel is still working on upstreaming this, but I could be mistaken. https://bitbucket.org/floppym/chromium-overlay/src/a94fcbeaed7b/www-client/chromium/files/chromium-system-vpx-r4.patch
Created attachment 267149 [details] patch for ffmpeg-9999 --- /usr//portage/www-client/chromium/chromium-9999-r1.ebuild 2011-03-17 00:31:25.000000000 +0800 +++ chromium-9999-r1.ebuild 2011-03-19 20:25:48.000000000 +0800 @@ -146,6 +146,7 @@ } src_prepare() { + epatch "${FILESDIR}"/${PN}-system-ffmpeg.patch # Remove most bundled libraries. Some are still needed. find third_party -type f \! -iname '*.gyp*' \ \! -path 'third_party/WebKit/*' \ @@ -162,7 +163,7 @@ \! -path 'third_party/launchpad_translations/*' \ \! -path 'third_party/libjingle/*' \ \! -path 'third_party/libsrtp/*' \ - \! -path 'third_party/libvpx/libvpx.h' \ + \! -path 'third_party/libvpx/*' \ \! -path 'third_party/libwebp/*' \ \! -path 'third_party/mesa/*' \ \! -path 'third_party/modp_b64/*' \
I think this should be fixed now, please reopen otherwise.
(In reply to comment #23) > I think this should be fixed now, please reopen otherwise. >>> Preparing source in /var/tmp/portage/www-client/chromium-9999-r1/work/chromium-9999 ... * Applying chromium-system-ffmpeg.patch ... [ ok ] * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/local/portage/www-client/chromium/files/chromium-system-vpx-r4.patch * ( chromium-system-vpx-r4.patch ) * ERROR: www-client/chromium-9999-r1 failed (prepare phase): * Cannot find $EPATCH_SOURCE!
Right, I forgot to add the patch. Should be fixed for real now, thanks.