[Bug 296164] editors/vscode fails to build in poudriere with error: in-class initializer for static data member is not a constant expression on amd64 15.1 Stable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Jun 2026 12:55:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296164
Bug ID: 296164
Summary: editors/vscode fails to build in poudriere with
error: in-class initializer for static data member is
not a constant expression on amd64 15.1 Stable
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: tagattie@FreeBSD.org
Reporter: transitive@gmail.com
Flags: maintainer-feedback?(tagattie@FreeBSD.org)
Assignee: tagattie@FreeBSD.org
The port editors/vscode fails to build for me using poudriere on my 15.1 Stable
system amd64.
The following is the error:
error: in-class initializer for static data member is not a constant expression
1147 | static const napi_typedarray_type unknown_array_type =
static_cast<napi_typedarray_type>(-1);
Below is the build log:
gmake[1]: Entering directory
'/wrkdirs/usr/ports/editors/vscode/work/vscode-1.125.0/remote/node_modules/keytar/build'
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/keytar/src/async.o
In file included from ../src/async.cc:4:
../node_modules/node-addon-api/napi.h:1147:39: error: in-class initializer for
static data member is not a constant expression
1147 | static const napi_typedarray_type unknown_array_type =
static_cast<napi_typedarray_type>(-1);
| ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/node-addon-api/napi.h:1147:60: note: integer value -1 is
outside the valid range of values [0, 15] for the enumeration type
'napi_typedarray_type'
1147 | static const napi_typedarray_type unknown_array_type =
static_cast<napi_typedarray_type>(-1);
| ^
1 error generated.
gmake[1]: *** [keytar.target.mk:114: Release/obj.target/keytar/src/async.o]
Error 1
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/editors/vscode/work/vscode-1.125.0/remote/node_modules/keytar/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous>
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
gyp ERR! System FreeBSD 15.1-STABLE
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp"
"--userconfig=/wrkdirs/usr/ports/editors/vscode/work/vscode-1.125.0/remote/.npmrc"
"rebuild"
gyp ERR! cwd
/wrkdirs/usr/ports/editors/vscode/work/vscode-1.125.0/remote/node_modules/keytar
gyp ERR! node -v v24.16.0
gyp ERR! node-gyp -v v12.3.0
gyp ERR! not ok
*** Error code 1
Stop.
make: stopped making "build" in /usr/ports/editors/vscode
=>> Cleaning up wrkdir
===> Cleaning for vscode-1.125.0
build of editors/vscode | vscode-1.125.0 ended at 2026-06-20T08:24:27-04:00
build time: 00:07:07
times end [shell] (user/sys/real): 0m0.175s 0m0.046s 7m7.000s
times end [child] (user/sys/real): 2m48.035s 0m36.151s 7m7.000s
!!! build failure encountered !!!
--
You are receiving this mail because:
You are the assignee for the bug.