I followed the first post for installation, except that after it failed once I upgraded nodejs to v10.15 as suggested by the Microsoft build guide.
I keep getting error messages in the re-build of the packages such as gc-signals. An error message looks like as follows. Any idea where I may find an answer? Since I havenāt really changed anything from the standard image, could it be that something got updated that now breaks the build? I have no experience at all with Yarn, so that leaves me a bit puzzled.
yarn install v1.15.2
$ node build/npm/preinstall.js
[1/4] Resolving packages...
[2/4] Fetching packages...
info vscode-fsevents@0.3.10: The platform "linux" is incompatible with this module.
info "vscode-fsevents@0.3.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.7: The platform "linux" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info vscode-windows-ca-certs@0.1.0: The platform "linux" is incompatible with this module.
info "vscode-windows-ca-certs@0.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info vscode-windows-registry@1.0.1: The platform "linux" is incompatible with this module.
info "vscode-windows-registry@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info windows-foreground-love@0.1.0: The platform "linux" is incompatible with this module.
info "windows-foreground-love@0.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info windows-mutex@0.2.1: The platform "linux" is incompatible with this module.
info "windows-mutex@0.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info windows-process-tree@0.2.3: The platform "linux" is incompatible with this module.
info "windows-process-tree@0.2.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/13] ā gc-signals
[2/13] ā keytar
[3/13] ā native-is-elevated
[4/13] ā native-keymap
error /home/johannes/vscode/node_modules/gc-signals: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /home/johannes/vscode/node_modules/gc-signals
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.3 | linux | arm64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/nodejs/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/johannes/vscode/node_modules/gc-signals/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/nodejs/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/johannes/.node-gyp/iojs-3.1.8/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/johannes/.node-gyp/iojs-3.1.8',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/nodejs/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/johannes/.node-gyp/iojs-3.1.8/<(target_arch)/iojs.lib',
gyp info spawn args '-Dmodule_root_dir=/home/johannes/vscode/node_modules/gc-signals',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/johannes/vscode/node_modules/gc-signals/build'
CXX(target) Release/obj.target/gcsignals/src/gcsignal.o
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:54:0,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5516:3: error: unterminated comment
/**
^
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:54:0,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:15:0: error: unterminated #ifndef
#ifndef INCLUDE_V8_H_
In file included from /home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8-platform.h:13:0,
from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:55,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5516:3: error: unterminated comment
/**
^
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:15:0: error: unterminated #ifndef
#ifndef INCLUDE_V8_H_
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/callback_scope.h:5:0,
from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:57,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5516:3: error: unterminated comment
/**
^
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:15:0: error: unterminated #ifndef
#ifndef INCLUDE_V8_H_
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/exceptions.h:5:0,
from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:58,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5516:3: error: unterminated comment
/**
^
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:15:0: error: unterminated #ifndef
#ifndef INCLUDE_V8_H_
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node_object_wrap.h:25:0,
from ../src/gcsignal.h:7,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5516:3: error: unterminated comment
/**
^
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:15:0: error: unterminated #ifndef
#ifndef INCLUDE_V8_H_
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:55:0,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8-platform.h:15:1: error: expected unqualified-id before ānamespaceā
namespace v8 {
^~~~~~~~~
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:57:0,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/src/callback_scope.h:7:1: error: expected unqualified-id before ānamespaceā
namespace node {
^~~~~~~~~
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:58:0,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/src/exceptions.h:7:1: error: expected unqualified-id before ānamespaceā
namespace node {
^~~~~~~~~
In file included from ../src/gcsignal.h:5:0,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/src/node.h:64:1: error: expected unqualified-id before ānamespaceā
namespace v8 {
^~~~~~~~~
/home/johannes/.node-gyp/iojs-3.1.8/src/node.h:70:1: error: expected unqualified-id before ānamespaceā
namespace node {
^~~~~~~~~
In file included from /usr/include/features.h:424:0,
from /usr/include/aarch64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdint.h:26,
from /usr/lib/gcc/aarch64-linux-gnu/7/include/stdint.h:9,
from /home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:19,
from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:54,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/usr/include/assert.h:66:1: error: expected unqualified-id before string constant
__BEGIN_DECLS
^
In file included from ../src/gcsignal.h:5:0,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/src/node.h:122:1: error: expected unqualified-id before ānamespaceā
namespace node {
^~~~~~~~~
In file included from ../src/gcsignal.h:7:0,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/src/node_object_wrap.h:29:1: error: expected unqualified-id before ānamespaceā
namespace node {
^~~~~~~~~
In file included from ../src/gcsignal.cc:2:0:
../src/gcsignal.h:9:1: error: expected unqualified-id before ānamespaceā
namespace gcsignals {
^~~~~~~~~
In file included from ../src/gcsignal.cc:3:0:
/home/johannes/.node-gyp/iojs-3.1.8/deps/uv/include/uv.h:27:8: error: expected unqualified-id before string constant
extern "C" {
^~~
../src/gcsignal.cc:6:1: error: expected unqualified-id before ānamespaceā
namespace gcsignals {
^~~~~~~~~
../src/gcsignal.cc:96:1: error: expected ā}ā at end of input
} // namespace gcsignals
^
In file included from /home/johannes/.node-gyp/iojs-3.1.8/src/node.h:54:0,
from ../src/gcsignal.h:5,
from ../src/gcsignal.cc:2:
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5510:59: error: expected unqualified-id at end of input
ConstructorBehavior behavior = ConstructorBehavior::kAllow);
^~~~~~
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:5510:59: error: expected ā}ā at end of input
/home/johannes/.node-gyp/iojs-3.1.8/deps/v8/include/v8.h:3350:19: warning: inline function āvoid* v8::Object::GetAlignedPointerFromInternalField(int)ā used but never defined
V8_INLINE void* GetAlignedPointerFromInternalField(int index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcsignals.target.mk:97: recipe for target 'Release/obj.target/gcsignals/src/gcsignal.o' failed
make: Leaving directory '/home/johannes/vscode/node_modules/gc-signals/build'
make: *** [Release/obj.target/gcsignals/src/gcsignal.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.9.140-tegra
gyp ERR! command "/usr/local/lib/nodejs/bin/node" "/usr/local/lib/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/johannes/vscode/node_modules/gc-signals