wyhgood / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

Compilation error #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

While compiling PyV8 -r535 against V8 -r16670 I got this compilation error

x86_64-pc-linux-gnu-g++ -pthread -fPIC -DBOOST_PYTHON_STATIC_LIB 
-DV8_NATIVE_REGEXP -DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/buffer/v8/include -I/home/buffer/v8 -I/home/buffer/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
In file included from src/Locker.h:3:0,
                 from src/Utils.cpp:11:
src/Exception.h: In copy constructor 
'CJavascriptStackTrace::CJavascriptStackTrace(const CJavascriptStackTrace&)':
src/Exception.h:49:21: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:49:21: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In member function 'int CJavascriptStackTrace::GetFrameCount() 
const':
src/Exception.h:56:47: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:56:47: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
In file included from src/Locker.h:3:0,
                 from src/Utils.cpp:11:
src/Exception.h: In copy constructor 
'CJavascriptStackFrame::CJavascriptStackFrame(const CJavascriptStackFrame&)':
src/Exception.h:98:21: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:98:21: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In member function 'int CJavascriptStackFrame::GetLineNumber() 
const':
src/Exception.h:105:47: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:105:47: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In member function 'int CJavascriptStackFrame::GetColumn() 
const':
src/Exception.h:106:43: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:106:43: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In member function 'bool CJavascriptStackFrame::IsEval() 
const':
src/Exception.h:109:41: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:109:41: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In member function 'bool 
CJavascriptStackFrame::IsConstructor() const':
src/Exception.h:110:48: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:110:48: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In member function 'bool 
CJavascriptStackFrame::IsConstructor() const':
src/Exception.h:110:48: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:110:48: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In constructor 
'CJavascriptException::CJavascriptException(v8::TryCatch&, PyObject*)':
src/Exception.h:127:21: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:127:21: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Exception.h: In copy constructor 
'CJavascriptException::CJavascriptException(const CJavascriptException&)':
src/Exception.h:142:21: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Exception.h:142:21: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
In file included from src/Locker.h:4:0,
                 from src/Utils.cpp:11:
src/Context.h: In member function 'void CContext::Enter()':
src/Context.h:58:38: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Context.h:58:38: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Context.h: In member function 'void CContext::Leave()':
src/Context.h:59:38: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Context.h:59:38: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Utils.cpp: In function 'v8::Handle<v8::String> ToString(const string&)':
src/Utils.cpp:16:19: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Utils.cpp:16:19: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Utils.cpp: In function 'v8::Handle<v8::String> ToString(const wstring&)':
src/Utils.cpp:22:19: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Utils.cpp:22:19: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Utils.cpp: In function 'v8::Handle<v8::String> 
ToString(boost::python::api::object)':
src/Utils.cpp:42:19: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Utils.cpp:42:19: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
src/Utils.cpp: In function 'v8::Handle<v8::String> DecodeUtf8(const string&)':
src/Utils.cpp:76:19: error: no matching function for call to 
'v8::HandleScope::HandleScope()'
src/Utils.cpp:76:19: note: candidates are:
/home/buffer/v8/include/v8.h:786:3: note: v8::HandleScope::HandleScope(const 
v8::HandleScope&)
/home/buffer/v8/include/v8.h:786:3: note:   candidate expects 1 argument, 0 
provided
/home/buffer/v8/include/v8.h:759:3: note: 
v8::HandleScope::HandleScope(v8::Isolate*)
/home/buffer/v8/include/v8.h:759:3: note:   candidate expects 1 argument, 0 
provided
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1

Additional information

buffer@rigel ~/pyv8 $ svn info
Path: .
Working Copy Root Path: /home/buffer/pyv8
URL: http://pyv8.googlecode.com/svn/trunk
Repository Root: http://pyv8.googlecode.com/svn
Repository UUID: 3b770cb8-f9e6-11dd-ac5b-dfceb64ead24
Revision: 535
Node Kind: directory
Schedule: normal
Last Changed Author: flier.lu@gmail.com
Last Changed Rev: 535
Last Changed Date: 2013-09-11 04:45:25 +0200 (Wed, 11 Sep 2013)

buffer@rigel ~/v8 $ svn info
Path: .
Working Copy Root Path: /home/buffer/v8
URL: http://v8.googlecode.com/svn/trunk
Repository Root: http://v8.googlecode.com/svn
Repository UUID: ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Revision: 16680
Node Kind: directory
Schedule: normal
Last Changed Author: dslomov@chromium.org
Last Changed Rev: 16670
Last Changed Date: 2013-09-12 11:02:59 +0200 (Thu, 12 Sep 2013)

Original issue reported on code.google.com by angelo.d...@gmail.com on 12 Sep 2013 at 11:32

GoogleCodeExporter commented 9 years ago
please verify with SVN trunk code after r536

Original comment by flier...@gmail.com on 13 Sep 2013 at 2:37

GoogleCodeExporter commented 9 years ago
I confirm that -r536 solves the issue.

Original comment by angelo.d...@gmail.com on 13 Sep 2013 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 13 Sep 2013 at 8:30