Bug 130394 - Fix the !ENABLE(FILTERS) build
Summary: Fix the !ENABLE(FILTERS) build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Laszlo Vidacs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-18 06:02 PDT by Laszlo Vidacs
Modified: 2014-03-21 01:58 PDT (History)
12 users (show)

See Also:


Attachments
Patch (3.06 KB, patch)
2014-03-18 06:26 PDT, Laszlo Vidacs
no flags Details | Formatted Diff | Diff
Patch (2.49 KB, patch)
2014-03-19 07:05 PDT, Laszlo Vidacs
no flags Details | Formatted Diff | Diff
Patch (2.49 KB, patch)
2014-03-20 03:47 PDT, Laszlo Vidacs
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Vidacs 2014-03-18 06:02:46 PDT
Build fails with --no-filters option. Command line:
Tools/Scripts/build-webkit --efl --no-filters

Error messages:

Source/WebCore/rendering/svg/RenderSVGImage.cpp: In member function 'virtual void WebCore::RenderSVGImage::imageChanged(WebCore::WrappedImagePtr, const WebCore::IntRect*)':
Source/WebCore/rendering/svg/RenderSVGImage.cpp:212:5: error: 'RenderSVGResource' has not been declared

Source/WebCore/rendering/svg/RenderSVGRoot.cpp: In member function 'virtual void WebCore::RenderSVGRoot::layout()':
Source/WebCore/rendering/svg/RenderSVGRoot.cpp:216:18: error: invalid use of incomplete type 'class WebCore::RenderSVGResourceContainer'
Comment 1 Laszlo Vidacs 2014-03-18 06:05:39 PDT
Tried with r165806.
Comment 2 Laszlo Vidacs 2014-03-18 06:26:23 PDT
Created attachment 227045 [details]
Patch
Comment 3 Gyuyoung Kim 2014-03-18 07:36:21 PDT
Comment on attachment 227045 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=227045&action=review

> Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp:53
> +#include <runtime/JSCInlines.h>

I think it would be good to move these includes to 42 line for alphabetic order.
Comment 4 Csaba Osztrogonác 2014-03-18 11:01:53 PDT
Could you explain what kind of link failure did 
you get and how is it related to ENABLE(FILTERS) ?
Comment 5 Laszlo Vidacs 2014-03-19 07:05:21 PDT
Created attachment 227180 [details]
Patch
Comment 6 Laszlo Vidacs 2014-03-19 07:07:23 PDT
After adding the necessary includes to RenderSVGImage.cpp and RenderSVGRoot.cpp I got the following linker error:

Linking CXX shared library ../../lib/libwebcore_efl.so
CMakeFiles/WebCore.dir/platform/graphics/cairo/ImageBufferCairo.cpp.o: In function `WTF::PassRefPtr<JSC::GenericTypedArrayView<JSC::Uint8ClampedAdaptor> > WebCore::getImageData<(WebCore::Multiply)1>(WebCore::IntRect const&, WebCore::ImageBufferData const&, WebCore::IntSize const&)':
ImageBufferCairo.cpp:(.text._ZN7WebCore12getImageDataILNS_8MultiplyE1EEEN3WTF10PassRefPtrIN3JSC21GenericTypedArrayViewINS4_19Uint8ClampedAdaptorEEEEERKNS_7IntRectERKNS_15ImageBufferDataERKNS_7IntSizeE[_ZN7WebCore12getImageDataILNS_8MultiplyE1EEEN3WTF10PassRefPtrIN3JSC21GenericTypedArrayViewINS4_19Uint8ClampedAdaptorEEEEERKNS_7IntRectERKNS_15ImageBufferDataERKNS_7IntSizeE]+0x41): undefined reference to `JSC::GenericTypedArrayView<JSC::Uint8ClampedAdaptor>::createUninitialized(unsigned int)'
...

The missing GenericTypedArrayView<>::createUninitialized is from JSC and is included through runtime/TypedArrayInlines.h from WebCore (as in WebCore/platform/graphics/filters/FilterEffect.cpp but it is guarded by ENABLE(FILTERS) ). The added includes are lifted up from cairo/ImageBufferCairo.cpp to ImageBuffer.h, so ImageBuffer.cpp can also use them.
Comment 7 Gyuyoung Kim 2014-03-19 18:32:59 PDT
Could you check the build error on efl-wk2 ews bubble ?


Last 500 characters of output:
ore.dir/__/__/DerivedSources/WebCore/JSSVGFEMergeElement.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSDOMWindow.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make: *** [all] Error 2

Failed to run "['Tools/Scripts/build-webkit', '--release', '--efl', '--update-efl', '--no-webkit1', '--makeargs="-j8"']" exit_code: 2
tingElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEDisplacementMapElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEDropShadowElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEFloodElement.cpp.o
[ 22%] [ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEFuncAElement.cpp.o
Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEFuncBElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEFuncGElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEFuncRElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEGaussianBlurElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEImageElement.cpp.o
[ 22%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSSVGFEMergeElement.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/JSDOMWindow.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make: *** [all] Error 2
Comment 8 Laszlo Vidacs 2014-03-20 03:47:11 PDT
Created attachment 227279 [details]
Patch
Comment 9 Laszlo Vidacs 2014-03-20 05:07:53 PDT
Resubmitted the patch, it seems that the EWS bot failed before.
Comment 10 Gyuyoung Kim 2014-03-20 18:35:02 PDT
Comment on attachment 227279 [details]
Patch

LGTM. Ossy, any issue before landing ?
Comment 11 WebKit Commit Bot 2014-03-21 01:58:33 PDT
Comment on attachment 227279 [details]
Patch

Clearing flags on attachment: 227279

Committed r166056: <http://trac.webkit.org/changeset/166056>
Comment 12 WebKit Commit Bot 2014-03-21 01:58:39 PDT
All reviewed patches have been landed.  Closing bug.