navcat / pyv8

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

Compilation error #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While compiling PyV8 -532 against V8 -r16594 I got this 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/Engine.cpp -o 
build/temp.linux-x86_64-2.7/src/Engine.o -Wno-write-strings -g -O3
src/Engine.cpp: In static member function 'static void CEngine::Expose()':
src/Engine.cpp:98:46: error: invalid conversion from 'void (*)(v8::Isolate*)' 
to 'void (*)(int)' [-fpermissive]
src/Engine.cpp:129:46: error: 'GetCurrentThreadId' is not a member of 'v8::V8'
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 

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: 532
Node Kind: directory
Schedule: normal
Last Changed Author: flier.lu@gmail.com
Last Changed Rev: 532
Last Changed Date: 2013-09-03 05:10:35 +0200 (Tue, 03 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: 16594
Node Kind: directory
Schedule: normal
Last Changed Author: dslomov@chromium.org
Last Changed Rev: 16593
Last Changed Date: 2013-09-09 13:58:54 +0200 (Mon, 09 Sep 2013)

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

GoogleCodeExporter commented 9 years ago
Fixed, remove the deprecated V8 APIs, please verify the issue with latest SVN 
trunk code after r533

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

GoogleCodeExporter commented 9 years ago
Seems like the issue is solved but -r533 does not compile here. Following the 
compilation error

src/Wrapper.cpp: In static member function 'static void 
ObjectTracer::WeakCallback(const v8::WeakCallbackData<v8::Value, 
ObjectTracer>&)':
src/Wrapper.cpp:1771:3: error: 'value' was not declared in this scope
src/Wrapper.cpp:1771:3: note: suggested alternative:
/usr/include/boost/bind/bind.hpp:112:25: note:   'boost::_bi::value'
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1

Original comment by angelo.d...@gmail.com on 10 Sep 2013 at 6:54

GoogleCodeExporter commented 9 years ago
sorry, missed a debug assert :) please try again with r534

Original comment by flier...@gmail.com on 10 Sep 2013 at 8:53

GoogleCodeExporter commented 9 years ago
Still no luck with -r534

src/Wrapper.cpp: In static member function 'static void 
ObjectTracer::WeakCallback(const v8::WeakCallbackData<v8::Value, 
ObjectTracer>&)':
src/Wrapper.cpp:1771:3: error: 'class v8::Value' has no member named 
'IsNearDeath'
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1

Original comment by angelo.d...@gmail.com on 10 Sep 2013 at 9:57

GoogleCodeExporter commented 9 years ago
sorry, just remove the asset will be fine, try r535

Original comment by flier...@gmail.com on 11 Sep 2013 at 3:56

GoogleCodeExporter commented 9 years ago
I confirm everything works fine now. Thanks.

Original comment by angelo.d...@gmail.com on 11 Sep 2013 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 11 Sep 2013 at 7:22