ravipudi / pyv8

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

Error compiling last version #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Either doing: sudo pip install --upgrade pyv8
2. OR getting the last release:
svn checkout http://v8.googlecode.com/svn/trunk/ v8
svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8
cd v8
export V8_HOME=`pwd`
cd ../pyv8
python setup.py build
sudo python setup.py install

3. It fails during the building '_PyV8' extension

What is the expected output? What do you see instead?

Successful compilation but gcc error found.

What version of the product are you using? On what operating system?

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:    12.04
Codename:   precise

Linux 3.4.0-030400-generic #201205221131 SMP Tue May 22 15:32:22 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

building '_PyV8' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8/include 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/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

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
Ada/C/ObjC but not for C++ [enabled by default]

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8/include 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/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

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
Ada/C/ObjC but not for C++ [enabled by default]

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8/include 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8/src 
-I/usr/local/include -I/usr/include/python2.7 -c src/Context.cpp -o 
build/temp.linux-x86_64-2.7/src/Context.o -Wno-write-strings -g -O3

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
Ada/C/ObjC but not for C++ [enabled by default]

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8/include 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/v8 
-I/home/epokh/Projects/DetectorObfuscator/src/build/pyv8/build/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

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
Ada/C/ObjC but not for C++ [enabled by default]

In file included from src/Engine.cpp:12:0:
src/AST.h: In member function ‘int CAstStatement::GetPosition() const’:
src/AST.h:182:62: error: ‘class v8::internal::Statement’ has no member 
named ‘statement_pos’
src/AST.h: In member function ‘void CAstStatement::SetPosition(int)’:
src/AST.h:183:53: error: ‘class v8::internal::Statement’ has no member 
named ‘set_statement_pos’
src/AST.h: In member function ‘int 
CAstDoWhileStatement::GetConditionPosition()’:
src/AST.h:337:72: error: ‘class v8::internal::DoWhileStatement’ has no 
member named ‘condition_position’
src/AST.h: In member function ‘void 
CAstDoWhileStatement::SetConditionPosition(int)’:
src/AST.h:338:69: error: ‘class v8::internal::DoWhileStatement’ has no 
member named ‘set_condition_position’
src/AST.h: In member function ‘int 
CAstConditional::then_expression_position() const’:
src/AST.h:687:77: error: ‘class v8::internal::Conditional’ has no member 
named ‘then_expression_position’
src/AST.h: In member function ‘int 
CAstConditional::else_expression_position() const’:
src/AST.h:688:77: error: ‘class v8::internal::Conditional’ has no member 
named ‘else_expression_position’

error: command 'gcc' failed with exit status 1

Original issue reported on code.google.com by robomotic@gmail.com on 16 Oct 2013 at 12:35

GoogleCodeExporter commented 9 years ago
port to the latest v8 API, please verify with SVN trunk code after r551, thanks

Original comment by flier...@gmail.com on 17 Oct 2013 at 4:02

GoogleCodeExporter commented 9 years ago
Yes that worked great. Thanx!

Original comment by robomotic@gmail.com on 18 Oct 2013 at 2:34

GoogleCodeExporter commented 9 years ago
thanks

Original comment by flier...@gmail.com on 18 Oct 2013 at 2:36