Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build still broken on ARM linux #11792

Closed
ststeiger opened this issue Sep 9, 2016 · 1 comment
Closed

Build still broken on ARM linux #11792

ststeiger opened this issue Sep 9, 2016 · 1 comment
Assignees
Labels
linux Issues with VS Code on Linux

Comments

@ststeiger
Copy link

node --version
v6.5.0

npm --version
3.10.3

uname -a
Linux localhost 3.10.18 #1 SMP Tue Aug 2 21:26:16 PDT 2016 armv7l armv7l armv7l GNU/Linux

lsb_release -rcd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

Built according to:
http://www.hanselman.com/blog/BuildingVisualStudioCodeOnARaspberryPi3.aspx

purged old nodejs, installed node 6, latest + npm
sudo apt-get install libx11-dev
git clone https://github.com/microsoft/vscode
cd vscode
./scripts/npm.sh install --arch=armhf

This is not a dupliate of #6442
My NodeJS +NPM version is the latest possible version.
It still doesn't build.
Why is it building windows mutexes on Linux ? That can't work...

./scripts/npm.sh install --arch=armhf
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.

[email protected] install /root/sources/vscode/node_modules/windows-mutex
node-gyp rebuild

make: Entering directory /root/sources/vscode/node_modules/windows-mutex/build' CXX(target) Release/obj.target/CreateMutex/src/main.o ../src/main.cc:2:21: fatal error: windows.h: No such file or directory #include <windows.h> ^ compilation terminated. make: *** [Release/obj.target/CreateMutex/src/main.o] Error 1 make: Leaving directory/root/sources/vscode/node_modules/windows-mutex/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.10.18
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/sources/vscode/node_modules/windows-mutex
gyp ERR! node -v v6.5.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: node-gyp rebuild
npm WARN install:[email protected] Exit status 1
npm WARN lifecycle [email protected]preinstall: cannot run in wd %s %s (wd=%s) [email protected] node build/npm/preinstall.js /root/sources/vscode
npm WARN lifecycle [email protected]
postinstall: cannot run in wd %s %s (wd=%s) [email protected] node build/npm/postinstall.js /root/sources/vscode
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

@ramya-rao-a ramya-rao-a added the linux Issues with VS Code on Linux label Sep 9, 2016
@Tyriar
Copy link
Member

Tyriar commented Sep 9, 2016

You need to use npm < 3.9 as per https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source, this is happening due npm/npm#12698 trying to installing windows-mutex even though it's an optional dependency.

@Tyriar Tyriar closed this as completed Sep 9, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests

3 participants