code-google-com / pyv8

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

Support for FreeBSD #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to compile under FreeBSD
2.
3.

What is the expected output? What do you see instead?
Compilation
I see errors with binding to boost lib like here on the compile page.
Please provide any additional information below.

Original issue reported on code.google.com by equ...@gmail.com on 28 Apr 2011 at 1:10

GoogleCodeExporter commented 9 years ago
I will try to port it to FreeBSD later

Original comment by flier...@gmail.com on 4 May 2011 at 5:52

GoogleCodeExporter commented 9 years ago
Please verify it with PyV8 SVN trunk code after r376, it seems worked on 
FreeBSD 8

[flier@FREEBSD ~/pyv8]$ uname -a 
FreeBSD FREEBSD.localdomain 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 
02:24:46 

Original comment by flier...@gmail.com on 16 Jun 2011 at 7:55

GoogleCodeExporter commented 9 years ago
It still won't work.
Even if I provide the boost_home and v8_home paths.

INFO: Found Google v8 base on V8_HOME </usr/local/>
running build
INFO: we will try to update v8 to the latest SVN trunk at 
<http://v8.googlecode.com/svn/trunk/>
====================
INFO: Checking out or Updating Google V8 code from SVN...

INFO: we will try to use the system 'svn' command to checkout/update V8 code
--------------------
INFO: checkout or update Google V8 code from SVN ...
DEBUG: > svn up /usr/local/
Skipped '.'
Summary of conflicts:
  Skipped paths: 1
