sebdraven / pyv8

PyV8
0 stars 0 forks source link

Compilation issue on Ubuntu 13.10 - no matching function for call to ‘CAstVisitor::InitializeAstVisitor(v8::internal::Isolate*)’ #226

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi.

I cannot build latest pyv8 from svn trunk on Ubuntu 13.10, here's the output of 
the compiler:

INFO: generate DTrace probes.h ...
DEBUG: > dtrace -h -C -s /home/nss/src/pyv8-read-only/src/probes.d -o 
/home/nss/src/pyv8-read-only/src/probes.h
--------------------
INFO: generate DTrace probes.o ...
DEBUG: > dtrace -G -C -s /home/nss/src/pyv8-read-only/src/probes.d -o 
/home/nss/src/pyv8-read-only/build/probes.o
running build_py
creating build/lib.linux-x86_64-2.7
copying PyV8.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_PyV8' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/nss/src/pyv8-read-only/build/v8/include 
-I/home/nss/src/pyv8-read-only/build/v8 
-I/home/nss/src/pyv8-read-only/build/v8/src -I/usr/local/include 
-I/usr/include/python2.7 -c src/Utils.cpp -o 
build/temp.linux-x86_64-2.7/src/Utils.o -Wno-write-strings -g -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
C/ObjC but not for C++ [enabled by default]
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/nss/src/pyv8-read-only/build/v8/include 
-I/home/nss/src/pyv8-read-only/build/v8 
-I/home/nss/src/pyv8-read-only/build/v8/src -I/usr/local/include 
-I/usr/include/python2.7 -c src/Exception.cpp -o 
build/temp.linux-x86_64-2.7/src/Exception.o -Wno-write-strings -g -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
C/ObjC but not for C++ [enabled by default]
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/nss/src/pyv8-read-only/build/v8/include 
-I/home/nss/src/pyv8-read-only/build/v8 
-I/home/nss/src/pyv8-read-only/build/v8/src -I/usr/local/include 
-I/usr/include/python2.7 -c src/Context.cpp -o 
build/temp.linux-x86_64-2.7/src/Context.o -Wno-write-strings -g -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
C/ObjC but not for C++ [enabled by default]
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/nss/src/pyv8-read-only/build/v8/include 
-I/home/nss/src/pyv8-read-only/build/v8 
-I/home/nss/src/pyv8-read-only/build/v8/src -I/usr/local/include 
-I/usr/include/python2.7 -c src/Engine.cpp -o 
build/temp.linux-x86_64-2.7/src/Engine.o -Wno-write-strings -g -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
C/ObjC but not for C++ [enabled by default]
In file included from src/Engine.cpp:12:0:
src/AST.h: In constructor 
‘CAstVisitor::CAstVisitor(boost::python::api::object)’:
src/AST.h:744:49: error: no matching function for call to 
‘CAstVisitor::InitializeAstVisitor(v8::internal::Isolate*)’
     InitializeAstVisitor(v8i::Isolate::Current());
                                                 ^
src/AST.h:744:49: note: candidate is:
In file included from /home/nss/src/pyv8-read-only/build/v8/src/scopes.h:31:0,
                 from src/V8Internal.h:12,
                 from src/Engine.h:12,
                 from src/Engine.cpp:1:
/home/nss/src/pyv8-read-only/build/v8/src/ast.h:2868:8: note: void 
CAstVisitor::InitializeAstVisitor(v8::internal::Zone*)
   void InitializeAstVisitor(Zone* zone) {                           \
        ^
src/AST.h:756:3: note: in expansion of macro 
‘DEFINE_AST_VISITOR_SUBCLASS_MEMBERS’
   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
   ^
/home/nss/src/pyv8-read-only/build/v8/src/ast.h:2868:8: note:   no known 
conversion for argument 1 from ‘v8::internal::Isolate*’ to 
‘v8::internal::Zone*’
   void InitializeAstVisitor(Zone* zone) {                           \
        ^
src/AST.h:756:3: note: in expansion of macro 
‘DEFINE_AST_VISITOR_SUBCLASS_MEMBERS’
   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
   ^
In file included from src/Engine.cpp:12:0:
src/AST.h: In constructor ‘CAstObjectCollector::CAstObjectCollector()’:
src/AST.h:764:49: error: no matching function for call to 
‘CAstObjectCollector::InitializeAstVisitor(v8::internal::Isolate*)’
     InitializeAstVisitor(v8i::Isolate::Current());
                                                 ^
src/AST.h:764:49: note: candidate is:
In file included from /home/nss/src/pyv8-read-only/build/v8/src/scopes.h:31:0,
                 from src/V8Internal.h:12,
                 from src/Engine.h:12,
                 from src/Engine.cpp:1:
/home/nss/src/pyv8-read-only/build/v8/src/ast.h:2868:8: note: void 
CAstObjectCollector::InitializeAstVisitor(v8::internal::Zone*)
   void InitializeAstVisitor(Zone* zone) {                           \
        ^
src/AST.h:771:3: note: in expansion of macro 
‘DEFINE_AST_VISITOR_SUBCLASS_MEMBERS’
   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
   ^
/home/nss/src/pyv8-read-only/build/v8/src/ast.h:2868:8: note:   no known 
conversion for argument 1 from ‘v8::internal::Isolate*’ to 
‘v8::internal::Zone*’
   void InitializeAstVisitor(Zone* zone) {                           \
        ^
src/AST.h:771:3: note: in expansion of macro 
‘DEFINE_AST_VISITOR_SUBCLASS_MEMBERS’
   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
   ^
In file included from src/Engine.cpp:12:0:
src/AST.h: In constructor ‘CAstListCollector::CAstListCollector()’:
src/AST.h:791:49: error: no matching function for call to 
‘CAstListCollector::InitializeAstVisitor(v8::internal::Isolate*)’
     InitializeAstVisitor(v8i::Isolate::Current());
                                                 ^
src/AST.h:791:49: note: candidate is:
In file included from /home/nss/src/pyv8-read-only/build/v8/src/scopes.h:31:0,
                 from src/V8Internal.h:12,
                 from src/Engine.h:12,
                 from src/Engine.cpp:1:
/home/nss/src/pyv8-read-only/build/v8/src/ast.h:2868:8: note: void 
CAstListCollector::InitializeAstVisitor(v8::internal::Zone*)
   void InitializeAstVisitor(Zone* zone) {                           \
        ^
src/AST.h:798:3: note: in expansion of macro 
‘DEFINE_AST_VISITOR_SUBCLASS_MEMBERS’
   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
   ^
/home/nss/src/pyv8-read-only/build/v8/src/ast.h:2868:8: note:   no known 
conversion for argument 1 from ‘v8::internal::Isolate*’ to 
‘v8::internal::Zone*’
   void InitializeAstVisitor(Zone* zone) {                           \
        ^
src/AST.h:798:3: note: in expansion of macro 
‘DEFINE_AST_VISITOR_SUBCLASS_MEMBERS’
   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
   ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Original issue reported on code.google.com by nsa...@gmail.com on 23 Jan 2014 at 2:35

GoogleCodeExporter commented 8 years ago
V8 has changed their internal API again :S

Original comment by flier...@gmail.com on 29 Jan 2014 at 6:37

GoogleCodeExporter commented 8 years ago

Original comment by flier...@gmail.com on 29 Jan 2014 at 6:37