gurobokum / pyv8

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

error: 'class v8::internal::String::FlatContent' has no member named 'ToAsciiVector' #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying again to build pyv8.  Now it is failing in a different location:

building '_PyV8' extension
creating build/temp.freebsd-9.1-RELEASE-amd64-2.7
creating build/temp.freebsd-9.1-RELEASE-amd64-2.7/src
cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe 
-fno-strict-aliasing -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 
-I/root/test/v8/include -I/root/test/v8 -I/root/test/v8/src 
-I/usr/local/include -I/usr/local/include/python2.7 -c src/Utils.cpp -o 
build/temp.freebsd-9.1-RELEASE-amd64-2.7/src/Utils.o -Wno-write-strings
cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe 
-fno-strict-aliasing -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 
-I/root/test/v8/include -I/root/test/v8 -I/root/test/v8/src 
-I/usr/local/include -I/usr/local/include/python2.7 -c src/Exception.cpp -o 
build/temp.freebsd-9.1-RELEASE-amd64-2.7/src/Exception.o -Wno-write-strings
cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe 
-fno-strict-aliasing -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 
-I/root/test/v8/include -I/root/test/v8 -I/root/test/v8/src 
-I/usr/local/include -I/usr/local/include/python2.7 -c src/Context.cpp -o 
build/temp.freebsd-9.1-RELEASE-amd64-2.7/src/Context.o -Wno-write-strings
cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe 
-fno-strict-aliasing -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 
-I/root/test/v8/include -I/root/test/v8 -I/root/test/v8/src 
-I/usr/local/include -I/usr/local/include/python2.7 -c src/Engine.cpp -o 
build/temp.freebsd-9.1-RELEASE-amd64-2.7/src/Engine.o -Wno-write-strings
In file included from src/Engine.cpp:12:
src/AST.h: In function 'T 
_to_string(v8::internal::Handle<v8::internal::String>)':
src/AST.h:54: error: 'class v8::internal::String::FlatContent' has no member 
named 'ToAsciiVector'
error: command 'cc' failed with exit status 1

What is causing this?  

Original issue reported on code.google.com by rsimmo...@gmail.com on 10 Jan 2013 at 10:46

GoogleCodeExporter commented 9 years ago
This fails in a fresh install of Arch Linux as well:

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 -march=x86-64 -mtune=generic -O2 -pipe 
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG 
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector 
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB 
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 -I/root/v8/include 
-I/root/v8 -I/root/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
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe 
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG 
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector 
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB 
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 -I/root/v8/include 
-I/root/v8 -I/root/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
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe 
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG 
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector 
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB 
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 -I/root/v8/include 
-I/root/v8 -I/root/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
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe 
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG 
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector 
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB 
-DV8_NATIVE_REGEXP -DENABLE_LOGGING_AND_PROFILING -DENABLE_VMSTATE_TRACKING 
-DENABLE_DEBUGGER_SUPPORT -DV8_FAST_TLS -DV8_TARGET_ARCH_X64 -I/root/v8/include 
-I/root/v8 -I/root/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
In file included from src/Engine.cpp:12:0:
src/AST.h: In function ‘T 
_to_string(v8::internal::Handle<v8::internal::String>)’:
src/AST.h:54:45: error: ‘class v8::internal::String::FlatContent’ has no 
member named ‘ToAsciiVector’
error: command 'gcc' failed with exit status 1

Original comment by rsimmo...@gmail.com on 11 Jan 2013 at 3:39

GoogleCodeExporter commented 9 years ago
Workaround:  checkout revision 13283 (version 3.16.1)
make sure to set V8_SVN_REVISION = 13283 in setup.py

svn checkout http://v8.googlecode.com/svn/trunk/@13283 v8

Original comment by rsimmo...@gmail.com on 11 Jan 2013 at 4:20

GoogleCodeExporter commented 9 years ago
Sorry.  this is a duplicate of 146.

Original comment by rsimmo...@gmail.com on 12 Jan 2013 at 6:42

GoogleCodeExporter commented 9 years ago
Please verify the fix with SVN trunk code after r462, thanks

Original comment by flier...@gmail.com on 13 Jan 2013 at 3:14