Last active
September 24, 2018 17:01
-
-
Save rbw/6d6e6a718f592afdc3ac4a6e7469be59 to your computer and use it in GitHub Desktop.
Nanopy clang compile error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[/tmp/nanopy]$ CC=/usr/bin/clang python3 setup.py build_ext --enable-gpu --inplace | |
running build_ext | |
building 'nanopy.work' extension | |
/usr/bin/clang -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_CL_CL_H=1 -I/usr/include/python3.6m -c nanopy/work.c -o build/temp.linux-x86_64-3.6/nanopy/work.o | |
clang: warning: argument unused during compilation: '-specs=/usr/share/dpkg/no-pie-compile.specs' [-Wunused-command-line-argument] | |
nanopy/work.c:15:31: warning: missing terminating '"' character [-Winvalid-pp-token] | |
const char *opencl_program = R"%%%( | |
^ | |
nanopy/work.c:15:30: error: use of undeclared identifier 'R' | |
const char *opencl_program = R"%%%( | |
^ | |
nanopy/work.c:15:31: error: expected ';' after top level declarator | |
const char *opencl_program = R"%%%( | |
^ | |
; | |
nanopy/work.c:27:2: error: unknown type name 'uchar' | |
uchar digest_length; // 1 | |
^ | |
nanopy/work.c:28:2: error: unknown type name 'uchar' | |
uchar key_length; // 2 | |
^ | |
nanopy/work.c:29:2: error: unknown type name 'uchar' | |
uchar fanout; // 3 | |
^ | |
nanopy/work.c:30:2: error: unknown type name 'uchar' | |
uchar depth; // 4 | |
^ | |
nanopy/work.c:33:2: error: unknown type name 'uchar' | |
uchar node_depth; // 17 | |
^ | |
nanopy/work.c:34:2: error: unknown type name 'uchar' | |
uchar inner_length; // 18 | |
^ | |
nanopy/work.c:35:2: error: unknown type name 'uchar' | |
uchar reserved[14]; // 32 | |
^ | |
nanopy/work.c:36:2: error: unknown type name 'uchar' | |
uchar salt[BLAKE2B_SALTBYTES]; // 48 | |
^ | |
nanopy/work.c:36:14: error: use of undeclared identifier 'BLAKE2B_SALTBYTES' | |
uchar salt[BLAKE2B_SALTBYTES]; // 48 | |
^ | |
nanopy/work.c:37:2: error: unknown type name 'uchar' | |
uchar personal[BLAKE2B_PERSONALBYTES]; // 64 | |
^ | |
nanopy/work.c:37:18: error: use of undeclared identifier 'BLAKE2B_PERSONALBYTES' | |
uchar personal[BLAKE2B_PERSONALBYTES]; // 64 | |
^ | |
nanopy/work.c:45:2: error: unknown type name 'uchar' | |
uchar buf[2 * BLAKE2B_BLOCKBYTES]; | |
^ | |
nanopy/work.c:45:17: error: use of undeclared identifier 'BLAKE2B_BLOCKBYTES' | |
uchar buf[2 * BLAKE2B_BLOCKBYTES]; | |
^ | |
nanopy/work.c:47:2: error: unknown type name 'uchar' | |
uchar last_node; | |
^ | |
nanopy/work.c:50:1: error: unknown type name '__constant' | |
__constant static ulong blake2b_IV[8] = | |
^ | |
nanopy/work.c:50:12: error: expected identifier or '(' | |
__constant static ulong blake2b_IV[8] = | |
^ | |
nanopy/work.c:58:1: error: unknown type name '__constant' | |
__constant static uchar blake2b_sigma[12][16] = | |
^ | |
fatal error: too many errors emitted, stopping now [-ferror-limit=] | |
1 warning and 20 errors generated. | |
error: command '/usr/bin/clang' failed with exit status 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment