Skip to content

thanks for update,but with npm error #31

@weigeloveu

Description

@weigeloveu
Step 4/32 : RUN npm i better-sqlite3@5.4.2
 ---> Running in 10029e24f5ab
npm notice
npm notice New minor version of npm available! 7.15.1 -> 7.16.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.16.0>
npm notice Run `npm install -g npm@7.16.0` to update!
npm notice
npm ERR! code 1
npm ERR! path /app/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/app/node_modules/better-sqlite3/build'
npm ERR!   TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
npm ERR!   ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
npm ERR!   TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR!   CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR!   AR(target) Release/obj.target/deps/sqlite3.a
npm ERR!   COPY Release/sqlite3.a
npm ERR!   CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
npm ERR! rm b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
npm ERR! make: Leaving directory '/app/node_modules/better-sqlite3/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.3.0 | linux | x64
npm ERR! gyp info find Python using Python version 2.7.18 found at "/usr/bin/python"
npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.3.0/node-v16.3.0-headers.tar.gz
npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.3.0/node-v16.3.0-headers.tar.gz
npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.3.0/SHASUMS256.txt
npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.3.0/SHASUMS256.txt
npm ERR! (node:18) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/app/node_modules/better-sqlite3/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/root/.cache/node-gyp/16.3.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.3.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.3.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/app/node_modules/better-sqlite3',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'strftimeFunc':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:22122:52: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 22122 |                       z==zBuf ? SQLITE_TRANSIENT : SQLITE_DYNAMIC);
npm ERR!       |                                                    ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3ErrorWithMsg':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:30441:54: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 30441 |     sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC);
npm ERR!       |                                                      ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3VdbeMemSetStr':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:75617:15: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 75617 |     if( xDel==SQLITE_DYNAMIC ){
npm ERR!       |               ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'valueFromExpr':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:76023:55: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 76023 |       sqlite3ValueSetStr(pVal, -1, zVal, SQLITE_UTF8, SQLITE_DYNAMIC);
npm ERR!       |                                                       ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:76071:29: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 76071 |                          0, SQLITE_DYNAMIC);
npm ERR!       |                             ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'printfFunc':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:113771:25: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 113771 |                         SQLITE_DYNAMIC);
npm ERR!        |                         ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'generateColumnNames':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:127036:58: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 127036 |         sqlite3VdbeSetColName(v, i, COLNAME_NAME, zName, SQLITE_DYNAMIC);
npm ERR!        |                                                          ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:14182:27: warning: cast between incompatible function types from 'int (*)(void *)' to 'void (*)(void *)' [-Wcast-function-type]
npm ERR! 14182 | #define SQLITE_DYNAMIC   ((sqlite3_destructor_type)sqlite3MallocSize)
npm ERR!       |                           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:127043:52: note: in expansion of macro 'SQLITE_DYNAMIC'
npm ERR! 127043 |       sqlite3VdbeSetColName(v, i, COLNAME_NAME, z, SQLITE_DYNAMIC);
npm ERR!        |                                                    ^~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3InvokeBusyHandler':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:156790:12: warning: cast between incompatible function types from 'int (*)(void *, int)' to 'int (*)(void *, int,  sqlite3_file *)' [-Wcast-function-type]
npm ERR! 156790 |     xTra = (int(*)(void*,int,sqlite3_file*))p->xBusyHandler;
npm ERR!        |            ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3_busy_timeout':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:156868:30: warning: cast between incompatible function types from 'int (*)(void *, int,  sqlite3_file *)' to 'int (*)(void *, int)' [-Wcast-function-type]
npm ERR! 156868 |     sqlite3_busy_handler(db, (int(*)(void*,int))sqliteDefaultBusyCallback,
npm ERR!        |                              ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3_db_status':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:20945:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 20945 |       op = SQLITE_DBSTATUS_CACHE_WRITE+1;
npm ERR!       |       ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:20947:5: note: here
npm ERR! 20947 |     case SQLITE_DBSTATUS_CACHE_HIT:
npm ERR!       |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3_str_vappendf':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:27701:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 27701 |         flag_long = sizeof(char*)==sizeof(i64) ? 2 :
npm ERR!       |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 27702 |                      sizeof(char*)==sizeof(long int) ? 1 : 0;
npm ERR!       |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:27704:7: note: here
npm ERR! 27704 |       case etORDINAL:
npm ERR!       |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:27706:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 27706 |         cThousand = 0;
npm ERR!       |         ~~~~~~~~~~^~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:27708:7: note: here
npm ERR! 27708 |       case etDECIMAL:
npm ERR!       |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3GetToken':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:154367:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 154367 |       if( !sqlite3Isdigit(z[1]) )
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:154376:5: note: here
npm ERR! 154376 |     case CC_DIGIT: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:154466:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 154466 |       if( z[1]=='\'' ){
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:154480:5: note: here
npm ERR! 154480 |     case CC_ID: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3ExprCodeTarget':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:100682:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 100682 |     case TK_AGG_COLUMN: {
npm ERR!        |                         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:100695:5: note: here
npm ERR! 100695 |     case TK_COLUMN: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'resolveP2Values':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:77185:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 77185 |           if( pOp->p2!=0 ) p->readOnly = 0;
npm ERR!       |             ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:77188:9: note: here
npm ERR! 77188 |         case OP_AutoCommit:
npm ERR!       |         ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:77226:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 77226 |         case OP_VFilter: {
npm ERR!       |                          ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:77235:9: note: here
npm ERR! 77235 |         default: {
npm ERR!       |         ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'resolveExprStep':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:96366:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 96366 |     case TK_ISNOT: {
npm ERR!       |                    ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:96382:5: note: here
npm ERR! 96382 |     case TK_BETWEEN:
npm ERR!       |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'impliesNotNullRow':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:102309:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 102308 |       if( (pExpr->pLeft->op==TK_COLUMN && IsVirtual(pExpr->pLeft->y.pTab))
npm ERR!        |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 102309 |        || (pExpr->pRight->op==TK_COLUMN && IsVirtual(pExpr->pRight->y.pTab))
npm ERR!        |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:102313:5: note: here
npm ERR! 102313 |     default:
npm ERR!        |     ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'exprImpliesNotNull':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:102188:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 102188 |       if( exprImpliesNotNull(pParse, p->pRight, pNN, iTab, seenNot) ) return 1;
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:102191:5: note: here
npm ERR! 102191 |     case TK_SPAN:
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'fkActionTrigger':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:116863:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 116863 |         if( !pChanges ){
npm ERR!        |           ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:116867:7: note: here
npm ERR! 116867 |       default:
npm ERR!        |       ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3GenerateConstraintChecks':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118331:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 118331 |         onError = OE_Abort;
npm ERR!        |                 ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118335:7: note: here
npm ERR! 118335 |       case OE_Abort:
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118493:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 118493 |         onError = OE_Abort;
npm ERR!        |                 ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118496:7: note: here
npm ERR! 118496 |       case OE_Rollback:
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118556:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 118556 |         sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, 0, iDataCur);
npm ERR!        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118560:7: note: here
npm ERR! 118560 |       case OE_Ignore: {
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118772:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 118772 |         sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, pIdx, iIdxCur+ix);
npm ERR!        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:118776:7: note: here
npm ERR! 118776 |       case OE_Ignore: {
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3VdbeExec':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:84796:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 84796 |   if( (pIn3->flags & MEM_Null)==0 ) break;
npm ERR!       |     ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:84830:1: note: here
npm ERR! 84830 | case OP_Halt: {
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:84963:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 84963 |   if( pOp->p1>db->aLimit[SQLITE_LIMIT_LENGTH] ){
npm ERR!       |     ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:84982:1: note: here
npm ERR! 84982 | case OP_String: {          /* out2 */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:88088:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 88088 | case OP_IfNoHope: {     /* jump, in3 */
npm ERR!       |                   ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:88096:1: note: here
npm ERR! 88096 | case OP_NoConflict:     /* jump, in3 */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:89014:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 89014 |   p->aCounter[SQLITE_STMTSTATUS_SORT]++;
npm ERR!       |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:89029:1: note: here
npm ERR! 89029 | case OP_Rewind: {        /* jump */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:90325:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 90325 |   pOp->opcode = OP_AggStep1;
npm ERR!       |               ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:90328:1: note: here
npm ERR! 90328 | case OP_AggStep1: {
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:91197:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 91197 |   pOp->opcode += 2;
npm ERR!       |   ~~~~~~~~~~~~^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:91200:1: note: here
npm ERR! 91200 | case OP_PureFunc:              /* group */
npm ERR!       | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'fts3SnippetFunc':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164529:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 164529 |     case 6: nToken = sqlite3_value_int(apVal[5]);
npm ERR!        |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164530:5: note: here
npm ERR! 164530 |     case 5: iCol = sqlite3_value_int(apVal[4]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164530:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 164530 |     case 5: iCol = sqlite3_value_int(apVal[4]);
npm ERR!        |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164531:5: note: here
npm ERR! 164531 |     case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164531:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 164531 |     case 4: zEllipsis = (const char*)sqlite3_value_text(apVal[3]);
npm ERR!        |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164532:5: note: here
npm ERR! 164532 |     case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164532:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 164532 |     case 3: zEnd = (const char*)sqlite3_value_text(apVal[2]);
npm ERR!        |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164533:5: note: here
npm ERR! 164533 |     case 2: zStart = (const char*)sqlite3_value_text(apVal[1]);
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'fts3ColumnMethod':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164286:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 164286 |         iCol = p->nColumn;
npm ERR!        |         ~~~~~^~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:164290:5: note: here
npm ERR! 164290 |     default:
npm ERR!        |     ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'cellArea':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183792:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183792 |       case 5:  area  = p->aCoord[9].f - p->aCoord[8].f;
npm ERR!        |                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183793:7: note: here
npm ERR! 183793 |       case 4:  area *= p->aCoord[7].f - p->aCoord[6].f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183793:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183793 |       case 4:  area *= p->aCoord[7].f - p->aCoord[6].f;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183794:7: note: here
npm ERR! 183794 |       case 3:  area *= p->aCoord[5].f - p->aCoord[4].f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183794:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183794 |       case 3:  area *= p->aCoord[5].f - p->aCoord[4].f;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183795:7: note: here
npm ERR! 183795 |       case 2:  area *= p->aCoord[3].f - p->aCoord[2].f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183795:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183795 |       case 2:  area *= p->aCoord[3].f - p->aCoord[2].f;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183796:7: note: here
npm ERR! 183796 |       default: area *= p->aCoord[1].f - p->aCoord[0].f;
npm ERR!        |       ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183802:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183802 |       case 5:  area  = (i64)p->aCoord[9].i - (i64)p->aCoord[8].i;
npm ERR!        |                ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183803:7: note: here
npm ERR! 183803 |       case 4:  area *= (i64)p->aCoord[7].i - (i64)p->aCoord[6].i;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183803:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183803 |       case 4:  area *= (i64)p->aCoord[7].i - (i64)p->aCoord[6].i;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183804:7: note: here
npm ERR! 183804 |       case 3:  area *= (i64)p->aCoord[5].i - (i64)p->aCoord[4].i;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183804:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183804 |       case 3:  area *= (i64)p->aCoord[5].i - (i64)p->aCoord[4].i;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183805:7: note: here
npm ERR! 183805 |       case 2:  area *= (i64)p->aCoord[3].i - (i64)p->aCoord[2].i;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183805:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183805 |       case 2:  area *= (i64)p->aCoord[3].i - (i64)p->aCoord[2].i;
npm ERR!        |                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183806:7: note: here
npm ERR! 183806 |       default: area *= (i64)p->aCoord[1].i - (i64)p->aCoord[0].i;
npm ERR!        |       ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'rtreeCallbackConstraint':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182974:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182974 |                 readCoord(pCellData+32, &c); aCoord[8] = c.f;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182975:7: note: here
npm ERR! 182975 |       case 8:   readCoord(pCellData+28, &c); aCoord[7] = c.f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182976:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182976 |                 readCoord(pCellData+24, &c); aCoord[6] = c.f;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182977:7: note: here
npm ERR! 182977 |       case 6:   readCoord(pCellData+20, &c); aCoord[5] = c.f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182978:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182978 |                 readCoord(pCellData+16, &c); aCoord[4] = c.f;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182979:7: note: here
npm ERR! 182979 |       case 4:   readCoord(pCellData+12, &c); aCoord[3] = c.f;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182980:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182980 |                 readCoord(pCellData+8,  &c); aCoord[2] = c.f;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182981:7: note: here
npm ERR! 182981 |       default:  readCoord(pCellData+4,  &c); aCoord[1] = c.f;
npm ERR!        |       ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182989:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182989 |                 readCoord(pCellData+32, &c); aCoord[8] = c.i;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182990:7: note: here
npm ERR! 182990 |       case 8:   readCoord(pCellData+28, &c); aCoord[7] = c.i;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182991:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182991 |                 readCoord(pCellData+24, &c); aCoord[6] = c.i;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182992:7: note: here
npm ERR! 182992 |       case 6:   readCoord(pCellData+20, &c); aCoord[5] = c.i;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182993:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182993 |                 readCoord(pCellData+16, &c); aCoord[4] = c.i;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182994:7: note: here
npm ERR! 182994 |       case 4:   readCoord(pCellData+12, &c); aCoord[3] = c.i;
npm ERR!        |       ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182995:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 182995 |                 readCoord(pCellData+8,  &c); aCoord[2] = c.i;
npm ERR!        |                                              ~~~~~~~~~~^~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:182996:7: note: here
npm ERR! 182996 |       default:  readCoord(pCellData+4,  &c); aCoord[1] = c.i;
npm ERR!        |       ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'rtreeNonleafConstraint':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183048:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 183048 |       if( p->op!=RTREE_EQ ) break;  /* RTREE_LE and RTREE_LT end here */
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:183051:5: note: here
npm ERR! 183051 |     default: /* RTREE_GT or RTREE_GE,  or fallthrough of RTREE_EQ */
npm ERR!        |     ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'jsonRenderNode':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:179708:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 179708 |       if( pNode->jnFlags & JNODE_RAW ){
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:179714:5: note: here
npm ERR! 179714 |     case JSON_REAL:
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'jsonReturn':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:179822:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 179822 |       int_as_real: /* fall through to real */;
npm ERR!        |       ^~~~~~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:179824:5: note: here
npm ERR! 179824 |     case JSON_REAL: {
npm ERR!        |     ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'jsonEachColumn':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:181466:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR! 181466 |       if( p->bRecursive ){
npm ERR!        |         ^
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:181476:5: note: here
npm ERR! 181476 |     default: {
npm ERR!        |     ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3SelectNew':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:125321:10: warning: function may return address of local variable [-Wreturn-local-addr]
npm ERR! 125321 |   return pNew;
npm ERR!        |          ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:125281:10: note: declared here
npm ERR! 125281 |   Select standin;
npm ERR!        |          ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:125281:10: note: declared here
npm ERR! In file included from ./src/better_sqlite3.lzz:10,
npm ERR!                  from ../src/better_sqlite3.cpp:4:
npm ERR! /root/.cache/node-gyp/16.3.0/include/node/node.h:806:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
npm ERR!   806 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /root/.cache/node-gyp/16.3.0/include/node/node.h:840:3: note: in expansion of macro 'NODE_MODULE_X'
npm ERR!   840 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ./src/better_sqlite3.lzz:15:1: note: in expansion of macro 'NODE_MODULE'
npm ERR! ./src/objects/database.lzz: In static member function 'static void Database::Init(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Object>)':
npm ERR! ./src/objects/database.lzz:129:40: error: cannot convert 'void (*)(void*)' to 'node::Environment*'
npm ERR! In file included from ./src/better_sqlite3.lzz:10,
npm ERR!                  from ../src/better_sqlite3.cpp:4:
npm ERR! /root/.cache/node-gyp/16.3.0/include/node/node.h:898:38: note:   initializing argument 1 of 'void node::AtExit(node::Environment*, void (*)(void*), void*)'
npm ERR!   898 | NODE_EXTERN void AtExit(Environment* env,
npm ERR!       |                         ~~~~~~~~~~~~~^~~
npm ERR! ./src/util/binder.lzz: In static member function 'static bool Binder::IsPlainObject(v8::Isolate*, v8::Local<v8::Object>)':
npm ERR! ./src/util/binder.lzz:36:67: warning: 'v8::Local<v8::Context> v8::Object::CreationContext()' is deprecated: Use MaybeLocal<Context> GetCreationContext() [-Wdeprecated-declarations]
npm ERR! In file included from /root/.cache/node-gyp/16.3.0/include/node/node.h:63,
npm ERR!                  from ./src/better_sqlite3.lzz:10,
npm ERR!                  from ../src/better_sqlite3.cpp:4:
npm ERR! /root/.cache/node-gyp/16.3.0/include/node/v8.h:4281:18: note: declared here
npm ERR!  4281 |   Local<Context> CreationContext();
npm ERR!       |                  ^~~~~~~~~~~~~~~
npm ERR! make: *** [better_sqlite3.target.mk:125: Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 4.4.0-210-generic
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /app/node_modules/better-sqlite3
npm ERR! gyp ERR! node -v v16.3.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-06-07T11_51_00_964Z-debug.log
The command '/bin/sh -c npm i better-sqlite3@5.4.2' returned a non-zero code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions