sony / v8eval

Multi-language bindings to JavaScript engine V8
MIT License
403 stars 37 forks source link

Can't install on CentOS Linux release 7.4.1708 #28

Open Olmer1st opened 6 years ago

Olmer1st commented 6 years ago

pip2 install v8eval Collecting v8eval Downloading v8eval-0.2.11.tar.gz Installing collected packages: v8eval Running setup.py install for v8eval ... error Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-TEWePc/v8eval/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-qQQ3eJ-record/install-record.txt --single-version-externally-managed --compile: /tmp/pip-build-TEWePc/v8eval/build.sh: line 96: cmake: command not found make: ** No targets specified and no makefile found. Stop. mkdir: cannot create directory ‘/tmp/pip-build-TEWePc/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-2.7 copying python/v8eval/v8eval.py -> build/lib.linux-x86_64-2.7 running build_ext building '_v8eval' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/tmp creating build/temp.linux-x86_64-2.7/tmp/pip-build-TEWePc creating build/temp.linux-x86_64-2.7/tmp/pip-build-TEWePc/v8eval creating build/temp.linux-x86_64-2.7/tmp/pip-build-TEWePc/v8eval/python creating build/temp.linux-x86_64-2.7/tmp/pip-build-TEWePc/v8eval/python/v8eval /tmp/pip-build-TEWePc/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/tmp/pip-build-TEWePc/v8eval/v8 -I/tmp/pip-build-TEWePc/v8eval/v8/include -I/tmp/pip-build-TEWePc/v8eval/uv/include -I/usr/include/python2.7 -c /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx -o build/temp.linux-x86_64-2.7/tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.o -O3 -std=c++11 /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:557:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register size_t l = 0; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:558:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register size_t r = iter->size - 1; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:561:2: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register size_t i = (l + r) >> 1; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:564:4: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register int compare = strcmp(name, iname); ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:608:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register size_t i = 0; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:627:3: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register const unsigned char u = (unsigned char ) ptr; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:628:3: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register const unsigned char eu = u + sz; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:630:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register unsigned char uu = u; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:642:3: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register unsigned char u = (unsigned char ) ptr; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:643:3: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register const unsigned char eu = u + sz; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:645:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register char d = *(c++); ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:646:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register unsigned char uu; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:1323:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register int i; ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:1333:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register Py_ssize_t l = PyTuple_GET_SIZE(args); ^~~~~ /tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.cxx:1343:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register int i; ^~~~~ 15 warnings generated. /tmp/pip-build-TEWePc/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang++ -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/tmp/pip-build-TEWePc/v8eval/python/v8eval/v8eval_wrap.o -L/tmp/pip-build-TEWePc/v8eval/build -L/tmp/pip-build-TEWePc/v8eval/uv/.libs -L/tmp/pip-build-TEWePc/v8eval/v8/out/x64.release/obj.target/src -L/usr/lib64 -lv8eval -lv8eval_python -lv8_libplatform -lv8_base -lv8_libbase -lv8_libsampler -lv8_init -lv8_initializers -lv8_nosnapshot -luv -lrt -lpython2.7 -o build/lib.linux-x86_64-2.7/_v8eval.so /usr/bin/ld: cannot find -lv8eval /usr/bin/ld: cannot find -lv8eval_python clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/tmp/pip-build-TEWePc/v8eval/v8/third_party/llvm-build/Release+Asserts/bin/clang++' failed with exit status 1

----------------------------------------

Command "/usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-TEWePc/v8eval/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-qQQ3eJ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-TEWePc/v8eval/

YoshiyukiMineo commented 5 years ago

Sorry for very late reply.

Please see cmake: command not found in your log. v8eval requires cmake.

Alemalakra commented 5 years ago

Also i have the same problem, i have all Development tools and cmake. /root/v8eval-0.2.7/v8/third_party/llvm-build/Release+Asserts/bin/clang++ -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/root/v8eval-0.2.7/python/v8eval/v8eval_wrap.o -L/root/v8eval-0.2.7/build -L/root/v8eval-0.2.7/uv/.libs -L/root/v8eval-0.2.7/v8/out/x64.release/obj.target/src -L/usr/lib64 -lv8eval -lv8eval_python -lv8_libplatform -lv8_base -lv8_libbase -lv8_libsampler -lv8_nosnapshot -luv -lrt -lpython2.7 -o build/lib.linux-x86_64-2.7/_v8eval.so /usr/bin/ld: cannot find -lv8_libplatform /usr/bin/ld: cannot find -lv8_base /usr/bin/ld: cannot find -lv8_libbase /usr/bin/ld: cannot find -lv8_libsampler /usr/bin/ld: cannot find -lv8_nosnapshot clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/root/v8eval-0.2.7/v8/third_party/llvm-build/Release+Asserts/bin/clang++' failed with exit status 1

YoshiyukiMineo commented 5 years ago

@Alemalakra

I think you failed to build V8 because of the old v8eval version. Could you try the latest v8eval 0.3.0 ?

Alemalakra commented 5 years ago

Worked, thanks you.