dukpy: compile error with python3.7 on mac
hi, when I try to insall dukpy with latest version 0.2.2 (or 0.2.1, 0.2.0) on mac, some error messages occur.
Mac: RELEASE_X86_64 x86_64 Python: 3.7 pip3: 18.0
when run command:
pip3 install dukpy
error messages: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DDUK_OPT_DEEP_C_STACK=1 -DDUK_OPT_NONSTD_REGEXP_DOLLAR_ESCAPE=1 -DDUK_OPT_OCTAL_SUPPORT=1 -I./src/duktape -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/duktape/duktape.c -o build/temp.macosx-10.13-x86_64-3.7/src/duktape/duktape.o duk_bi_date_unix.c:53:15: error: array has incomplete element type ‘struct tm’ struct tm tms[2]; ^ duk_bi_date_unix.c:53:9: note: forward declaration of ‘struct tm’ struct tm tms[2]; ^ duk_bi_date_unix.c:134:28: error: invalid application of ‘sizeof’ to an incomplete type ‘struct tm’ DUK_MEMZERO((void *) tms, sizeof(struct tm) * 2); ^ ~~~~~~~~~~~ ./src/duktape/duk_config.h:1965:46: note: expanded from macro ‘DUK_MEMZERO’ #define DUK_MEMZERO(p,n) DUK_MEMSET((p), 0, (n)) ^ /usr/include/secure/_string.h:76:33: note: expanded from macro ‘memset’ __builtin___memset_chk (dest, VA_ARGS, __darwin_obsz0 (dest)) ^~~~~~~~~~~ duk_bi_date_unix.c:53:9: note: forward declaration of ‘struct tm’ struct tm tms[2]; …
Command “/usr/local/opt/python/bin/python3.7 -u -c “import setuptools, tokenize;file=‘/private/var/folders/x0/y4wx_dy95cg6kshhsnnvlhkr0000gn/T/pip-install-nemfkg94/dukpy/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /private/var/folders/x0/y4wx_dy95cg6kshhsnnvlhkr0000gn/T/pip-record-afo8rlwm/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /private/var/folders/x0/y4wx_dy95cg6kshhsnnvlhkr0000gn/T/pip-install-nemfkg94/dukpy/
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (20 by maintainers)
Wheels for OSX are now provided at release time, see https://github.com/amol-/dukpy/releases/tag/wheels-test M1 wheels are not yet available but I plan to implement them in the next few weeks