marylinh / pyv8

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

Cannot Build Against v8 2.2.16 #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempted building on macos and centos, errored in same place. I'm wondering 
if this is related to change in ScriptData API listed on v8 changelog:
2010-05-26: Version 2.2.12
        Allowed accessors to be defined on objects rather than just object
        templates.
        Changed the ScriptData API.

Output of build on centos is below. Got this same error when building on macos 
[ error: no matching function for call to 'v8::ScriptData::New(unsigned int*, 
unsigned int)' ].

I'm going to checkout an older version of v8 and try building against that to 
see if it resolves this.

/ebs/src/pyv8-read-only# python setup.py build
running build
running build_py
running build_ext
building '_PyV8' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DISASSEMBLER -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT 
-DV8_TARGET_ARCH_IA32 -I/ebs/src/v8-read-only/include -I/ebs/src/v8-read-only 
-I/ebs/src/v8-read-only/src -I/ebs/local -I/ebs/src/boost_1_43_0 
-I/ebs/local/include/python2.6 -c src/Context.cpp -o 
build/temp.linux-i686-2.6/src/Context.o -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from src/Wrapper.h:8,
                 from src/Context.h:7,
                 from src/Context.cpp:1:
src/Exception.h:104:3: warning: no newline at end of file
src/Wrapper.h:57: warning: 'struct ILazyObject' has virtual functions but 
non-virtual destructor
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DISASSEMBLER -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT 
-DV8_TARGET_ARCH_IA32 -I/ebs/src/v8-read-only/include -I/ebs/src/v8-read-only 
-I/ebs/src/v8-read-only/src -I/ebs/local -I/ebs/src/boost_1_43_0 
-I/ebs/local/include/python2.6 -c src/Engine.cpp -o 
build/temp.linux-i686-2.6/src/Engine.o -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from src/Wrapper.h:8,
                 from src/Context.h:7,
                 from src/Engine.h:9,
                 from src/Engine.cpp:1:
src/Exception.h:104:3: warning: no newline at end of file
src/Wrapper.h:57: warning: 'struct ILazyObject' has virtual functions but 
non-virtual destructor
src/Engine.cpp: In member function 'boost::shared_ptr<CScript> 
CEngine::Compile(const std::string&, std::string, int, int, 
boost::python::api::object)':
src/Engine.cpp:360: error: no matching function for call to 
'v8::ScriptData::New(unsigned int*, unsigned int)'
/ebs/src/v8-read-only/include/v8.h:543: note: candidates are: static 
v8::ScriptData* v8::ScriptData::New(const char*, int)
error: command 'gcc' failed with exit status 1

Original issue reported on code.google.com by kort...@gmail.com on 16 Jun 2010 at 1:24

GoogleCodeExporter commented 9 years ago
The latest v8 API changes it function definition. 

Just fix it after SVN r260.

Thanks

Original comment by flier...@gmail.com on 17 Jun 2010 at 11:15