turtl / tracker

This project is for tracking issues, bug reports, and progress on the entire Turtl project.
67 stars 3 forks source link

Error running 'npm install' for desktop #380

Closed va-an closed 3 years ago

va-an commented 3 years ago

Hello! I'm trying to build desktop-app on my mac by this man and getting errors with npm install. Versions:

I have the same error with different node versions - 7, 8, 15. Full logs from the build below.

js repo npm install log ``` $ npm install npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@4.2.1: this library is no longer supported npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated > fsevents@1.2.13 install /Users/vaan/sources/turtl/js/node_modules/fsevents > node install.js SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o SOLINK_MODULE(target) Release/fse.node npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN turtl-js@0.6.0 No repository field. npm WARN turtl-js@0.6.0 license should be a valid SPDX license expression added 331 packages from 326 contributors and audited 331 packages in 13.275s 2 packages are looking for funding run `npm fund` for details found 8 vulnerabilities (3 low, 4 moderate, 1 high) run `npm audit fix` to fix them, or `npm audit` for details ```
desktop repo npm install log ``` $ npm install npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported > ref@1.3.5 install /Users/vaan/sources/turtl/desktop/node_modules/ref > node-gyp rebuild CXX(target) Release/obj.target/binding/src/binding.o ../src/binding.cc:643:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target, Nan::New("endianness").ToLocalChecked(), Nan::New(CheckEndianness()).ToLocalChecked(), static_cast(ReadOnly|DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/binding.cc:644:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target, Nan::New("NULL").ToLocalChecked(), WrapNullPointer(), static_cast(ReadOnly|DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ 2 warnings generated. SOLINK_MODULE(target) Release/binding.node > ffi@2.3.0 install /Users/vaan/sources/turtl/desktop/node_modules/ffi > node-gyp rebuild CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o CC(target) Release/obj.target/ffi/deps/libffi/src/types.o CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o In file included from ../deps/libffi/src/closures.c:210: ../deps/libffi/src/dlmalloc.c:2932:33: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] used = fp - (m->topsize + TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:2932:33: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] used = fp - (m->topsize + TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3289:39: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] chunk_plus_offset(p, psize)->head = TOP_FOOT_SIZE; ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3289:39: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] chunk_plus_offset(p, psize)->head = TOP_FOOT_SIZE; ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3383:41: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3383:41: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3461:40: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] asize = granularity_align(nb + TOP_FOOT_SIZE + SIZE_T_ONE); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3461:40: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] asize = granularity_align(nb + TOP_FOOT_SIZE + SIZE_T_ONE); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3475:51: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] asize = granularity_align(nb - m->topsize + TOP_FOOT_SIZE + SIZE_T_ONE); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3475:51: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] asize = granularity_align(nb - m->topsize + TOP_FOOT_SIZE + SIZE_T_ONE); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3487:26: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] asize < nb + TOP_FOOT_SIZE + SIZE_T_ONE) { ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3487:26: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] asize < nb + TOP_FOOT_SIZE + SIZE_T_ONE) { ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3488:49: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] size_t esize = granularity_align(nb + TOP_FOOT_SIZE + SIZE_T_ONE - asize); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3488:49: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] size_t esize = granularity_align(nb + TOP_FOOT_SIZE + SIZE_T_ONE - asize); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3512:23: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] size_t req = nb + TOP_FOOT_SIZE + SIZE_T_ONE; ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3512:23: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] size_t req = nb + TOP_FOOT_SIZE + SIZE_T_ONE; ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3525:43: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] size_t asize = granularity_align(nb + TOP_FOOT_SIZE + SIZE_T_ONE); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3525:43: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] size_t asize = granularity_align(nb + TOP_FOOT_SIZE + SIZE_T_ONE); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ^ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:2143:6: note: expanded from macro 'granularity_align' (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE)) ^ ../deps/libffi/src/dlmalloc.c:3535:26: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] if (ssize > nb + TOP_FOOT_SIZE) { ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3535:26: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] if (ssize > nb + TOP_FOOT_SIZE) { ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3555:47: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3555:47: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3559:64: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3559:64: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE); ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3627:59: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] if (!cinuse(p) && (char*)p + psize >= base + size - TOP_FOOT_SIZE) { ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3627:59: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] if (!cinuse(p) && (char*)p + psize >= base + size - TOP_FOOT_SIZE) { ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ ../deps/libffi/src/dlmalloc.c:3658:12: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] pad += TOP_FOOT_SIZE; /* ensure enough room for segment overhead */ ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1275:14: note: expanded from macro 'align_offset' ((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\ ^ ../deps/libffi/src/dlmalloc.c:3658:12: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] pad += TOP_FOOT_SIZE; /* ensure enough room for segment overhead */ ^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:2188:17: note: expanded from macro 'TOP_FOOT_SIZE' (align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE) ~~~~~~~~~~~~~^~~~~~~~~~~~~ ../deps/libffi/src/dlmalloc.c:1688:55: note: expanded from macro 'chunk2mem' #define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES)) ^ ../deps/libffi/src/dlmalloc.c:1276:34: note: expanded from macro 'align_offset' ((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK)) ^ 28 warnings generated. CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin.o CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin64.o LIBTOOL-STATIC Release/libffi.a CXX(target) Release/obj.target/ffi_bindings/src/ffi.o ../src/ffi.cc:58:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_OK); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:59:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_BAD_TYPEDEF); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:60:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_BAD_ABI); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:63:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_DEFAULT_ABI); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:64:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_FIRST_ABI); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:65:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_LAST_ABI); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:81:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_SYSV); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:83:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(FFI_UNIX64); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:88:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_LAZY); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:91:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_NOW); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:94:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_LOCAL); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:97:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_GLOBAL); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:100:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_NOLOAD); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:103:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_NODELETE); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:106:3: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] SET_ENUM_VALUE(RTLD_FIRST); ^ ../src/ffi.cc:38:8: note: expanded from macro 'SET_ENUM_VALUE' Nan::ForceSet(target, Nan::New(#_value).ToLocalChecked(), \ ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:111:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("RTLD_NEXT").ToLocalChecked(), WrapPointer((char *)RTLD_NEXT), static_cast(ReadOnly | DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:114:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("RTLD_DEFAULT").ToLocalChecked(), WrapPointer((char *)RTLD_DEFAULT), static_cast(ReadOnly | DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:117:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("RTLD_SELF").ToLocalChecked(), WrapPointer((char *)RTLD_SELF), static_cast(ReadOnly|DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:120:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("RTLD_MAIN_ONLY").ToLocalChecked(), WrapPointer((char *)RTLD_MAIN_ONLY), static_cast(ReadOnly|DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:123:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("FFI_ARG_SIZE").ToLocalChecked(), Nan::New((uint32_t)sizeof(ffi_arg)), static_cast(ReadOnly|DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:124:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("FFI_SARG_SIZE").ToLocalChecked(), Nan::New((uint32_t)sizeof(ffi_sarg)), static_cast(ReadOnly | DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:125:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("FFI_TYPE_SIZE").ToLocalChecked(), Nan::New((uint32_t)sizeof(ffi_type)), static_cast(ReadOnly | DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:126:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("FFI_CIF_SIZE").ToLocalChecked(), Nan::New((uint32_t)sizeof(ffi_cif)), static_cast(ReadOnly | DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:132:8: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations] Nan::ForceSet(target,Nan::New("HAS_OBJC").ToLocalChecked(), Nan::New(hasObjc), static_cast(ReadOnly | DontDelete)); ^ ../../nan/nan_maybe_43_inl.h:117:1: note: 'ForceSet' has been explicitly marked deprecated here NAN_DEPRECATED inline Maybe ForceSet( ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/ffi.cc:367:16: warning: 'Call' is deprecated [-Wdeprecated-declarations] p->callback->Call(1, argv); ^ ../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ 25 warnings generated. CXX(target) Release/obj.target/ffi_bindings/src/callback_info.o ../src/callback_info.cc:63:30: warning: 'Call' is deprecated [-Wdeprecated-declarations] info->errorFunction->Call(1, errorFunctionArgv); ^ ../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/callback_info.cc:73:38: warning: 'Call' is deprecated [-Wdeprecated-declarations] Local e = info->function->Call(2, functionArgv); ^ ../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ ../src/callback_info.cc:78:30: warning: 'Call' is deprecated [-Wdeprecated-declarations] info->errorFunction->Call(1, errorFunctionArgv); ^ ../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED' # define NAN_DEPRECATED __attribute__((deprecated)) ^ 3 warnings generated. CXX(target) Release/obj.target/ffi_bindings/src/threaded_callback_invokation.o SOLINK_MODULE(target) Release/ffi_bindings.node ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame > electron@1.8.3 postinstall /Users/vaan/sources/turtl/desktop/node_modules/electron > node install.js npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN Turtl@0.7.2-6 No repository field. npm WARN Turtl@0.7.2-6 No license field. added 347 packages from 224 contributors and audited 348 packages in 39.697s 7 packages are looking for funding run `npm fund` for details found 3 vulnerabilities (1 low, 1 high, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details ```
desktop repo - make ``` $ make electron-rebuild ./node_modules/.bin/electron-rebuild ✔ Rebuild Complete ```
desktop repo - make run ``` $ make run - core build: ../core//cwrap/build.rs ../core//cwrap/src/lib.rs ../core//clippo/src/error.rs ../core//clippo/src/lib.rs ../core//config/src/lib.rs ../core//protected_derive/src/lib.rs ../core//jedi/src/lib.rs ../core//integration-tests/tests/ping_pong.rs ../core//integration-tests/tests/set_api_endpoint.rs ../core//integration-tests/tests/import_export.rs ../core//integration-tests/tests/file_sync.rs ../core//integration-tests/tests/invites.rs ../core//integration-tests/tests/save_login.rs ../core//integration-tests/tests/login_sync_logout.rs ../core//integration-tests/tests/migrate.rs ../core//integration-tests/tests/missing_privkey.rs ../core//integration-tests/tests/join_delete.rs ../core//integration-tests/tests/clip.rs ../core//integration-tests/tests/key_loss.rs ../core//integration-tests/src/util.rs ../core//integration-tests/src/main.rs ../core//migrate/rust-crypto/build.rs ../core//migrate/rust-crypto/examples/symmetriccipher.rs ../core//migrate/rust-crypto/src/aesni.rs ../core//migrate/rust-crypto/src/bcrypt_pbkdf.rs ../core//migrate/rust-crypto/src/scrypt.rs ../core//migrate/rust-crypto/src/blake2s.rs ../core//migrate/rust-crypto/src/simd.rs ../core//migrate/rust-crypto/src/aes.rs ../core//migrate/rust-crypto/src/chacha20poly1305.rs ../core//migrate/rust-crypto/src/util.rs ../core//migrate/rust-crypto/src/sha1.rs ../core//migrate/rust-crypto/src/step_by.rs ../core//migrate/rust-crypto/src/aead.rs ../core//migrate/rust-crypto/src/lib.rs ../core//migrate/rust-crypto/src/cryptoutil.rs ../core//migrate/rust-crypto/src/fortuna.rs ../core//migrate/rust-crypto/src/digest.rs ../core//migrate/rust-crypto/src/aes_gcm.rs ../core//migrate/rust-crypto/src/aessafe.rs ../core//migrate/rust-crypto/src/ghash.rs ../core//migrate/rust-crypto/src/whirlpool.rs ../core//migrate/rust-crypto/src/sosemanuk.rs ../core//migrate/rust-crypto/src/symmetriccipher.rs ../core//migrate/rust-crypto/src/mac.rs ../core//migrate/rust-crypto/src/md5.rs ../core//migrate/rust-crypto/src/blake2b.rs ../core//migrate/rust-crypto/src/hmac.rs ../core//migrate/rust-crypto/src/ed25519.rs ../core//migrate/rust-crypto/src/buffer.rs ../core//migrate/rust-crypto/src/chacha20.rs ../core//migrate/rust-crypto/src/rc4.rs ../core//migrate/rust-crypto/src/poly1305.rs ../core//migrate/rust-crypto/src/blowfish.rs ../core//migrate/rust-crypto/src/ripemd160.rs ../core//migrate/rust-crypto/src/sha2.rs ../core//migrate/rust-crypto/src/bcrypt.rs ../core//migrate/rust-crypto/src/hc128.rs ../core//migrate/rust-crypto/src/sha3.rs ../core//migrate/rust-crypto/src/curve25519.rs ../core//migrate/rust-crypto/src/pbkdf2.rs ../core//migrate/rust-crypto/src/blockmodes.rs ../core//migrate/rust-crypto/src/salsa20.rs ../core//migrate/rust-crypto/src/hkdf.rs ../core//migrate/tests/migrate.rs ../core//migrate/src/crypto/key.rs ../core//migrate/src/crypto/mod.rs ../core//migrate/src/crypto/low.rs ../core//migrate/src/util.rs ../core//migrate/src/error.rs ../core//migrate/src/lib.rs ../core//migrate/src/user.rs ../core//migrate/src/api.rs ../core//sock/src/logger.rs ../core//sock/src/main.rs ../core//dumpy/src/error.rs ../core//dumpy/src/lib.rs ../core//clouseau/src/lib.rs ../core//carrier/src/error.rs ../core//carrier/src/lib.rs ../core//carrier/src/c.rs ../core//client/src/main.rs ../core//src/crypto/key.rs ../core//src/crypto/error.rs ../core//src/crypto/mod.rs ../core//src/crypto/low.rs ../core//src/dispatch.rs ../core//src/util/logger.rs ../core//src/util/thredder.rs ../core//src/util/ser.rs ../core//src/util/mod.rs ../core//src/util/i18n.rs ../core//src/profile.rs ../core//src/error.rs ../core//src/lib.rs ../core//src/models/protected.rs ../core//src/models/feedback.rs ../core//src/models/invite.rs ../core//src/models/sync_record.rs ../core//src/models/board.rs ../core//src/models/user.rs ../core//src/models/note.rs ../core//src/models/mod.rs ../core//src/models/storable.rs ../core//src/models/space.rs ../core//src/models/keychain.rs ../core//src/models/space_member.rs ../core//src/models/validate.rs ../core//src/models/model.rs ../core//src/models/file.rs ../core//src/messaging.rs ../core//src/schema.rs ../core//src/storage.rs ../core//src/sync/outgoing.rs ../core//src/sync/incoming.rs ../core//src/sync/mod.rs ../core//src/sync/sync_model.rs ../core//src/sync/files/outgoing.rs ../core//src/sync/files/incoming.rs ../core//src/sync/files/mod.rs ../core//src/sync/macros.rs ../core//src/search.rs ../core//src/api.rs ../core//src/turtl.rs cd ../core && make CARGO_BUILD_ARGS= release build --features "sqlite-static" --release /bin/sh: build: command not found make[1]: *** [build] Error 127 make: *** [build/turtl_core.dylib] Error 2 ```
orthecreedence commented 3 years ago

