sony/v8eval

Installation issue - Ubuntu 18.04

wit0k opened this issue · 2 comments

wit0k commented

Hello,

In the past i was able to install v8eval without major problems on Ubuntu 18.04, but now after reinstalling the OS (still on 18.04), i have following problem:

sudo -H pip install v8eval --no-cache-dir

Downloading v8eval-0.3.0.tar.gz (10 kB)
Building wheels for collected packages: v8eval
Building wheel for v8eval (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ic3lyhf/v8eval/setup.py'"'"'; file='"'"'/tmp/pip-install-5ic3lyhf/v8eval/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tk23p4xf
cwd: /tmp/pip-install-5ic3lyhf/v8eval/
Complete output (64 lines):
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-5ic3lyhf/v8eval/build
/usr/bin/cmake -H/tmp/pip-install-5ic3lyhf/v8eval -B/tmp/pip-install-5ic3lyhf/v8eval/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_ruby.dir/build.make CMakeFiles/v8eval_ruby.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval_ruby.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_ruby.dir/build.make CMakeFiles/v8eval_ruby.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval_ruby.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[ 25%] Built target v8eval_ruby
make -f CMakeFiles/v8eval_python.dir/build.make CMakeFiles/v8eval_python.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval_python.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_python.dir/build.make CMakeFiles/v8eval_python.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval_python.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[ 50%] Built target v8eval_python
make -f CMakeFiles/v8eval.dir/build.make CMakeFiles/v8eval.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval.dir/build.make CMakeFiles/v8eval.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[ 75%] Built target v8eval
make -f CMakeFiles/v8eval_go.dir/build.make CMakeFiles/v8eval_go.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval_go.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_go.dir/build.make CMakeFiles/v8eval_go.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval_go.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[100%] Built target v8eval_go
make[1]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
/usr/bin/cmake -E cmake_progress_start /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles 0
sh: 1: swig: not found
mkdir: cannot create directory ‘/tmp/pip-install-5ic3lyhf/v8eval/v8/buildtools/third_party/libc++/trunk/test/std/experimental/filesystem/Inputs/static_test_env/dne’: File exists
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-3.7
copying python/v8eval/v8eval.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_v8eval' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/tmp
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval/python
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval/python/v8eval
/tmp/pip-install-5ic3lyhf/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-WA8NgD/python3.7-3.7.6=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-WA8NgD/python3.7-3.7.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/tmp/pip-install-5ic3lyhf/v8eval/v8 -I/tmp/pip-install-5ic3lyhf/v8eval/v8/include -I/usr/include/python3.7m -c /tmp/pip-install-5ic3lyhf/v8eval/python/v8eval/v8eval_wrap.cxx -o build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval/python/v8eval/v8eval_wrap.o -O3 -std=c++14 -stdlib=libc++ -isystem/tmp/pip-install-5ic3lyhf/v8eval/v8/buildtools/third_party/libc++/trunk/include -isystem/tmp/pip-install-5ic3lyhf/v8eval/v8/buildtools/third_party/libc++abi/trunk/include
clang: error: no such file or directory: '/tmp/pip-install-5ic3lyhf/v8eval/python/v8eval/v8eval_wrap.cxx'
clang: error: no input files
error: command '/tmp/pip-install-5ic3lyhf/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang' failed with exit status 1

ERROR: Failed building wheel for v8eval
Running setup.py clean for v8eval
Failed to build v8eval
Installing collected packages: v8eval
Running setup.py install for v8eval ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ic3lyhf/v8eval/setup.py'"'"'; file='"'"'/tmp/pip-install-5ic3lyhf/v8eval/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-2ord8oye/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/v8eval
cwd: /tmp/pip-install-5ic3lyhf/v8eval/
Complete output (64 lines):
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-5ic3lyhf/v8eval/build
/usr/bin/cmake -H/tmp/pip-install-5ic3lyhf/v8eval -B/tmp/pip-install-5ic3lyhf/v8eval/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_ruby.dir/build.make CMakeFiles/v8eval_ruby.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval_ruby.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_ruby.dir/build.make CMakeFiles/v8eval_ruby.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval_ruby.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[ 25%] Built target v8eval_ruby
make -f CMakeFiles/v8eval_python.dir/build.make CMakeFiles/v8eval_python.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval_python.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_python.dir/build.make CMakeFiles/v8eval_python.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval_python.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[ 50%] Built target v8eval_python
make -f CMakeFiles/v8eval.dir/build.make CMakeFiles/v8eval.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval.dir/build.make CMakeFiles/v8eval.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[ 75%] Built target v8eval
make -f CMakeFiles/v8eval_go.dir/build.make CMakeFiles/v8eval_go.dir/depend
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
cd /tmp/pip-install-5ic3lyhf/v8eval/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles/v8eval_go.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make -f CMakeFiles/v8eval_go.dir/build.make CMakeFiles/v8eval_go.dir/build
make[2]: Entering directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
make[2]: Nothing to be done for 'CMakeFiles/v8eval_go.dir/build'.
make[2]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
[100%] Built target v8eval_go
make[1]: Leaving directory '/tmp/pip-install-5ic3lyhf/v8eval/build'
/usr/bin/cmake -E cmake_progress_start /tmp/pip-install-5ic3lyhf/v8eval/build/CMakeFiles 0
sh: 1: swig: not found
mkdir: cannot create directory ‘/tmp/pip-install-5ic3lyhf/v8eval/v8/buildtools/third_party/libc++/trunk/test/std/experimental/filesystem/Inputs/static_test_env/dne’: File exists
running install
running build
running build_py
creating build/lib.linux-x86_64-3.7
copying python/v8eval/v8eval.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_v8eval' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/tmp
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval/python
creating build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval/python/v8eval
/tmp/pip-install-5ic3lyhf/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-WA8NgD/python3.7-3.7.6=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-WA8NgD/python3.7-3.7.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/tmp/pip-install-5ic3lyhf/v8eval/v8 -I/tmp/pip-install-5ic3lyhf/v8eval/v8/include -I/usr/include/python3.7m -c /tmp/pip-install-5ic3lyhf/v8eval/python/v8eval/v8eval_wrap.cxx -o build/temp.linux-x86_64-3.7/tmp/pip-install-5ic3lyhf/v8eval/python/v8eval/v8eval_wrap.o -O3 -std=c++14 -stdlib=libc++ -isystem/tmp/pip-install-5ic3lyhf/v8eval/v8/buildtools/third_party/libc++/trunk/include -isystem/tmp/pip-install-5ic3lyhf/v8eval/v8/buildtools/third_party/libc++abi/trunk/include
clang: error: no such file or directory: '/tmp/pip-install-5ic3lyhf/v8eval/python/v8eval/v8eval_wrap.cxx'
clang: error: no input files
error: command '/tmp/pip-install-5ic3lyhf/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ic3lyhf/v8eval/setup.py'"'"'; file='"'"'/tmp/pip-install-5ic3lyhf/v8eval/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-2ord8oye/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/v8eval Check the logs for full command output.

Thank you in advance,

wit0k commented

Sorry for the bold text, I wanted to highlight only one line :-)

wit0k commented

It seems i was missing "swig", after installing it, i have some other problems like:

In file included from /tmp/pip-install-3b74aaxg/v8eval/python/v8eval/v8eval_wrap.cxx:173:
/usr/include/python3.7m/Python.h:14:2: error: "Something's broken.  UCHAR_MAX should be defined in limits.h."
#error "Something's broken.  UCHAR_MAX should be defined in limits.h."

or

/usr/include/python3.7m/Python.h:18:2: error: "Python's source code assumes C's unsigned char is an 8-bit type."
#error "Python's source code assumes C's unsigned char is an 8-bit type."

or 

In file included from /tmp/pip-install-3b74aaxg/v8eval/python/v8eval/v8eval_wrap.cxx:173:
In file included from /usr/include/python3.7m/Python.h:63:
/usr/include/python3.7m/pyport.h:76:9: error: unknown type name 'uintptr_t'; did you mean 'intptr_t'?
typedef uintptr_t       Py_uintptr_t;
        ^~~~~~~~~
        intptr_t
/usr/include/unistd.h:270:20: note: 'intptr_t' declared here
typedef __intptr_t intptr_t;
                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Any ideas ?
Thx