weijia / pyv8

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

PyV8 -r566 compilation error #219

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While compiling PyV8 -r566 I got the following compilation error

building '_PyV8' extension
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
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/Exception.cpp -o 
build/temp.linux-x86_64-2.7/src/Exception.o -Wno-write-strings -g -O3
src/Exception.cpp: In member function 'const string 
CJavascriptException::GetName()':
src/Exception.cpp:165:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'const string 
CJavascriptException::GetMessage()':
src/Exception.cpp:177:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'const string 
CJavascriptException::GetScriptName()':
src/Exception.cpp:187:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'int 
CJavascriptException::GetLineNumber()':
src/Exception.cpp:203:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'int 
CJavascriptException::GetStartPosition()':
src/Exception.cpp:211:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'int 
CJavascriptException::GetEndPosition()':
src/Exception.cpp:219:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'int 
CJavascriptException::GetStartColumn()':
src/Exception.cpp:227:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'int 
CJavascriptException::GetEndColumn()':
src/Exception.cpp:235:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'const string 
CJavascriptException::GetSourceLine()':
src/Exception.cpp:243:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In member function 'const string 
CJavascriptException::GetStackTrace()':
src/Exception.cpp:259:3: error: 'InContext' is not a member of 'v8::Context'
src/Exception.cpp: In static member function 'static const string 
CJavascriptException::Extract(v8::TryCatch&)':
src/Exception.cpp:274:3: error: 'InContext' is not a member of 'v8::Context'
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: 566
Node Kind: directory
Schedule: normal
Last Changed Author: flier.lu@gmail.com
Last Changed Rev: 566
Last Changed Date: 2013-12-25 03:08:09 +0100 (Wed, 25 Dec 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: 18418
Node Kind: directory
Schedule: normal
Last Changed Author: yangguo@chromium.org
Last Changed Rev: 18413
Last Changed Date: 2013-12-23 17:17:49 +0100 (Mon, 23 Dec 2013)

Original issue reported on code.google.com by angelo.d...@gmail.com on 25 Dec 2013 at 3:50

GoogleCodeExporter commented 9 years ago
Please try the latest SVN trunk code, thanks

Original comment by flier...@gmail.com on 7 Jan 2014 at 11:00

GoogleCodeExporter commented 9 years ago
Updated to -r568 but the same compilation error still occurs.

Original comment by angelo.d...@gmail.com on 7 Jan 2014 at 11:05

GoogleCodeExporter commented 9 years ago
Tested with PyV8 -r570 and V8 -r18493. Same compilation error. 

I am not sure about it but from what I am reading from the V8 code it seems to 
me 
these lines should be modified in order call v8::Isolate::InContext in spite of 
the (not 
existing) v8::Context::InContext.

Original comment by angelo.d...@gmail.com on 8 Jan 2014 at 12:51

GoogleCodeExporter commented 9 years ago
Please try the PyV8 after r572, sorry for the misunderstand :)

Original comment by flier...@gmail.com on 10 Jan 2014 at 3:34

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

Original comment by angelo.d...@gmail.com on 10 Jan 2014 at 8:39

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 11 Jan 2014 at 10:22