====================
INFO: Installing or updating GYP...
--------------------
INFO: Check out GYP from SVN ...
DEBUG: > gmake dependencies
ERROR: Check out GYP from SVN failed: code=2
DEBUG: gmake: *** No rule to make target `dependencies'.  Stop.

====================
INFO: Patching the GYP scripts
ERROR: fail to checkout and build v8, [Errno 2] No such file or directory: 
'/usr/local/build/standalone.gypi'
Traceback (most recent call last):
  File "setup.py", line 527, in prepare_v8
    build_v8()
  File "setup.py", line 412, in build_v8
    with open(gypi, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/build/standalone.gypi'
running build_py
running build_ext
building '_PyV8' extension
cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -O2 -pipe 
-fno-strict-aliasing -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP 
-DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 -I/usr/local/include 
-I/usr/local/ -I/usr/local/src -I/usr/local/ -I/usr/local/include/python2.7 -c 
src/Utils.cpp -o build/temp.freebsd-8.2-STABLE-amd64-2.7/src/Utils.o 
-Wno-write-strings -g -O3
In file included from src/Utils.cpp:5:
src/Utils.h:46:28: error: boost/python.hpp: No such file or directory
In file included from src/Utils.cpp:12:
src/V8Internal.h:7:20: error: src/v8.h: No such file or directory
src/V8Internal.h:9:30: error: src/bootstrapper.h: No such file or directory
src/V8Internal.h:10:25: error: src/natives.h: No such file or directory
src/V8Internal.h:11:26: error: src/platform.h: No such file or directory
src/V8Internal.h:12:24: error: src/scopes.h: No such file or directory
src/V8Internal.h:14:23: error: src/debug.h: No such file or directory
src/V8Internal.h:16:27: error: src/serialize.h: No such file or directory
src/V8Internal.h:17:28: error: src/stub-cache.h: No such file or directory
src/V8Internal.h:18:22: error: src/heap.h: No such file or directory
src/V8Internal.h:20:24: error: src/parser.h: No such file or directory
src/V8Internal.h:21:26: error: src/compiler.h: No such file or directory
src/V8Internal.h:22:25: error: src/scanner.h: No such file or directory
src/V8Internal.h:24:21: error: src/api.h: No such file or directory
In file included from src/Utils.cpp:5:
src/Utils.h:47: error: 'boost' has not been declared
src/Utils.h:47: error: 'python' is not a namespace-name
src/Utils.h:47: error: expected namespace-name before ';' token
In file included from src/Utils.cpp:5:
src/Utils.h:98: error: 'v8::Handle<v8::String> ToString' redeclared as 
different kind of symbol
src/Utils.h:97: error: previous declaration of 'v8::Handle<v8::String> 
ToString(const std::wstring&)'
src/Utils.h:98: error: 'py' has not been declared
In file included from src/Locker.h:3,
                 from src/Utils.cpp:11:
src/Exception.h:28: error: 'py' has not been declared
src/Exception.h:28: error: expected ',' or '...' before '*' token
src/Exception.h: In copy constructor 
'CJavascriptStackTrace::CJavascriptStackTrace(const CJavascriptStackTrace&)':
src/Exception.h:51: error: 'class v8::Persistent<v8::StackTrace>' has no member 
named 'Reset'
src/Exception.h: In copy constructor 
'CJavascriptStackFrame::CJavascriptStackFrame(const CJavascriptStackFrame&)':
src/Exception.h:100: error: 'class v8::Persistent<v8::StackFrame>' has no 
member named 'Reset'
src/Exception.h: At global scope:
src/Exception.h:170: error: 'py' has not been declared
src/Exception.h:170: error: expected ',' or '...' before 'file'
src/Exception.h: In constructor 
'CJavascriptException::CJavascriptException(v8::TryCatch&, PyObject*)':
src/Exception.h:129: error: 'struct v8::Persistent<v8::Value>' has no member 
named 'Reset'
src/Exception.h:130: error: 'struct v8::Persistent<v8::Value>' has no member 
named 'Reset'
src/Exception.h:131: error: 'class v8::Persistent<v8::Message>' has no member 
named 'Reset'
src/Exception.h: In copy constructor 
'CJavascriptException::CJavascriptException(const CJavascriptException&)':
src/Exception.h:144: error: 'struct v8::Persistent<v8::Value>' has no member 
named 'Reset'
src/Exception.h:145: error: 'struct v8::Persistent<v8::Value>' has no member 
named 'Reset'
src/Exception.h:146: error: 'class v8::Persistent<v8::Message>' has no member 
named 'Reset'
src/Exception.h: In destructor 'virtual 
CJavascriptException::~CJavascriptException()':
src/Exception.h:151: warning: 'Dispose' is deprecated (declared at 
/usr/local/include/v8.h:449)
src/Exception.h:152: warning: 'Dispose' is deprecated (declared at 
/usr/local/include/v8.h:4996)
In file included from src/Context.h:7,
                 from src/Locker.h:4,
                 from src/Utils.cpp:11:
src/Wrapper.h: At global scope:
src/Wrapper.h:24: error: expected unqualified-id before '<' token
src/Wrapper.h:24: error: expected ',' or '...' before '<' token
src/Wrapper.h:25: error: expected unqualified-id before '<' token
src/Wrapper.h:25: error: expected ',' or '...' before '<' token
src/Wrapper.h:26: error: expected unqualified-id before '<' token
src/Wrapper.h:26: error: expected ',' or '...' before '<' token
src/Wrapper.h:27: error: expected unqualified-id before '<' token
src/Wrapper.h:27: error: expected ',' or '...' before '<' token
src/Wrapper.h:28: error: expected unqualified-id before '<' token
src/Wrapper.h:28: error: expected ',' or '...' before '<' token
src/Wrapper.h:30: error: expected unqualified-id before '<' token
src/Wrapper.h:30: error: expected ',' or '...' before '<' token
src/Wrapper.h:31: error: expected unqualified-id before '<' token
src/Wrapper.h:31: error: expected ',' or '...' before '<' token
src/Wrapper.h:32: error: expected unqualified-id before '<' token
src/Wrapper.h:32: error: expected ',' or '...' before '<' token
src/Wrapper.h:33: error: expected unqualified-id before '<' token
src/Wrapper.h:33: error: expected ',' or '...' before '<' token
src/Wrapper.h:34: error: expected unqualified-id before '<' token
src/Wrapper.h:34: error: expected ',' or '...' before '<' token
src/Wrapper.h:36: error: expected unqualified-id before '<' token
src/Wrapper.h:36: error: expected ',' or '...' before '<' token
src/Wrapper.h:45: error: 'py' has not been declared
src/Wrapper.h:45: error: expected ',' or '...' before 'obj'
src/Wrapper.h:48: error: 'py' has not been declared
src/Wrapper.h:48: error: expected ',' or '...' before 'obj'
src/Wrapper.h:49: error: 'py' has not been declared
src/Wrapper.h:49: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:49: error: expected ';' before 'Unwrap'
src/Wrapper.h:84: error: 'py' has not been declared
src/Wrapper.h:84: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:84: error: expected ';' before 'GetAttr'
src/Wrapper.h:85: error: 'py' has not been declared
src/Wrapper.h:85: error: expected ',' or '...' before 'value'
src/Wrapper.h:88: error: 'py' has not been declared
src/Wrapper.h:88: error: ISO C++ forbids declaration of 'list' with no type
src/Wrapper.h:88: error: expected ';' before 'GetAttrList'
src/Wrapper.h:104: error: 'py' has not been declared
src/Wrapper.h:104: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:104: error: expected ';' before 'Wrap'
src/Wrapper.h:105: error: 'py' has not been declared
src/Wrapper.h:105: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:105: error: expected ';' before 'Wrap'
src/Wrapper.h:107: error: 'py' has not been declared
src/Wrapper.h:107: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:107: error: expected ';' before 'Wrap'
src/Wrapper.h: In destructor 'virtual CJavascriptObject::~CJavascriptObject()':
src/Wrapper.h:79: warning: 'Dispose' is deprecated (declared at 
/usr/local/include/v8.h:4996)
src/Wrapper.h: At global scope:
src/Wrapper.h:127: error: 'py' has not been declared
src/Wrapper.h:127: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:127: error: expected ';' before 'm_items'
src/Wrapper.h:131: error: 'py' was not declared in this scope
src/Wrapper.h:131: error: wrong number of template arguments (2, should be 5)
/usr/local/include/boost/iterator/iterator_facade.hpp:43: error: provided for 
'template<class I, class V, class TC, class R, class D> class 
boost::iterator_facade'
src/Wrapper.h:145: error: 'reference' does not name a type
src/Wrapper.h:154: error: 'py' has not been declared
src/Wrapper.h:154: error: expected `)' before 'items'
src/Wrapper.h:161: error: 'py' has not been declared
src/Wrapper.h:161: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:161: error: expected ';' before 'GetItem'
src/Wrapper.h:162: error: 'py' has not been declared
src/Wrapper.h:162: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:162: error: expected ';' before 'SetItem'
src/Wrapper.h:163: error: 'py' has not been declared
src/Wrapper.h:163: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:163: error: expected ';' before 'DelItem'
src/Wrapper.h:164: error: 'py' has not been declared
src/Wrapper.h:164: error: expected ',' or '...' before 'item'
src/Wrapper.h:177: error: 'py' has not been declared
src/Wrapper.h:177: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:177: error: expected ';' before 'Call'
src/Wrapper.h:191: error: 'py' has not been declared
src/Wrapper.h:191: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:191: error: expected ';' before 'CallWithArgs'
src/Wrapper.h:192: error: 'py' has not been declared
src/Wrapper.h:192: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:192: error: expected ';' before 'CreateWithArgs'
src/Wrapper.h:194: error: 'py' has not been declared
src/Wrapper.h:194: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:194: error: expected ';' before 'Apply'
src/Wrapper.h:195: error: 'py' has not been declared
src/Wrapper.h:195: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:195: error: expected ';' before 'Invoke'
src/Wrapper.h:207: error: 'py' has not been declared
src/Wrapper.h:207: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:207: error: expected ';' before 'GetOwner'
src/Wrapper.h: In destructor 'virtual 
CJavascriptFunction::~CJavascriptFunction()':
src/Wrapper.h:186: warning: 'Dispose' is deprecated (declared at 
/usr/local/include/v8.h:4996)
src/Wrapper.h: At global scope:
src/Wrapper.h:219: error: 'py' was not declared in this scope
src/Wrapper.h:219: error: template argument 1 is invalid
src/Wrapper.h:225: error: expected unqualified-id before '<' token
src/Wrapper.h:225: error: expected ',' or '...' before '<' token
src/Wrapper.h:229: error: 'py' has not been declared
src/Wrapper.h:229: error: expected ',' or '...' before '*' token
src/Wrapper.h:233: error: 'py' has not been declared
src/Wrapper.h:233: error: ISO C++ forbids declaration of 'object' with no type
src/Wrapper.h:233: error: expected ';' before '*' token
src/Wrapper.h:235: error: expected `;' before 'void'
src/Wrapper.h:237: error: 'py' has not been declared
src/Wrapper.h:237: error: expected ',' or '...' before '*' token
src/Wrapper.h:239: error: 'py' has not been declared
src/Wrapper.h:239: error: expected ',' or '...' before 'obj'
src/Wrapper.h:249: error: expected unqualified-id before '<' token
src/Wrapper.h:249: error: expected ',' or '...' before '<' token
In file included from src/Locker.h:4,
                 from src/Utils.cpp:11:
src/Context.h:27: error: 'py' has not been declared
src/Context.h:27: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:27: error: expected ';' before 'GetCurrent'
src/Context.h:38: error: 'py' has not been declared
src/Context.h:38: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:38: error: expected ';' before 'm_global'
src/Context.h:43: error: 'py' has not been declared
src/Context.h:43: error: expected `)' before 'global'
src/Context.h:52: error: 'py' has not been declared
src/Context.h:52: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:52: error: expected ';' before 'GetGlobal'
src/Context.h:54: error: 'py' has not been declared
src/Context.h:54: error: ISO C++ forbids declaration of 'str' with no type
src/Context.h:54: error: expected ';' before 'GetSecurityToken'
src/Context.h:55: error: 'py' has not been declared
src/Context.h:55: error: expected ',' or '...' before 'token'
src/Context.h:61: error: 'py' has not been declared
src/Context.h:61: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:61: error: expected ';' before 'Evaluate'
src/Context.h:63: error: 'py' has not been declared
src/Context.h:63: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:63: error: expected ';' before 'EvaluateW'
src/Context.h:66: error: 'py' has not been declared
src/Context.h:66: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:66: error: expected ';' before 'GetEntered'
src/Context.h:67: error: 'py' has not been declared
src/Context.h:67: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:67: error: expected ';' before 'GetCurrent'
src/Context.h:68: error: 'py' has not been declared
src/Context.h:68: error: ISO C++ forbids declaration of 'object' with no type
src/Context.h:68: error: expected ';' before 'GetCalling'
src/Context.h: In destructor 'CContext::~CContext()':
src/Context.h:47: warning: 'Dispose' is deprecated (declared at 
/usr/local/include/v8.h:4996)
src/Utils.cpp: At global scope:
src/Utils.cpp:40: error: 'v8::Handle<v8::String> ToString' redeclared as 
different kind of symbol
src/Utils.cpp:20: error: previous declaration of 'v8::Handle<v8::String> 
ToString(const std::wstring&)'
src/Utils.cpp:40: error: 'py' has not been declared
error: command 'cc' failed with exit status 1

Original comment by equ...@gmail.com on 19 Sep 2013 at 11:36

GoogleCodeExporter commented 9 years ago
I have build v8 and pyv8 with FreeBSD 9, it seems ok with the pyv8 SVN trunk 
code

Please ensure you have installed subversion and bash (need a link from 
/bin/bash to /usr/local/bin/bash for Google V8)

Original comment by flier...@gmail.com on 25 Sep 2013 at 10:34

GoogleCodeExporter commented 9 years ago
Aha that seems part of the problem...
Though I'm using 8.2 currently.
Will try on 9+

Original comment by equ...@gmail.com on 25 Sep 2013 at 10:38

GoogleCodeExporter commented 9 years ago
Please ensure you have installed subversion and bash (need a link from 
/bin/bash to /usr/local/bin/bash for Google V8)

Because the default settings of FreeBSD seems doesn't provides those packages.

Original comment by flier...@gmail.com on 25 Sep 2013 at 10:39