-
Notifications
You must be signed in to change notification settings - Fork 9
Description
al@nvidia ~ $ pip install sdm
Collecting sdm
Using cached https://files.pythonhosted.org/packages/de/ad/1e274ab5bc498a2eee3fd7389f1a3f4c9b058b18036590b763db14694880/sdm-1.6.0.tar.gz
Requirement already satisfied: future in ./anaconda2/lib/python2.7/site-packages (from sdm) (0.16.0)
Building wheels for collected packages: sdm
Running setup.py bdist_wheel for sdm ... error
Complete output from command /home/al/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-Ep2WfM/sdm/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-3kxlYi --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/sdm
copying sdm/init.py -> build/lib.linux-x86_64-2.7/sdm
copying sdm/utils.py -> build/lib.linux-x86_64-2.7/sdm
copying sdm/scanner_opencl.cl -> build/lib.linux-x86_64-2.7/sdm
copying sdm/scanner_opencl2.cl -> build/lib.linux-x86_64-2.7/sdm
running build_ext
building 'sdm._libsdm' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lib
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/bitstring.c -o build/temp.linux-x86_64-2.7/src/bitstring.o
src/bitstring.c: In function ‘bs_init_random’:
src/bitstring.c:80:2: warning: implicit declaration of function ‘arc4random_buf’ [-Wimplicit-function-declaration]
arc4random_buf(bs, sizeof(bitstring_t) * len);
^
src/bitstring.c: In function ‘bs_init_hex’:
src/bitstring.c:91:15: warning: format ‘%llx’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘bitstring_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(hex, "%016llx", bs);
^
src/bitstring.c: In function ‘bs_to_hex’:
src/bitstring.c:116:16: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘bitstring_t {aka long unsigned int}’ [-Wformat=]
sprintf(buf, "%016llx", *bs);
^
src/bitstring.c: In function ‘bs_average’:
src/bitstring.c:166:9: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration]
if (arc4random() % 2) {
^
src/bitstring.c: In function ‘bs_flip_random_bits’:
src/bitstring.c:259:7: warning: implicit declaration of function ‘arc4random_uniform’ [-Wimplicit-function-declaration]
j = arc4random_uniform(i+1);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/address_space.c -o build/temp.linux-x86_64-2.7/src/address_space.o
In file included from src/address_space.c:9:0:
src/utils.h:5:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int is_little_endian() {
^
In file included from src/address_space.c:7:0:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/address_space.c: In function ‘as_init_from_b64_file’:
src/address_space.c:175:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), fp);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/counter.c -o build/temp.linux-x86_64-2.7/src/counter.o
In file included from src/counter.c:12:0:
src/utils.h:5:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int is_little_endian() {
^
src/counter.c: In function ‘counter_to_bitstring’:
src/counter.c:319:22: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration]
bs_set_bit(bs, i, arc4random() % 2);
^
In file included from src/counter.c:10:0:
src/counter.c: At top level:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/counter.c: In function ‘counter_check_meta_file’:
src/counter.c:107:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), fp);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_thread.c -o build/temp.linux-x86_64-2.7/src/scanner_thread.o
In file included from src/scanner_thread.c:5:0:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_opencl.c -o build/temp.linux-x86_64-2.7/src/scanner_opencl.o
src/scanner_opencl.c: In function ‘as_scanner_opencl_init’:
src/scanner_opencl.c:47:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
cl_context_properties properties[] = {CL_CONTEXT_PLATFORM, (int) platforms[0], 0};
^
src/scanner_opencl.c:76:3: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations]
this->queues[i] = clCreateCommandQueue(this->context, this->devices[i], 0, &error);
^
In file included from src/scanner_opencl.h:10:0,
from src/scanner_opencl.c:7:
/usr/include/CL/cl.h:1359:1: note: declared here
clCreateCommandQueue(cl_context / context */,
^
src/scanner_opencl.c: In function ‘opencl_scanner_devices’:
src/scanner_opencl.c:232:9: warning: variable ‘error’ set but not used [-Wunused-but-set-variable]
cl_int error;
^
In file included from src/scanner_opencl.h:13:0,
from src/scanner_opencl.c:7:
src/scanner_opencl.c: At top level:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_thread2.c -o build/temp.linux-x86_64-2.7/src/scanner_thread2.o
In file included from src/scanner_thread2.c:6:0:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_opencl2.c -o build/temp.linux-x86_64-2.7/src/scanner_opencl2.o
In file included from src/scanner_opencl.h:13:0,
from src/scanner_opencl2.c:7:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/operations.c -o build/temp.linux-x86_64-2.7/src/operations.o
src/operations.c: In function ‘sdm_generic_read’:
src/operations.c:341:26: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration]
bs_set_bit(output, j, arc4random() % 2);
^
In file included from src/operations.c:5:0:
src/operations.c: At top level:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/lib/base64.c -o build/temp.linux-x86_64-2.7/src/lib/base64.o
gcc -pthread -shared -L/home/al/anaconda2/lib -Wl,-rpath=/home/al/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/src/bitstring.o build/temp.linux-x86_64-2.7/src/address_space.o build/temp.linux-x86_64-2.7/src/counter.o build/temp.linux-x86_64-2.7/src/scanner_thread.o build/temp.linux-x86_64-2.7/src/scanner_opencl.o build/temp.linux-x86_64-2.7/src/scanner_thread2.o build/temp.linux-x86_64-2.7/src/scanner_opencl2.o build/temp.linux-x86_64-2.7/src/operations.o build/temp.linux-x86_64-2.7/src/lib/base64.o -L/home/al/anaconda2/lib -lOpenCL -lpthread -lbsd -lpython2.7 -o build/lib.linux-x86_64-2.7/sdm/_libsdm.so
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Failed building wheel for sdm
Running setup.py clean for sdm
Failed to build sdm
Installing collected packages: sdm
Running setup.py install for sdm ... error
Complete output from command /home/al/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-Ep2WfM/sdm/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-y0U268/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/sdm
copying sdm/init.py -> build/lib.linux-x86_64-2.7/sdm
copying sdm/utils.py -> build/lib.linux-x86_64-2.7/sdm
copying sdm/scanner_opencl.cl -> build/lib.linux-x86_64-2.7/sdm
copying sdm/scanner_opencl2.cl -> build/lib.linux-x86_64-2.7/sdm
running build_ext
building 'sdm._libsdm' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lib
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/bitstring.c -o build/temp.linux-x86_64-2.7/src/bitstring.o
src/bitstring.c: In function ‘bs_init_random’:
src/bitstring.c:80:2: warning: implicit declaration of function ‘arc4random_buf’ [-Wimplicit-function-declaration]
arc4random_buf(bs, sizeof(bitstring_t) * len);
^
src/bitstring.c: In function ‘bs_init_hex’:
src/bitstring.c:91:15: warning: format ‘%llx’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘bitstring_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(hex, "%016llx", bs);
^
src/bitstring.c: In function ‘bs_to_hex’:
src/bitstring.c:116:16: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘bitstring_t {aka long unsigned int}’ [-Wformat=]
sprintf(buf, "%016llx", *bs);
^
src/bitstring.c: In function ‘bs_average’:
src/bitstring.c:166:9: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration]
if (arc4random() % 2) {
^
src/bitstring.c: In function ‘bs_flip_random_bits’:
src/bitstring.c:259:7: warning: implicit declaration of function ‘arc4random_uniform’ [-Wimplicit-function-declaration]
j = arc4random_uniform(i+1);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/address_space.c -o build/temp.linux-x86_64-2.7/src/address_space.o
In file included from src/address_space.c:9:0:
src/utils.h:5:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int is_little_endian() {
^
In file included from src/address_space.c:7:0:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/address_space.c: In function ‘as_init_from_b64_file’:
src/address_space.c:175:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), fp);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/counter.c -o build/temp.linux-x86_64-2.7/src/counter.o
In file included from src/counter.c:12:0:
src/utils.h:5:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int is_little_endian() {
^
src/counter.c: In function ‘counter_to_bitstring’:
src/counter.c:319:22: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration]
bs_set_bit(bs, i, arc4random() % 2);
^
In file included from src/counter.c:10:0:
src/counter.c: At top level:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/counter.c: In function ‘counter_check_meta_file’:
src/counter.c:107:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), fp);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_thread.c -o build/temp.linux-x86_64-2.7/src/scanner_thread.o
In file included from src/scanner_thread.c:5:0:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_opencl.c -o build/temp.linux-x86_64-2.7/src/scanner_opencl.o
src/scanner_opencl.c: In function ‘as_scanner_opencl_init’:
src/scanner_opencl.c:47:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
cl_context_properties properties[] = {CL_CONTEXT_PLATFORM, (int) platforms[0], 0};
^
src/scanner_opencl.c:76:3: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations]
this->queues[i] = clCreateCommandQueue(this->context, this->devices[i], 0, &error);
^
In file included from src/scanner_opencl.h:10:0,
from src/scanner_opencl.c:7:
/usr/include/CL/cl.h:1359:1: note: declared here
clCreateCommandQueue(cl_context / context */,
^
src/scanner_opencl.c: In function ‘opencl_scanner_devices’:
src/scanner_opencl.c:232:9: warning: variable ‘error’ set but not used [-Wunused-but-set-variable]
cl_int error;
^
In file included from src/scanner_opencl.h:13:0,
from src/scanner_opencl.c:7:
src/scanner_opencl.c: At top level:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_thread2.c -o build/temp.linux-x86_64-2.7/src/scanner_thread2.o
In file included from src/scanner_thread2.c:6:0:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/scanner_opencl2.c -o build/temp.linux-x86_64-2.7/src/scanner_opencl2.o
In file included from src/scanner_opencl.h:13:0,
from src/scanner_opencl2.c:7:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/operations.c -o build/temp.linux-x86_64-2.7/src/operations.o
src/operations.c: In function ‘sdm_generic_read’:
src/operations.c:341:26: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration]
bs_set_bit(output, j, arc4random() % 2);
^
In file included from src/operations.c:5:0:
src/operations.c: At top level:
src/bitstring.h:23:21: warning: inline function ‘bs_distance_naive’ declared but never defined
inline unsigned int bs_distance_naive(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:22:21: warning: inline function ‘bs_distance_lookup16’ declared but never defined
inline unsigned int bs_distance_lookup16(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
src/bitstring.h:21:21: warning: inline function ‘bs_distance_popcount’ declared but never defined
inline unsigned int bs_distance_popcount(const bitstring_t *bs1, const bitstring_t *bs2, const unsigned int len);
^
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSDM_USE_BITCOUNT_TABLE -DSDM_ENABLE_OPENCL -DOS_LINUX -I/home/al/anaconda2/include/python2.7 -c src/lib/base64.c -o build/temp.linux-x86_64-2.7/src/lib/base64.o
gcc -pthread -shared -L/home/al/anaconda2/lib -Wl,-rpath=/home/al/anaconda2/lib,--no-as-needed build/temp.linux-x86_64-2.7/src/bitstring.o build/temp.linux-x86_64-2.7/src/address_space.o build/temp.linux-x86_64-2.7/src/counter.o build/temp.linux-x86_64-2.7/src/scanner_thread.o build/temp.linux-x86_64-2.7/src/scanner_opencl.o build/temp.linux-x86_64-2.7/src/scanner_thread2.o build/temp.linux-x86_64-2.7/src/scanner_opencl2.o build/temp.linux-x86_64-2.7/src/operations.o build/temp.linux-x86_64-2.7/src/lib/base64.o -L/home/al/anaconda2/lib -lOpenCL -lpthread -lbsd -lpython2.7 -o build/lib.linux-x86_64-2.7/sdm/_libsdm.so
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/al/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-Ep2WfM/sdm/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-y0U268/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-Ep2WfM/sdm/