Bug 102938 - BrowserMarshal.h build fail
Summary: BrowserMarshal.h build fail
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Alberto Garcia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 06:50 PST by YuTeh Shen
Modified: 2013-09-17 04:57 PDT (History)
6 users (show)

See Also:


Attachments
patch to fix the build error (756 bytes, patch)
2012-11-21 06:50 PST, YuTeh Shen
no flags Details | Formatted Diff | Diff
Simplify the makefile (2.29 KB, patch)
2013-09-13 02:56 PDT, Alberto Garcia
gustavo: review+
Details | Formatted Diff | Diff
Patch (1.21 KB, patch)
2013-09-17 03:56 PDT, Alberto Garcia
cgarcia: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description YuTeh Shen 2012-11-21 06:50:07 PST
Created attachment 175433 [details]
patch to fix the build error

Encounter build error in Webkit gtk as the following:

  CXXLD  Programs/ImageDiff                                                                                                                                                       
  CC     Tools/MiniBrowser/gtk/Programs_MiniBrowser-BrowserCellRendererVariant.o
../../Tools/MiniBrowser/gtk/BrowserCellRendererVariant.c:27:28: fatal error: BrowserMarshal.h: No such file or directory
compilation terminated.
make[1]: *** [Tools/MiniBrowser/gtk/Programs_MiniBrowser-BrowserCellRendererVariant.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/ytshen/thirdparty/WebKit/WebKitBuild/Debug'
make: *** [all] Error 2
   
Failed to build WebKit using 'make'!
Comment 1 Alberto Garcia 2013-09-13 02:56:15 PDT
Created attachment 211526 [details]
Simplify the makefile

Thanks for spotting the typo in the makefile, although I don't quite
see how that fixes the whole thing.

The stamp-mini-browser-marshal files seem unnecessary to me, it should
be enough to just list the dependencies directly needed to build
BrowserMarshal.h and BrowserMarshal.c without creating the
intermediate files.
Comment 2 Gustavo Noronha (kov) 2013-09-16 06:30:22 PDT
Comment on attachment 211526 [details]
Simplify the makefile

Might wanna take a peek at the commit that added this indirection just to be sure it was not working around some other crazy behaviour, but it looks unnecessary indeed.
Comment 3 Alberto Garcia 2013-09-16 09:34:28 PDT
(In reply to comment #2)
> Might wanna take a peek at the commit that added this indirection
> just to be sure it was not working around some other crazy
> behaviour, but it looks unnecessary indeed.

Yeah, Carlos was mentioning this comment:

https://git.gnome.org/browse/gtk+/tree/gtk/Makefile.am#n1148

I took a quick look but I didn't quite get why it is necessary. I'll
double check before committing this patch.
Comment 4 Carlos Garcia Campos 2013-09-16 10:25:16 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > Might wanna take a peek at the commit that added this indirection
> > just to be sure it was not working around some other crazy
> > behaviour, but it looks unnecessary indeed.
> 
> Yeah, Carlos was mentioning this comment:
> 
> https://git.gnome.org/browse/gtk+/tree/gtk/Makefile.am#n1148
> 
> I took a quick look but I didn't quite get why it is necessary. I'll
> double check before committing this patch.

Yes, please, I think it would be enough to make sure make distcheck passes.
Comment 5 Alberto Garcia 2013-09-16 23:04:56 PDT
Looks like distcheck is failing for me even without the patch:

In file included from ../../Source/WebCore/platform/graphics/Font.h:28:0,
                 from ../../Source/WebCore/platform/graphics/GraphicsContext.h:33,
                 from ../../Source/WebCore/platform/graphics/ImageBuffer.h:34,
                 from ../../Source/WebCore/platform/graphics/GeneratorGeneratedImage.h:32,
                 from ../../Source/WebCore/platform/graphics/GeneratorGeneratedImage.cpp:27:
../../Source/WebCore/platform/graphics/FontDescription.h:36:35: fatal error: WebKitFontFamilyNames.h: No such file or directory
compilation terminated.

either I'm doing something wrong or this is bug 76388 again ?
Comment 6 Carlos Garcia Campos 2013-09-16 23:42:18 PDT
(In reply to comment #5)
> Looks like distcheck is failing for me even without the patch:
> 
> In file included from ../../Source/WebCore/platform/graphics/Font.h:28:0,
>                  from ../../Source/WebCore/platform/graphics/GraphicsContext.h:33,
>                  from ../../Source/WebCore/platform/graphics/ImageBuffer.h:34,
>                  from ../../Source/WebCore/platform/graphics/GeneratorGeneratedImage.h:32,
>                  from ../../Source/WebCore/platform/graphics/GeneratorGeneratedImage.cpp:27:
> ../../Source/WebCore/platform/graphics/FontDescription.h:36:35: fatal error: WebKitFontFamilyNames.h: No such file or directory
> compilation terminated.
> 
> either I'm doing something wrong or this is bug 76388 again ?

Nah, distcheck is almost always broken, I'll try to find some time to fix it.
Comment 7 Alberto Garcia 2013-09-17 02:14:20 PDT
(In reply to comment #6)
> Nah, distcheck is almost always broken, I'll try to find some time to fix it.

Ah, that's because I tried to do distcheck from a clean build.

(which I guess it should anyway work? but that's a different issue)
Comment 8 Alberto Garcia 2013-09-17 03:56:03 PDT
Created attachment 211882 [details]
Patch

I see that we're using the stamp method in other places so I think we
should just fix the variable name now.

If the stamp thing is worth changing I would leave that for a separate
bug.
Comment 9 Alberto Garcia 2013-09-17 04:57:03 PDT
Committed r155945: <http://trac.webkit.org/changeset/155945>