f



How to fix PyV8 linux setup error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Hello, I am currently installing Pyv8 and other requirements for me to run =
a honeypot. I downloaded pyv8 from source and using v8 (version 5.5) - buil=
t it with depot_tools. I already exported the V8_HOME path. But I still hav=
e this error whenever I run 'python setup.py build' of pyv8. Also, I am usi=
ng Python 2.7. Here is the output I get:

running build
running build_py
running build_ext
building '_PyV8' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-    pr=
ototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=3D2 -g -fstack-=
protector-strong -Wformat -Werror=3Dformat-security -fPIC -DBOOST_PYTHON_ST=
ATIC_LIB -DV8_NATIVE_REGEXP -DENABLE_DISASSEMBLER -DENABLE_LOGGING_AND_PROF=
ILING -DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_X64 -I/home/patricia/Thesi=
s/v8/include -I/home/patricia/Thesis/v8 -I/home/patricia/Thesis/v8/src -I/u=
sr/include/python2.7 -c src/Exception.cpp -o build/temp.linux-x86_64-2.7/sr=
c/Exception.o
cc1plus: warning: command line option =E2=80=98-Wstrict-prototypes=E2=80=99=
 is valid for C/ObjC but not for C++
In file included from /usr/include/c++/5/unordered_set:35:0,
             from /home/patricia/Thesis/v8/src/heap/spaces.h:10,
             from /home/patricia/Thesis/v8/src/heap/mark-compact.h:12,
             from /home/patricia/Thesis/v8/src/heap/incremental-marking.h:1=
2,
             from /home/patricia/Thesis/v8/src/heap/incremental-marking-inl=
..h:8,
             from /home/patricia/Thesis/v8/src/heap/heap-inl.h:13,
             from /home/patricia/Thesis/v8/src/objects-inl.h:24,
             from /home/patricia/Thesis/v8/src/arguments.h:9,
             from /home/patricia/Thesis/v8/src/debug/debug.h:9,
             from /usr/include/c++/5/bits/stl_iterator_base_funcs.h:65,
             from /usr/include/c++/5/bits/stl_algobase.h:66,
             from /usr/include/c++/5/bits/char_traits.h:39,
             from /usr/include/c++/5/string:40,
             from /usr/include/c++/5/stdexcept:39,
             from src/Exception.h:4,
             from src/Exception.cpp:1:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requi=
res compiler and library support for the ISO C++ 2011 standard. This suppor=
t must be enabled with the -std=3Dc++11 or -std=3Dgnu++11 compiler options.
#error This file requires compiler and library support \
 ^
src/Exception.cpp:18:25: fatal error: src/natives.h: No such file or direct=
ory
#include "src/natives.h"
                     ^

compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Well, before that, it repeatedly asks for exporting V8 to V8_HOME and build=
ing it. I do it repeatedly just to move on from it, and now, I get this. Al=
so, I already searched in Ubuntu Packages Content Search (http://tiny.cc/sn=
yrey) about /usr/include/c++/5/bits/stl_iterator_base_funcs.h, .../stl_algo=
base.h, .../char_traits.h, etc. That all led me to installing libstdc++-5-d=
ev via apt-get install libstdc++-5-dev

But still. I am getting the error. Any help will be appreciated. :)
0
p
9/13/2016 1:03:52 AM
comp.lang.python 77058 articles. 6 followers. Post Follow

0 Replies
368 Views

Similar Articles

[PageSpeed] 17

Reply: