msbrogli / sdm-framework

A Sparse Distributed Memory Framework.
http://sdm-framework.readthedocs.io/
GNU General Public License v2.0
43 stars 7 forks source link

Linux Mint: fails to install #11

Open Alex-Linhares opened 6 years ago

Alex-Linhares commented 6 years ago

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/

Alex-Linhares commented 6 years ago

Could be lack of opencl drivers, I'll check;

in the meantime...

al@nvidia ~ $ sudo lshw [sudo] password for al: nvidia
description: Portable Computer product: Alienware 15 (Alienware 15) vendor: Alienware version: A01 serial: 83GQN32 width: 64 bits capabilities: smbios-2.8 dmi-2.8 vsyscall32 configuration: boot=normal chassis=portable family=Alienware 15 sku=Alienware 15 uuid=44454C4C-3300-1047-8051-B8C04F4E3332 -core description: Motherboard product: Alienware 15 vendor: Alienware physical id: 0 version: A00 serial: .83GQN32.CN1296352J0002. slot: To Be Filled By O.E.M. -firmware description: BIOS vendor: Alienware physical id: 0 version: A01 date: 01/30/2015 size: 64KiB capacity: 1984KiB capabilities: pci upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb smartbattery biosbootspecification netboot uefi -cpu description: CPU product: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz vendor: Intel Corp. physical id: 3f bus info: cpu@0 version: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz serial: NULL slot: SOCKET 0 size: 3372MHz capacity: 3500MHz width: 64 bits clock: 100MHz capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts cpufreq configuration: cores=4 enabledcores=4 threads=8 -cache:0 description: L1 cache physical id: 3c slot: L1 Cache size: 32KiB capacity: 32KiB capabilities: synchronous internal write-back instruction configuration: level=1 -cache:1 description: L2 cache physical id: 3d slot: L2 Cache size: 256KiB capacity: 256KiB capabilities: synchronous internal write-back unified configuration: level=2 -cache:2 description: L3 cache physical id: 3e slot: L3 Cache size: 6MiB capacity: 6MiB capabilities: synchronous internal write-back unified configuration: level=3 -cache description: L1 cache physical id: 3b slot: L1 Cache size: 32KiB capacity: 32KiB capabilities: synchronous internal write-back data configuration: level=1 -memory description: System Memory physical id: 41 slot: System board or motherboard size: 16GiB -bank:0 description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns) product: M471B1G73QH0-YK0 vendor: Samsung physical id: 0 serial: 9635FB0A slot: JDIMM1 size: 8GiB width: 64 bits clock: 1600MHz (0.6ns) -bank:1 description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns) product: M471B1G73QH0-YK0 vendor: Samsung physical id: 1 serial: 9635FB87 slot: JDIMM2 size: 8GiB width: 64 bits clock: 1600MHz (0.6ns) -pci description: Host bridge product: Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller vendor: Intel Corporation physical id: 100 bus info: pci@0000:00:00.0 version: 06 width: 32 bits clock: 33MHz -pci:0 description: PCI bridge product: Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller vendor: Intel Corporation physical id: 1 bus info: pci@0000:00:01.0 version: 06 width: 32 bits clock: 33MHz capabilities: pci pm msi pciexpress normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:26 ioport:e000(size=4096) memory:f5000000-f60fffff ioport:e0000000(size=301989888) -display description: 3D controller product: GM204M [GeForce GTX 970M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom configuration: driver=nvidia latency=0 resources: irq:42 memory:f5000000-f5ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f6000000-f607ffff -display description: VGA compatible controller product: 4th Gen Core Processor Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 06 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:30 memory:f6400000-f67fffff memory:d0000000-dfffffff ioport:f000(size=64) -multimedia:0 description: Audio device product: Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller vendor: Intel Corporation physical id: 3 bus info: pci@0000:00:03.0 version: 06 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:33 memory:f751c000-f751ffff -generic UNCLAIMED description: Signal processing controller product: Intel Corporation vendor: Intel Corporation physical id: 4 bus info: pci@0000:00:04.0 version: 06 width: 64 bits clock: 33MHz capabilities: msi pm cap_list configuration: latency=0 resources: memory:f7510000-f7517fff -usb:0 description: USB controller product: 8 Series/C220 Series Chipset Family USB xHCI vendor: Intel Corporation physical id: 14 bus info: pci@0000:00:14.0 version: 05 width: 64 bits clock: 33MHz capabilities: pm msi xhci bus_master cap_list configuration: driver=xhci_hcd latency=0 resources: irq:27 memory:f7500000-f750ffff -usbhost:0 product: xHCI Host Controller vendor: Linux 4.4.0-21-generic xhci-hcd physical id: 0 bus info: usb@4 logical name: usb4 version: 4.04 capabilities: usb-3.00 configuration: driver=hub slots=6 speed=5000Mbit/s -usbhost:1 product: xHCI Host Controller vendor: Linux 4.4.0-21-generic xhci-hcd physical id: 1 bus info: usb@3 logical name: usb3 version: 4.04 capabilities: usb-2.00 configuration: driver=hub slots=14 speed=480Mbit/s -usb:0 description: Human interface device product: AW1517 vendor: Alienware physical id: 4 bus info: usb@3:4 version: 0.00 serial: 15.0 capabilities: usb-0.02 configuration: driver=usbhid speed=12Mbit/s -usb:1 UNCLAIMED description: Bluetooth wireless interface product: AR3012 Bluetooth 4.0 vendor: Atheros Communications, Inc. physical id: 9 bus info: usb@3:9 version: 0.01 capabilities: bluetooth usb-1.10 configuration: maxpower=100mA speed=12Mbit/s -usb:2 description: Video product: Integrated_Webcam_FHD vendor: CN036P5972487513B92PA00 physical id: d bus info: usb@3:d version: 46.30 capabilities: usb-2.00 configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s -communication description: Communication controller product: 8 Series/C220 Series Chipset Family MEI Controller #1 vendor: Intel Corporation physical id: 16 bus info: pci@0000:00:16.0 version: 04 width: 64 bits clock: 33MHz capabilities: pm msi bus_master cap_list configuration: driver=mei_me latency=0 resources: irq:31 memory:f7525000-f752500f -usb:1 description: USB controller product: 8 Series/C220 Series Chipset Family USB EHCI #2 vendor: Intel Corporation physical id: 1a bus info: pci@0000:00:1a.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci-pci latency=0 resources: irq:16 memory:f7523000-f75233ff -usbhost product: EHCI Host Controller vendor: Linux 4.4.0-21-generic ehci_hcd physical id: 1 bus info: usb@1 logical name: usb1 version: 4.04 capabilities: usb-2.00 configuration: driver=hub slots=2 speed=480Mbit/s -usb description: USB hub vendor: Intel Corp. physical id: 1 bus info: usb@1:1 version: 0.05 capabilities: usb-2.00 configuration: driver=hub slots=6 speed=480Mbit/s -multimedia:1 description: Audio device product: 8 Series/C220 Series Chipset High Definition Audio Controller vendor: Intel Corporation physical id: 1b bus info: pci@0000:00:1b.0 version: 05 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:32 memory:f7518000-f751bfff -pci:1 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #3 vendor: Intel Corporation physical id: 1c bus info: pci@0000:00:1c.0 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:18 ioport:d000(size=4096) memory:f7400000-f74fffff -network description: Ethernet interface product: Killer E220x Gigabit Ethernet Controller vendor: Qualcomm Atheros physical id: 0 bus info: pci@0000:02:00.0 logical name: eth0 version: 10 serial: 34:e6:d7:40:95:00 capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=alx latency=0 link=no multicast=yes port=twisted pair resources: irq:43 memory:f7400000-f743ffff ioport:d000(size=128) -pci:2 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #4 vendor: Intel Corporation physical id: 1c.3 bus info: pci@0000:00:1c.3 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:19 memory:f6800000-f69fffff -network description: Wireless interface product: QCA6174 802.11ac Wireless Network Adapter vendor: Qualcomm Atheros physical id: 0 bus info: pci@0000:03:00.0 logical name: wlp3s0 version: 20 serial: ac:d1:b8:62:5e:cf width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=ath10k_pci driverversion=4.4.0-21-generic firmware=SW_RM.1.1.1-00157-QCARMSWPZ-1 ip=172.20.10.5 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn resources: irq:34 memory:f6800000-f69fffff -pci:3 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #5 vendor: Intel Corporation physical id: 1c.4 bus info: pci@0000:00:1c.4 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:16 ioport:c000(size=4096) memory:f6a00000-f73fffff ioport:f2100000(size=10485760) -generic description: Unassigned class product: RTS5227 PCI Express Card Reader vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:04:00.0 version: 01 width: 32 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=rtsx_pci latency=0 resources: irq:28 memory:f6a00000-f6a00fff -usb:2 description: USB controller product: 8 Series/C220 Series Chipset Family USB EHCI #1 vendor: Intel Corporation physical id: 1d bus info: pci@0000:00:1d.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci-pci latency=0 resources: irq:22 memory:f7522000-f75223ff -usbhost product: EHCI Host Controller vendor: Linux 4.4.0-21-generic ehci_hcd physical id: 1 bus info: usb@2 logical name: usb2 version: 4.04 capabilities: usb-2.00 configuration: driver=hub slots=2 speed=480Mbit/s -usb description: USB hub vendor: Intel Corp. physical id: 1 bus info: usb@2:1 version: 0.05 capabilities: usb-2.00 configuration: driver=hub slots=8 speed=480Mbit/s -isa description: ISA bridge product: HM87 Express LPC Controller vendor: Intel Corporation physical id: 1f bus info: pci@0000:00:1f.0 version: 05 width: 32 bits clock: 33MHz capabilities: isa bus_master cap_list configuration: driver=lpc_ich latency=0 resources: irq:0 -storage description: RAID bus controller product: 82801 Mobile SATA Controller [RAID mode] vendor: Intel Corporation physical id: 1f.2 bus info: pci@0000:00:1f.2 version: 05 width: 32 bits clock: 66MHz capabilities: storage msi pm bus_master cap_list configuration: driver=ahci latency=0 resources: irq:29 ioport:f0b0(size=8) ioport:f0a0(size=4) ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:f7521000-f75217ff -serial UNCLAIMED description: SMBus product: 8 Series/C220 Series Chipset Family SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 05 width: 64 bits clock: 33MHz configuration: latency=0 resources: memory:f7520000-f75200ff ioport:f040(size=32) -scsi:0 physical id: 1 logical name: scsi1 capabilities: emulated -disk description: ATA Disk product: TS512GMTS800 physical id: 0.0.0 bus info: scsi@1:0.0.0 logical name: /dev/sda version: 5B serial: C011660118 size: 476GiB (512GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=cbeae81e-dbe9-4975-ad69-877e8f81b772 logicalsectorsize=512 sectorsize=512 -volume:0 description: Windows FAT volume vendor: MSDOS5.0 physical id: 1 bus info: scsi@1:0.0.0,1 logical name: /dev/sda1 logical name: /boot/efi version: FAT32 serial: 24f3-ab17 size: 495MiB capacity: 499MiB capabilities: boot precious readonly hidden nomount fat initialized configuration: FATs=2 filesystem=fat label=ESP mount.fstype=vfat mount.options=rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro name=EFI system partition state=mounted -volume:1 description: Windows FAT volume vendor: MSDOS5.0 physical id: 2 bus info: scsi@1:0.0.0,2 logical name: /dev/sda2 version: FAT32 serial: a69a-99c3 size: 15MiB capacity: 39MiB capabilities: precious readonly hidden nomount fat initialized configuration: FATs=2 filesystem=fat label=DIAGS name=Basic data partition -volume:2 description: reserved partition vendor: Windows physical id: 3 bus info: scsi@1:0.0.0,3 logical name: /dev/sda3 serial: 3d43e4d4-3dd8-4c3e-bd40-9cd0ac8b15f2 capacity: 127MiB capabilities: nofs precious readonly hidden nomount configuration: name=Microsoft reserved partition -volume:3 description: Windows NTFS volume vendor: Windows physical id: 4 bus info: scsi@1:0.0.0,4 logical name: /dev/sda4 version: 3.1 serial: 2e01-4243 size: 720MiB capacity: 749MiB capabilities: boot precious readonly hidden nomount ntfs initialized configuration: clustersize=4096 created=2015-04-08 21:06:19 filesystem=ntfs label=WINRETOOLS modified_by_chkdsk=true mounted_on_nt4=true name=Microsoft recovery partition resize_log_file=true state=dirty upgrade_on_mount=true -volume:4 description: Windows NTFS volume vendor: Windows physical id: 5 bus info: scsi@1:0.0.0,5 logical name: /dev/sda5 version: 3.1 serial: 10075dfa-6003-ba4f-b49e-7cfe3660ff58 size: 467GiB capacity: 467GiB capabilities: ntfs initialized configuration: clustersize=4096 created=2015-04-08 21:06:33 filesystem=ntfs label=OS name=Basic data partition state=clean -volume:5 description: Windows NTFS volume vendor: Windows physical id: 6 bus info: scsi@1:0.0.0,6 logical name: /dev/sda6 version: 3.1 serial: 6041-799b size: 446MiB capacity: 467MiB capabilities: boot precious readonly hidden nomount ntfs initialized configuration: clustersize=4096 created=2015-08-09 02:35:52 filesystem=ntfs modified_by_chkdsk=true mounted_on_nt4=true resize_log_file=true state=dirty upgrade_on_mount=true -volume:6 description: Windows NTFS volume vendor: Windows physical id: 7 bus info: scsi@1:0.0.0,7 logical name: /dev/sda7 version: 3.1 serial: 7262-7a79 size: 7951MiB capacity: 7960MiB capabilities: boot precious readonly hidden nomount ntfs initialized configuration: clustersize=4096 created=2015-04-08 21:06:39 filesystem=ntfs modified_by_chkdsk=true mounted_on_nt4=true name=Microsoft recovery partition resize_log_file=true state=dirty upgrade_on_mount=true -scsi:1 physical id: 2 logical name: scsi5 capabilities: emulated -disk description: ATA Disk product: TS512GMTS800 physical id: 0.0.0 bus info: scsi@5:0.0.0 logical name: /dev/sdb version: 5B serial: B978840208 size: 476GiB (512GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=d6c391e9-959f-4702-98c9-8a37bb21ba03 logicalsectorsize=512 sectorsize=512 -volume:0 description: EXT4 volume vendor: Linux physical id: 1 bus info: scsi@5:0.0.0,1 logical name: /dev/sdb1 logical name: / version: 1.0 serial: 8ac1604d-10ba-44c9-a29e-6e78cbb61d41 size: 461GiB capabilities: journaled extended_attributes large_files huge_files dir_nlink extents ext4 ext2 initialized configuration: created=2015-04-24 07:09:41 filesystem=ext4 lastmountpoint=/ modified=2018-05-16 21:38:39 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2018-05-16 20:13:32 state=mounted -volume:1 description: Linux swap volume vendor: Linux physical id: 2 bus info: scsi@5:0.0.0,2 logical name: /dev/sdb2 version: 1 serial: f0d543ae-c9d9-4268-b3bc-95dda410918f size: 15GiB capacity: 15GiB capabilities: nofs swap initialized configuration: filesystem=swap pagesize=4095 *-battery description: Nickel Cadmium Battery product: DELL 2F3W14C vendor: Simplo physical id: 1 version: 01/01/2012 serial: Serial Number slot: Location of the battery capacity: 64000mWh configuration: voltage=15.0V

Alex-Linhares commented 6 years ago

Apparently the installer is missing this:

sudo apt-get install libbsd-dev

Alex-Linhares commented 6 years ago

Now, installed, there seems to be a problem in the tests:

al@nvidia ~/sdm-framework/src $ make tests cc -I. libsdm.a test/test_bitstring.c -o test/test_bitstring -O2 -Wall -Wno-gnu -pedantic -fPIC -std=c99 -D SDM_USE_BITCOUNT_TABLE -D SDM_ENABLE_OPENCL -D OS_LINUX test/test_bitstring.c: In function ‘test_bitstring’: test/test_bitstring.c:11:9: warning: variable ‘j’ set but not used [-Wunused-but-set-variable] int i, j; ^ test/test_bitstring.c:8:27: warning: variable ‘bs3’ set but not used [-Wunused-but-set-variable] bitstring_t bs1, bs2, *bs3; ^ test/test_bitstring.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-gnu’ /tmp/ccOa7AsC.o: In function test_bitstring': test_bitstring.c:(.text+0x34): undefined reference tobs_init_bitcount_table' test_bitstring.c:(.text+0x55): undefined reference to bs_alloc' test_bitstring.c:(.text+0x60): undefined reference tobs_alloc' test_bitstring.c:(.text+0x6b): undefined reference to bs_alloc' test_bitstring.c:(.text+0x78): undefined reference tobs_init_ones' test_bitstring.c:(.text+0x86): undefined reference to bs_copy' test_bitstring.c:(.text+0x94): undefined reference tobs_distance' test_bitstring.c:(.text+0xb7): undefined reference to bs_get_bit' test_bitstring.c:(.text+0xcb): undefined reference tobs_get_bit' test_bitstring.c:(.text+0xf2): undefined reference to bs_to_hex' test_bitstring.c:(.text+0x14b): undefined reference tobs_flip_bit' test_bitstring.c:(.text+0x15e): undefined reference to bs_distance' test_bitstring.c:(.text+0x174): undefined reference tobs_init_random' test_bitstring.c:(.text+0x182): undefined reference to bs_copy' test_bitstring.c:(.text+0x190): undefined reference tobs_distance' test_bitstring.c:(.text+0x1ae): undefined reference to bs_get_bit' test_bitstring.c:(.text+0x1bb): undefined reference tobs_get_bit' test_bitstring.c:(.text+0x1e1): undefined reference to bs_flip_bit' test_bitstring.c:(.text+0x1f6): undefined reference tobs_to_hex' test_bitstring.c:(.text+0x209): undefined reference to bs_to_hex' test_bitstring.c:(.text+0x217): undefined reference tobs_distance' test_bitstring.c:(.text+0x22e): undefined reference to bs_copy' test_bitstring.c:(.text+0x23c): undefined reference tobs_distance' test_bitstring.c:(.text+0x257): undefined reference to bs_flip_random_bits' test_bitstring.c:(.text+0x265): undefined reference tobs_distance' test_bitstring.c:(.text+0x280): undefined reference to bs_to_b64' test_bitstring.c:(.text+0x28b): undefined reference tobs_init_b64' test_bitstring.c:(.text+0x299): undefined reference to bs_distance' test_bitstring.c:(.text+0x2e1): undefined reference tobs_to_hex' collect2: error: ld returned 1 exit status Makefile:82: recipe for target 'test/test_bitstring' failed make: *** [test/test_bitstring] Error 1

Alex-Linhares commented 6 years ago

also had forgotten to:

cd sdm/
ln -s ../src/libsdm.so _libsdm.so