code-google-com / pyv8

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

Doesn't compile on gentoo #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pip install pyv8

x86_64-pc-linux-gnu-g++ -pthread -fPIC -DBOOST_PYTHON_STATIC_LIB 
-Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python2.7 -c 
src/Engine.cpp -o build/temp.linux-x86_64-2.7/src/Engine.o

In file included from src/Context.h:7:0,

                 from src/Engine.h:7,

                 from src/Engine.cpp:1:

src/Wrapper.h: In member function ‘const boost::python::api::object& 
CJavascriptArray::ArrayIterator::dereference() const’:

src/Wrapper.h:115:66: warning: returning reference to temporary [enabled by 
default]

x86_64-pc-linux-gnu-g++ -pthread -fPIC -DBOOST_PYTHON_STATIC_LIB 
-Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python2.7 -c 
src/Wrapper.cpp -o build/temp.linux-x86_64-2.7/src/Wrapper.o

In file included from src/Wrapper.cpp:1:0:

src/Wrapper.h: In member function ‘const boost::python::api::object& 
CJavascriptArray::ArrayIterator::dereference() const’:

src/Wrapper.h:115:66: warning: returning reference to temporary [enabled by 
default]

src/Wrapper.cpp: In static member function ‘static void 
CPythonObject::SetupObjectTemplate(v8::Handle<v8::ObjectTemplate>)’:

src/Wrapper.cpp:311:84: error: invalid conversion from 
‘v8::Handle<v8::Boolean> (*)(v8::Local<v8::String>, const 
v8::AccessorInfo&)’ to ‘v8::NamedPropertyQuery {aka v8::Handle<v8::Integer> 
(*)(v8::Local<v8::String>, const v8::AccessorInfo&)}’ [-fpermissive]

/usr/include/v8.h:2392:8: error:   initializing argument 3 of ‘void 
v8::ObjectTemplate::SetNamedPropertyHandler(v8::NamedPropertyGetter, 
v8::NamedPropertySetter, v8::NamedPropertyQuery, v8::NamedPropertyDeleter, 
v8::NamedPropertyEnumerator, v8::Handle<v8::Value>)’ [-fpermissive]

src/Wrapper.cpp:312:94: error: invalid conversion from 
‘v8::Handle<v8::Boolean> (*)(uint32_t, const v8::AccessorInfo&) {aka 
v8::Handle<v8::Boolean> (*)(unsigned int, const v8::AccessorInfo&)}’ to 
‘v8::IndexedPropertyQuery {aka v8::Handle<v8::Integer> (*)(unsigned int, 
const v8::AccessorInfo&)}’ [-fpermissive]

/usr/include/v8.h:2415:8: error:   initializing argument 3 of ‘void 
v8::ObjectTemplate::SetIndexedPropertyHandler(v8::IndexedPropertyGetter, 
v8::IndexedPropertySetter, v8::IndexedPropertyQuery, 
v8::IndexedPropertyDeleter, v8::IndexedPropertyEnumerator, 
v8::Handle<v8::Value>)’ [-fpermissive]

error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1

What is the expected output? What do you see instead?
Something that compiles ? :)

What version of the product are you using? On what operating system?
dev-libs/boost-1.48.0-r2
dev-lang/v8-3.12.19.3

Original issue reported on code.google.com by g...@gootz.net on 22 Aug 2012 at 2:13

GoogleCodeExporter commented 9 years ago
Please update to v8 r12466 and pyv8 r446, I could build it on Win7 and Debian 6

pip install svn+http://pyv8.googlecode.com/svn/trunk/

Original comment by flier...@gmail.com on 7 Sep 2012 at 3:02