navcat / pyv8

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

compile error #247

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

pip3 install -v pyv8
Collecting pyv8
  Getting page https://pypi.python.org/simple/pyv8/
  1 location(s) to search for versions of pyv8:
  * https://pypi.python.org/simple/pyv8/
  Getting page https://pypi.python.org/simple/pyv8/
  Analyzing links from page https://pypi.python.org/simple/pyv8/
    Skipping link https://pypi.python.org/packages/2.5/P/PyV8/PyV8-0.5.win32-py2.5.exe#md5=55c81f25b9c3a576e9fa885ab3b2dab3 (from https://pypi.python.org/simple/pyv8/); unknown archive format: .exe
    Found link https://pypi.python.org/packages/source/P/PyV8/PyV8-0.5.zip#md5=922d7d66f6e2d03aa949f40395f21b80 (from https://pypi.python.org/simple/pyv8/), version: 0.5
    Skipping link http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/); not a file
    Skipping link http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/); not a file
    Skipping svn+http://pyv8.googlecode.com/svn/trunk/#egg=pyv8-1.0-dev (from https://pypi.python.org/simple/pyv8/) because it is externally hosted.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/ (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching http://code.google.com/p/pyv8/downloads/list (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Not searching svn+http://pyv8.googlecode.com/svn/trunk/#egg=pyv8-1.0-dev (from https://pypi.python.org/simple/pyv8/) for files because external urls are disallowed.
  Using cached PyV8-0.5.zip
  Downloading from URL https://pypi.python.org/packages/source/P/PyV8/PyV8-0.5.zip#md5=922d7d66f6e2d03aa949f40395f21b80 (from https://pypi.python.org/simple/pyv8/)
  Running setup.py (path:/tmp/pip-build-nt4nc8d0/pyv8/setup.py) egg_info for package pyv8
    Running command python setup.py egg_info
  Source in /tmp/pip-build-nt4nc8d0/pyv8 has version 0.5, which satisfies requirement pyv8 from https://pypi.python.org/packages/source/P/PyV8/PyV8-0.5.zip#md5=922d7d66f6e2d03aa949f40395f21b80
