WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
Bug 120915
"ISO C++ forbids taking the address of a bound member function" when building jsc on gtk
https://bugs.webkit.org/show_bug.cgi?id=120915
Summary
"ISO C++ forbids taking the address of a bound member function" when building...
Alon Zakai
Reported
2013-09-06 18:53:39 PDT
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
Comment 1
2013-09-07 00:36:08 PDT
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
Comment 2
2013-09-09 10:38:20 PDT
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?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug