Status: New
Owner: ----
New issue 2839 by [email protected]: Compile time error in
natives.h:34:38
http://code.google.com/p/v8/issues/detail?id=2839
In file included from
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:8:0:
/home/brandon/node-module/v8/src/natives.h: At global scope:
/home/brandon/node-module/v8/src/natives.h:34:38: error: typedef
‘v8::internal::NativeSourceCallback’ is initialized (use decltype instead)
typedef bool (*NativeSourceCallback)(Vector<const char> name,
^
/home/brandon/node-module/v8/src/natives.h:34:38: error: ‘Vector’ was not
declared in this scope
/home/brandon/node-module/v8/src/natives.h:34:45: error: expected
primary-expression before ‘const’
typedef bool (*NativeSourceCallback)(Vector<const char> name,
^
/home/brandon/node-module/v8/src/natives.h:35:38: error: ‘Vector’ was not
declared in this scope
Vector<const char> source,
^
/home/brandon/node-module/v8/src/natives.h:35:45: error: expected
primary-expression before ‘const’
Vector<const char> source,
^
/home/brandon/node-module/v8/src/natives.h:36:38: error: expected
primary-expression before ‘int’
int index);
^
/home/brandon/node-module/v8/src/natives.h:56:10: error: ‘Vector’ does not
name a type
static Vector<const char> GetRawScriptSource(int index);
^
/home/brandon/node-module/v8/src/natives.h:57:10: error: ‘Vector’ does not
name a type
static Vector<const char> GetScriptName(int index);
^
/home/brandon/node-module/v8/src/natives.h:58:10: error: ‘Vector’ does not
name a type
static Vector<const byte> GetScriptsSource();
^
/home/brandon/node-module/v8/src/natives.h:59:35: error: ‘Vector’ has not
been declared
static void SetRawScriptsSource(Vector<const char> raw_source);
^
/home/brandon/node-module/v8/src/natives.h:59:41: error: expected ‘,’ or
‘...’ before ‘<’ token
static void SetRawScriptsSource(Vector<const char> raw_source);
^
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:40:73: error: no
member function ‘GetRawScriptSource’ declared in
‘v8::internal::NativesCollection<(v8::internal::NativeType)2u>’
Vector<const char> NativesCollection<D8>::GetRawScriptSource(int index) {
^
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:46:68: error: no
member function ‘GetScriptName’ declared in
‘v8::internal::NativesCollection<(v8::internal::NativeType)2u>’
Vector<const char> NativesCollection<D8>::GetScriptName(int index) {
^
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:52:62: error: no
member function ‘GetScriptsSource’ declared in
‘v8::internal::NativesCollection<(v8::internal::NativeType)2u>’
Vector<const byte> NativesCollection<D8>::GetScriptsSource() {
^
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:57:8: error:
template-id ‘SetRawScriptsSource<>’ for ‘void
v8::internal::NativesCollection<(v8::internal::NativeType)2u>::SetRawScriptsSource(v8::internal::Vector<const
char>)’ does not match any template declaration
void NativesCollection<D8>::SetRawScriptsSource(Vector<const char>
raw_source) {
^
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:57:80: note: saw 1
‘template<>’, need 2 for specializing a member function template
void NativesCollection<D8>::SetRawScriptsSource(Vector<const char>
raw_source) {
^
/home/brandon/node-module/v8/out/native/obj/gen/d8-js.cc:16:22: warning:
‘v8::internal::raw_sources’ defined but not used [-Wunused-variable]
static const char* raw_sources = reinterpret_cast<const char*>(sources);
^
make[1]: ***
[/home/brandon/node-module/v8/out/native/obj.target/d8/gen/d8-js.o] Error 1
make[1]: Leaving directory `/home/brandon/node-module/v8/out'
make: *** [native] Error 2
I get the same error regardless of gcc version I use.
Used:
make werror=no native
Checked out stable branch via:
svn checkout http://v8.googlecode.com/svn/trunk/ v8
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.