Looks like cargo is not in your $PATH.

va-an commented 3 years ago

@orthecreedence, you are right) I'm installed rust and libsodium and make run opens blank window now. I would like to run local client connected to https://apiv3.turtlapp.com for further learning.

Maybe I install core-rs somewhat incorrectly, I will seek in README about it.

orthecreedence commented 3 years ago

A blank screen here generally means that the desktop app is having trouble loading or talking to the core. If you type ctrl+shift+k when the desktop app open, it might give you a clue what's happening in the console. Let me know what you see in there.

va-an commented 3 years ago

I have 2 errors in console:

some

orthecreedence commented 3 years ago

Funny, I just dealt with this with someone over email.

Can you share what's in package.json? The handlebars package should be fixed at version 4.0.11, but for some reason it keeps grabbing some 4.3.x version.

In any case, the fix was:

  1. rm -rf node_modules/handlebars/
  2. npm install handlebars@4.0.11

Let me know if that gets the UI building correctly.

orthecreedence commented 3 years ago

OH it's because I had changes sitting locally for months. Good job, Andrew...

I just pushed my turtl/js changes up, if you git pull, rm -rf node_modules/ and npm install it should fix the problem.

va-an commented 3 years ago

I'm received last changes with handlebars version 4.0.11

$ npm list | grep handlebars
├─┬ handlebars@4.0.11

Then check it, but UI still is blank screen and errors in console the same. I noticed that I'm use libsodium 1.0.18 (not 1.0.16) and I will check my OpenSSL version - I will try build desktop again after fix this.

va-an commented 3 years ago

I promise I add all info about build desktop in README after a successful deskop run 😃 .

orthecreedence commented 3 years ago

That would be wonderful, thank you. That error is really the same? The handlebars versions should be in sync now, I'm surprised it is giving you trouble.

va-an commented 3 years ago

@orthecreedence, I did it! My local desktop client works nice, thanks a lot!

I don't know what helped me in the end:

I will check all process of local deploy on another macOS host and update README(s).

orthecreedence commented 3 years ago

Excellent! Glad you got it running. Thank you for the README updates!

va-an commented 3 years ago

@orthecreedence, hello) I compiled and run the desktop client on my other macOS host without any problems at all. It's because:

I think README in desktop/js/core is well documented for a local running desktop client for now.

Again, thank you for your help!

orthecreedence commented 3 years ago

Great! Thanks for reporting back, and thank you also for jumping in on a lot of the other issues and helping other users. My time is limited these days and it's very nice to have the support.