Installing collected packages: pyv8
  Running setup.py install for pyv8
    Running command /usr/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nt4nc8d0/pyv8/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-utcxkhwi-record/install-record.txt --single-version-externally-managed --compile
    Complete output from command /usr/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nt4nc8d0/pyv8/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-utcxkhwi-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-i686-3.4
    copying PyV8.py -> build/lib.linux-i686-3.4
    running build_ext
    building '_PyV8' extension
    creating build/temp.linux-i686-3.4
    creating build/temp.linux-i686-3.4/src
    i686-pc-linux-gnu-gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -mtune=i686 -O2 -pipe -fstack-protector-strong -g -fPIC -DBOOST_PYTHON_STATIC_LIB -Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python3.4m -c src/Exception.cpp -o build/temp.linux-i686-3.4/src/Exception.o
    cc1plus: предупреждение: command line option «-Wstrict-prototypes» is valid for C/ObjC but not for C++
    In file included from src/Exception.cpp:1:0:
    src/Exception.h: In constructor «CJavascriptException::CJavascriptException(v8::TryCatch&)»:
    src/Exception.h:50:65: ошибка: нет подходящей функции для вызова «v8::Persistent<v8::Value>::New(v8::Local<v8::Value>)»
           m_exc(v8::Persistent<v8::Value>::New(try_catch.Exception())),
                                                                     ^
    src/Exception.h:50:65: замечание: candidate is:
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h:5584:4: замечание: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Value]
     T* PersistentBase<T>::New(Isolate* isolate, T* that) {
        ^
    /usr/include/v8.h:5584:4: замечание:   candidate expects 2 arguments, 1 provided
    In file included from src/Exception.cpp:1:0:
    src/Exception.h:51:65: ошибка: нет подходящей функции для вызова «v8::Persistent<v8::Message>::New(v8::Local<v8::Message>)»
           m_msg(v8::Persistent<v8::Message>::New(try_catch.Message()))
                                                                     ^
    src/Exception.h:51:65: замечание: candidate is:
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h:5584:4: замечание: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Message]
     T* PersistentBase<T>::New(Isolate* isolate, T* that) {
        ^
    /usr/include/v8.h:5584:4: замечание:   candidate expects 2 arguments, 1 provided
    In file included from src/Exception.cpp:1:0:
    src/Exception.h: In destructor «virtual CJavascriptException::~CJavascriptException()»:
    src/Exception.h:63:33: ошибка: «class v8::Persistent<v8::Value>» has no member named «Dispose»
         if (!m_exc.IsEmpty()) m_exc.Dispose();
                                     ^
    src/Exception.h:64:33: ошибка: «class v8::Persistent<v8::Message>» has no member named «Dispose»
         if (!m_msg.IsEmpty()) m_msg.Dispose();
                                     ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: В функции-члене «const string CJavascriptException::GetName()»:
    /usr/include/v8.h:833:13: ошибка: «v8::HandleScope::HandleScope()» is protected
       V8_INLINE HandleScope() {}
                 ^
    src/Exception.cpp:38:19: ошибка: в данном контексте
       v8::HandleScope handle_scope;
                       ^
    src/Exception.cpp:40:3: ошибка: «AsciiValue» не является элементом «v8::String»
       v8::String::AsciiValue msg(v8::Handle<v8::String>::Cast(m_exc->ToObject()->Get(v8::String::New("name"))));
       ^
    src/Exception.cpp:42:23: ошибка: нет декларации «msg» в этой области видимости
       return std::string(*msg, msg.length());
                           ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: В функции-члене «const string CJavascriptException::GetMessage()»:
    /usr/include/v8.h:833:13: ошибка: «v8::HandleScope::HandleScope()» is protected
       V8_INLINE HandleScope() {}
                 ^
    src/Exception.cpp:50:19: ошибка: в данном контексте
       v8::HandleScope handle_scope;
                       ^
    src/Exception.cpp:52:3: ошибка: «AsciiValue» не является элементом «v8::String»
       v8::String::AsciiValue msg(v8::Handle<v8::String>::Cast(m_exc->ToObject()->Get(v8::String::New("message"))));
       ^
    src/Exception.cpp:54:23: ошибка: нет декларации «msg» в этой области видимости
       return std::string(*msg, msg.length());
                           ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: В функции-члене «const string CJavascriptException::GetScriptName()»:
    /usr/include/v8.h:833:13: ошибка: «v8::HandleScope::HandleScope()» is protected
       V8_INLINE HandleScope() {}
                 ^
    src/Exception.cpp:60:19: ошибка: в данном контексте
       v8::HandleScope handle_scope;
                       ^
    src/Exception.cpp:62:33: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       if (!m_msg.IsEmpty() && !m_msg->GetScriptResourceName().IsEmpty() &&
                                     ^
    src/Exception.cpp:63:13: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
           !m_msg->GetScriptResourceName()->IsUndefined())
                 ^
    src/Exception.cpp:65:5: ошибка: «AsciiValue» не является элементом «v8::String»
         v8::String::AsciiValue name(m_msg->GetScriptResourceName());
         ^
    src/Exception.cpp:67:25: ошибка: нет декларации «name» в этой области видимости
         return std::string(*name, name.length());
                             ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: В функции-члене «int CJavascriptException::GetLineNumber()»:
    /usr/include/v8.h:833:13: ошибка: «v8::HandleScope::HandleScope()» is protected
       V8_INLINE HandleScope() {}
                 ^
    src/Exception.cpp:76:19: ошибка: в данном контексте
       v8::HandleScope handle_scope;
                       ^
    src/Exception.cpp:78:37: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       return m_msg.IsEmpty() ? 1 : m_msg->GetLineNumber();
                                         ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetStartPosition()»:
    src/Exception.cpp:84:37: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       return m_msg.IsEmpty() ? 1 : m_msg->GetStartPosition();
                                         ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetEndPosition()»:
    src/Exception.cpp:90:37: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       return m_msg.IsEmpty() ? 1 : m_msg->GetEndPosition();
                                         ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetStartColumn()»:
    src/Exception.cpp:96:37: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       return m_msg.IsEmpty() ? 1 : m_msg->GetStartColumn();
                                         ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetEndColumn()»:
    src/Exception.cpp:102:37: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       return m_msg.IsEmpty() ? 1 : m_msg->GetEndColumn();
                                         ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: В функции-члене «const string CJavascriptException::GetSourceLine()»:
    /usr/include/v8.h:833:13: ошибка: «v8::HandleScope::HandleScope()» is protected
       V8_INLINE HandleScope() {}
                 ^
    src/Exception.cpp:108:19: ошибка: в данном контексте
       v8::HandleScope handle_scope;
                       ^
    src/Exception.cpp:110:33: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
       if (!m_msg.IsEmpty() && !m_msg->GetSourceLine().IsEmpty() &&
                                     ^
    src/Exception.cpp:111:13: ошибка: base operand of «->» has non-pointer type «v8::Persistent<v8::Message>»
           !m_msg->GetSourceLine()->IsUndefined())
                 ^
    src/Exception.cpp:113:5: ошибка: «AsciiValue» не является элементом «v8::String»
         v8::String::AsciiValue line(m_msg->GetSourceLine());
         ^
    src/Exception.cpp:115:25: ошибка: нет декларации «line» в этой области видимости
         return std::string(*line, line.length());
                             ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: In static member function «static const string CJavascriptException::Extract(v8::TryCatch&)»:
    /usr/include/v8.h:833:13: ошибка: «v8::HandleScope::HandleScope()» is protected
       V8_INLINE HandleScope() {}
                 ^
    src/Exception.cpp:125:19: ошибка: в данном контексте
       v8::HandleScope handle_scope;
                       ^
    src/Exception.cpp:127:3: ошибка: «AsciiValue» не является элементом «v8::String»
       v8::String::AsciiValue msg(try_catch.Exception());
       ^
    src/Exception.cpp:131:23: ошибка: нет декларации «msg» в этой области видимости
       oss << std::string(*msg, msg.length());
                           ^
    src/Exception.cpp:142:7: ошибка: «AsciiValue» не является элементом «v8::String»
           v8::String::AsciiValue name(message->GetScriptResourceName());
           ^
    src/Exception.cpp:144:27: ошибка: нет декларации «name» в этой области видимости
           oss << std::string(*name, name.length());
                               ^
    src/Exception.cpp:152:7: ошибка: «AsciiValue» не является элементом «v8::String»
           v8::String::AsciiValue line(message->GetSourceLine());
           ^
    src/Exception.cpp:154:37: ошибка: нет декларации «line» в этой области видимости
           oss << " -> " << std::string(*line, line.length());
                                         ^
    src/Exception.cpp: In static member function «static void ExceptionTranslator::Construct(PyObject*, boost::python::converter::rvalue_from_python_stage1_data*)»:
    src/Exception.cpp:207:25: предупреждение: неиспользуемая переменная «cpp_err» [-Wunused-variable]
       CJavascriptException* cpp_err = 
                             ^
    In file included from src/Exception.h:6:0,
                     from src/Exception.cpp:1:
    /usr/include/v8.h: In instantiation of «static void v8::NonCopyablePersistentTraits<T>::Uncompilable() [with O = v8::Object; T = v8::Value]»:
    /usr/include/v8.h:603:17:   required from «static void v8::NonCopyablePersistentTraits<T>::Copy(const v8::Persistent<S, M>&, v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent*) [with S = v8::Value; M = v8::NonCopyablePersistentTraits<v8::Value>; T = v8::Value; v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent = v8::Persistent<v8::Value>]»
    /usr/include/v8.h:5601:21:   required from «void v8::Persistent<T, M>::Copy(const v8::Persistent<S, M>&) [with S = v8::Value; M2 = v8::NonCopyablePersistentTraits<v8::Value>; T = v8::Value; M = v8::NonCopyablePersistentTraits<v8::Value>]»
    /usr/include/v8.h:668:14:   required from «v8::Persistent<T, M>::Persistent(const v8::Persistent<T, M>&) [with T = v8::Value; M = v8::NonCopyablePersistentTraits<v8::Value>]»
    src/Exception.h:37:7:   required from here
    /usr/include/v8.h:607:5: ошибка: cannot convert «v8::Primitive*» to «v8::Object* volatile» in assignment
         TYPE_CHECK(O, Primitive);
         ^
    /usr/include/v8.h: In instantiation of «static void v8::NonCopyablePersistentTraits<T>::Uncompilable() [with O = v8::Object; T = v8::Message]»:
    /usr/include/v8.h:603:17:   required from «static void v8::NonCopyablePersistentTraits<T>::Copy(const v8::Persistent<S, M>&, v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent*) [with S = v8::Message; M = v8::NonCopyablePersistentTraits<v8::Message>; T = v8::Message; v8::NonCopyablePersistentTraits<T>::NonCopyablePersistent = v8::Persistent<v8::Message>]»
    /usr/include/v8.h:5601:21:   required from «void v8::Persistent<T, M>::Copy(const v8::Persistent<S, M>&) [with S = v8::Message; M2 = v8::NonCopyablePersistentTraits<v8::Message>; T = v8::Message; M = v8::NonCopyablePersistentTraits<v8::Message>]»
    /usr/include/v8.h:668:14:   required from «v8::Persistent<T, M>::Persistent(const v8::Persistent<T, M>&) [with T = v8::Message; M = v8::NonCopyablePersistentTraits<v8::Message>]»
    src/Exception.h:37:7:   required from here
    /usr/include/v8.h:607:5: ошибка: cannot convert «v8::Primitive*» to «v8::Object* volatile» in assignment
    src/Exception.cpp: В функции-члене «const string CJavascriptException::GetName()»:
    src/Exception.cpp:43:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    src/Exception.cpp: В функции-члене «const string CJavascriptException::GetMessage()»:
    src/Exception.cpp:55:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetLineNumber()»:
    src/Exception.cpp:79:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetStartPosition()»:
    src/Exception.cpp:85:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetEndPosition()»:
    src/Exception.cpp:91:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetStartColumn()»:
    src/Exception.cpp:97:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    src/Exception.cpp: В функции-члене «int CJavascriptException::GetEndColumn()»:
    src/Exception.cpp:103:1: предупреждение: control reaches end of non-void function [-Wreturn-type]
     }
     ^
    error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
    Cleaning up...
    Command "/usr/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nt4nc8d0/pyv8/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-utcxkhwi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nt4nc8d0/pyv8
    Exception information:
    Traceback (most recent call last):
      File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 246, in main
        status = self.run(options, args)
      File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 352, in run
        root=options.root_path,
      File "/usr/lib/python3.4/site-packages/pip/req/req_set.py", line 693, in install
        **kwargs
      File "/usr/lib/python3.4/site-packages/pip/req/req_install.py", line 859, in install
        show_stdout=False,
      File "/usr/lib/python3.4/site-packages/pip/utils/__init__.py", line 733, in call_subprocess
        % (command_desc, proc.returncode, cwd))
    pip.exceptions.InstallationError: Command "/usr/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nt4nc8d0/pyv8/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-utcxkhwi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nt4nc8d0/pyv8

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

Please provide any additional information below.

Original issue reported on code.google.com by ext1...@gmail.com on 16 May 2015 at 3:42