venden / pyv8

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

building pyv8 fails on x64 ubuntu server #203

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get v8 source and build as described in 
https://code.google.com/p/v8/wiki/BuildingWithGYP
2. Set V8_HOME to the source dir of v8
3. Get pyv8 source and try to build using setup.py as described in 
https://code.google.com/p/pyv8/wiki/HowToBuild 

What is the expected output? What do you see instead?
Expected: Successfull build. Result: Building fails, with 
/home/joshua/src/thugDeps/v8/include/v8.h:477:5: error: cannot convert 
‘v8::Primitive*’ to ‘v8::Object* volatile’ in assignment
error: command 'gcc' failed with exit status 1

See http://pastebin.com/RjZZHMyU for full build log. 

What version of the product are you using? On what operating system?
Both v8 and pyv8 are the most recent versions cloned from git. python is 
2.7.3. The host is a ubuntu x64 server (uname -a: Linux ubuntu-server-vm 
3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 
x86_64 x86_64 GNU/Linux)

Please provide any additional information below.
In the build instructions for pyv8 it was mentioned that the SConstruct file 
needs to be modified. I was unable to locate this file within the v8 source, 
may the problem be related to this? The build.py tries to apply the patches to 
that file, anyhow. Also note that `setup.py build` prints:

INFO: we will try to use the system 'svn' command to checkout/update V8 code
Skipped '/home/joshua/src/thugDeps/v8'
INFO: scons is installed; we can at least attempt to build v8
ERROR: fail to checkout and build v8, [Errno 2] No such file or directory: 
'/home/joshua/src/thugDeps/v8/SConstruct'

Original issue reported on code.google.com by 0xC...@gmail.com on 15 Sep 2013 at 2:23

GoogleCodeExporter commented 8 years ago
It seems setup.py can't checkout Google V8 to folder 
/home/joshua/src/thugDeps/v8

Please ensure you have installed Subversion and the folder has permission to 
write, thanks

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

GoogleCodeExporter commented 8 years ago
In fact, the latest V8 code use GYP instead of SConstruct to build its library, 
so, just forgot the wiki and use setup.py do everything :)

Original comment by flier...@gmail.com on 18 Sep 2013 at 3:15

GoogleCodeExporter commented 8 years ago
In fact there is no official git repos, I was using 
https://github.com/flier/pyv8 which has the most recent (source code) change ~1 
year ago, my mistake. Using the svn sources the problem did (of course) not 
occur. 

Original comment by 0xC...@gmail.com on 19 Sep 2013 at 11:20