Bug 120915
Summary: | "ISO C++ forbids taking the address of a bound member function" when building jsc on gtk | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alon Zakai <alonzakai> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | zan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Alon Zakai
Running Tools/Scripts/build-jsc --gtk on latest webkit svn gives me output that ends with
CXX Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o
In file included from ../../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:72:0:
../../Source/JavaScriptCore/LLIntDesiredOffsets.h: In static member function ‘static const unsigned int* JSC::LLIntOffsetsExtractor::dummy()’:
../../Source/JavaScriptCore/LLIntDesiredOffsets.h:376143:1: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function. Say ‘&JSC::VM::exception’ [-fpermissive]
../../Source/JavaScriptCore/LLIntDesiredOffsets.h:376143:1: error: invalid cast from type ‘JSC::JSValue (JSC::VM::*)()const’ to type ‘ptrdiff_t {aka long int}’
../../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:77:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o] Error 1
Failed to build WebKit using 'make'!
This is with gcc-4.7.2 on Ubuntu 12.10.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Zan Dobersek
What revision are you using?
Can you try again on a clean build?
I'm not experiencing any problems when using GCC 4.7.3 on Ubuntu 13.04. Perhaps the generated LLIntDesiredOffsets.h header is corrupted.
Alon Zakai
This was on svn rev 155226 (from last friday). I updated to 155356 now. Same issue. I have no local changes, svn diff shows nothing.
But I found that when I delete that header file, then it builds ok. So I guess the only issue is the build system did not automatically regenerate it or something like that?