plasma-umass / browsix

Browsix is a Unix-like operating system for the browser.
Other
3.15k stars 181 forks source link

Build problem #2

Closed bpowers closed 8 years ago

bpowers commented 8 years ago

Abhishek Kumar reported the following error when running $ make test-once serve

  NPM
  CXX(target) Release/obj.target/pipe2/pipe2.o
  SOLINK_MODULE(target) Release/obj.target/pipe2.node
  SOLINK_MODULE(target) Release/obj.target/pipe2.node: Finished
  COPY Release/pipe2.node
  CXX(target) Release/obj.target/priority/priority.o
  SOLINK_MODULE(target) Release/obj.target/priority.node
  SOLINK_MODULE(target) Release/obj.target/priority.node: Finished
  COPY Release/priority.node
  CXX(target) Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o
  SOLINK_MODULE(target) Release/obj.target/WebWorkerThreads.node
  SOLINK_MODULE(target) Release/obj.target/WebWorkerThreads.node: Finished
  COPY Release/WebWorkerThreads.node
Makefile:58: recipe for target 'node_modules' failed
make: *** [node_modules] Error 3

Could you report the following info:

Thanks Abhisek!

cosmo-kramer commented 8 years ago

npm version:

{ http_parser: '1.0', node: '0.10.25', v8: '3.14.5.9', ares: '1.10.0', uv: '0.10.23', zlib: '1.2.8', modules: '11', openssl: '1.0.1f', npm: '1.4.21' }

uname -a:

Linux abhishek-Inspiron-3542 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

sudo npm install

[sudo] password for abhishek: npm WARN package.json gulp-minify-html@1.0.5 No repository field. npm WARN package.json node-binary-marshal@0.1.2 No repository field. npm WARN package.json node-binary-marshal@0.1.2 No README data npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. npm WARN engine imagemin@4.0.0: wanted: {"node":">=0.10.0","npm":">=2.1.5"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine csso@1.4.4: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.25","npm":"1.4.21"}) /

jpegtran-bin@3.0.6 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin node lib/install.js

module.js:340 throw err; ^ Error: Cannot find module 'clone' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/abhishek/browsix/node_modules/gulp-util/node_modules/vinyl/index.js:2:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

optipng-bin@3.1.0 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin node lib/install.js

module.js:340 throw err; ^ Error: Cannot find module 'clone' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/abhishek/browsix/node_modules/gulp-util/node_modules/vinyl/index.js:2:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) npm WARN optional dep failed, continuing imagemin-jpegtran@4.3.2 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

gifsicle@3.0.3 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle node lib/install.js

module.js:340 throw err; ^ Error: Cannot find module 'clone' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/abhishek/browsix/node_modules/gulp-util/node_modules/vinyl/index.js:2:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) npm WARN optional dep failed, continuing imagemin-optipng@4.3.0 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm WARN optional dep failed, continuing imagemin-gifsicle@4.2.0 npm WARN cannot run in wd browsix@0.1.0 gulp build:dist (wd=/home/abhishek/browsix) gulp-run@1.6.12 node_modules/gulp-run ├── lodash@3.10.1 └── vinyl@0.4.6 (clone-stats@0.0.1, clone@0.2.0)

gulp-useref@2.1.0 node_modules/gulp-useref ├── is-relative-url@1.0.0 (is-absolute-url@1.0.0) ├── node-useref@0.3.15 ├── glob@5.0.15 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.4, minimatch@3.0.0) ├── event-stream@3.3.2 (from@0.1.3, map-stream@0.1.0, stream-combiner@0.0.4, through@2.3.8, split@0.3.3, pause-stream@0.0.11, duplexer@0.1.1) ├── through2@0.6.5 (readable-stream@1.0.33, xtend@4.0.1) ├── gulp-concat@2.6.0 (concat-with-sourcemaps@1.0.4) └── vinyl-fs@2.3.1 (merge-stream@1.0.0, object-assign@4.0.1, is-valid-glob@0.3.0, graceful-fs@4.1.3, lazystream@1.0.0, strip-bom-stream@1.0.0, strip-bom@2.0.0, mkdirp@0.5.1, duplexify@3.4.2, gulp-sourcemaps@1.6.0, readable-stream@2.0.5, glob-stream@5.3.1, through2@2.0.1, through2-filter@2.0.0, vinyl@1.1.1)

gulp@3.9.1 node_modules/gulp ├── pretty-hrtime@1.0.2 ├── interpret@1.0.0 ├── deprecated@0.0.1 ├── archy@1.0.0 ├── v8flags@2.0.11 (user-home@1.1.1) ├── tildify@1.1.2 (os-homedir@1.0.1) ├── semver@4.3.6 ├── orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5) ├── liftoff@2.2.0 (extend@2.0.1, rechoir@0.6.2, flagged-respawn@0.3.1, resolve@1.1.7, findup-sync@0.3.0) ├── minimist@1.2.0 ├── vinyl-fs@0.3.14 (graceful-fs@3.0.8, defaults@1.0.3, mkdirp@0.5.1, strip-bom@1.0.0, glob-stream@3.1.18, glob-watcher@0.0.6, through2@0.6.5, vinyl@0.4.6) └── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, has-ansi@2.0.0, ansi-styles@2.2.0, strip-ansi@3.0.1)

gulp-load-plugins@1.2.0 node_modules/gulp-load-plugins ├── resolve@1.1.7 ├── findup-sync@0.2.1 (glob@4.3.5) └── multimatch@2.0.0 (array-differ@1.0.0, minimatch@2.0.10, array-union@1.0.1)

gulp-cache@0.4.2 node_modules/gulp-cache ├── object.pick@1.1.1 ├── try-json-parse@0.1.1 ├── object-assign@4.0.1 ├── readable-stream@2.0.5 (process-nextick-args@1.0.6, isarray@0.0.1, inherits@2.0.1, util-deprecate@1.0.2, string_decoder@0.10.31, core-util-is@1.0.2) ├── bluebird@3.3.1 ├── vinyl@1.1.1 (clone-stats@0.0.1, replace-ext@0.0.1, clone@1.0.2) ├── object.omit@2.0.0 (is-extendable@0.1.1, for-own@0.1.3) └── cache-swap@0.2.3 (graceful-fs@4.1.3, mkdirp@0.5.1, rimraf@2.5.2)

gulp-copy@0.0.2 node_modules/gulp-copy ├── through@2.3.4 └── gulp-util@2.2.20 (lodash._reinterpolate@2.4.1, minimist@0.2.0, vinyl@0.2.3, lodash.template@2.4.1, through2@0.5.1, chalk@0.5.1, multipipe@0.1.2, dateformat@1.0.12)

gulp-cssmin@0.1.7 node_modules/gulp-cssmin ├── filesize@2.0.4 ├── map-stream@0.0.4 ├── graceful-fs@2.0.3 ├── gulp-rename@1.1.0 ├── clean-css@3.4.9 (commander@2.8.1, source-map@0.4.4) ├── temp-write@0.1.1 (tempfile@0.1.3) └── gulp-util@2.2.20 (lodash._reinterpolate@2.4.1, minimist@0.2.0, vinyl@0.2.3, lodash.template@2.4.1, through2@0.5.1, chalk@0.5.1, multipipe@0.1.2, dateformat@1.0.12)

gulp-tslint@4.3.2 node_modules/gulp-tslint ├── map-stream@0.1.0 ├── through@2.3.8 └── rcloader@0.2.0 (lodash@3.10.1, rcfinder@0.1.8)

gulp-typescript@2.11.0 node_modules/gulp-typescript ├── source-map@0.5.3 ├── vinyl-fs@2.2.1 (object-assign@4.0.1, is-valid-glob@0.3.0, graceful-fs@4.1.3, strip-bom-stream@1.0.0, strip-bom@2.0.0, through2-filter@2.0.0, vinyl@1.1.1, gulp-sourcemaps@1.6.0, mkdirp@0.5.1, merge-stream@1.0.0, duplexify@3.4.2, glob-stream@5.3.1) └── typescript@1.7.5

gulp-imagemin@2.4.0 node_modules/gulp-imagemin ├── through2-concurrent@1.1.0 ├── object-assign@4.0.1 ├── plur@2.1.2 (irregular-plurals@1.1.0) ├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, strip-ansi@3.0.1, ansi-styles@2.2.0, has-ansi@2.0.0) ├── pretty-bytes@2.0.1 (get-stdin@4.0.1, number-is-nan@1.0.0, meow@3.7.0) └── imagemin@4.0.0 (optional@0.1.3, stream-combiner2@1.1.1, readable-stream@2.0.5, concat-stream@1.5.1, buffer-to-vinyl@1.1.0, vinyl-fs@2.3.1, imagemin-svgo@4.2.1)

bpowers commented 8 years ago

Hi @coderabhishek,

Two things: first, you shouldn't run npm install through sudo -- this will cause issues with permissions. I suggest you delete your node_modules directory and try a fresh npm install without sudo.

With that said - the output from npm install above looks basically correct. There are some optional dependencies that aren't being built, but that is fine. I would think that make should work for you at this point. I've made a few small changes - can you pull and try another build?

Thanks!

jvilk commented 8 years ago

Also, Node v0.10 is super old. I know that some Linux distributions are still stuck on it (and v0.12), but v4 is the way to go these days as it resolves longstanding Buffer/ArrayBuffer incompatibilities. But maybe @bpowers tests on v0.10.

bpowers commented 8 years ago

I don't test on 0.10, and I've actually updated the README with instructions on how to install newer versions: https://github.com/plasma-umass/browsix#building--testing

jvilk commented 8 years ago

The NodeJS website has mediocre instructions for Linux... they give you a tar file full of binaries. NodeSource is the best resource for packages for the most common linux distros.

bpowers commented 8 years ago

The part of the node site I linked to details getting packages from NodeSource: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

jvilk commented 8 years ago

:+1:

cosmo-kramer commented 8 years ago

@bpowers I installed node v4.3.1

still "make test-once serve" gives following error:

optipng-bin@3.1.0 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin node lib/install.js

⚠ tunneling socket could not be established, cause=Parse Error ⚠ optipng pre-build test failed ℹ compiling from source ✖ RequestError: tunneling socket could not be established, cause=Parse Error at ClientRequest. (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-build/node_modules/download/node_modules/got/index.js:68:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at ClientRequest.onError (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-build/node_modules/download/node_modules/caw/node_modules/tunnel-agent/index.js:178:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketOnData (_http_client.js:307:9) at emitOne (events.js:77:13) npm WARN peerDependencies The peer dependency typescript@>=1.7.3 included from tslint will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

jpegtran-bin@3.0.6 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin node lib/install.js

⚠ tunneling socket could not be established, cause=Parse Error ⚠ jpegtran pre-build test failed ℹ compiling from source ✖ RequestError: tunneling socket could not be established, cause=Parse Error at ClientRequest. (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/got/index.js:68:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at ClientRequest.onError (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/caw/node_modules/tunnel-agent/index.js:178:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketOnData (_http_client.js:307:9) at emitOne (events.js:77:13)

gifsicle@3.0.3 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle node lib/install.js

⚠ tunneling socket could not be established, cause=Parse Error ⚠ gifsicle pre-build test failed ℹ compiling from source ✖ RequestError: tunneling socket could not be established, cause=Parse Error at ClientRequest. (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/got/index.js:68:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at ClientRequest.onError (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/caw/node_modules/tunnel-agent/index.js:178:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketOnData (_http_client.js:307:9) at emitOne (events.js:77:13) npm ERR! Linux 4.2.0-27-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.3.1 npm ERR! npm v2.14.12 npm ERR! path /home/abhishek/.npm/meow/3.3.0 npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/home/abhishek/.npm/meow/3.3.0' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, mkdir '/home/abhishek/.npm/meow/3.3.0'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/abhishek/.npm/meow/3.3.0', npm ERR! parent: 'browser-sync' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request: npm ERR! /home/abhishek/browsix/npm-debug.log Makefile:58: recipe for target 'node_modules' failed make: *\ [node_modules] Error 243

bpowers commented 8 years ago

@coderabhishek This is due to having used sudo npm install in the past - you can see that npm is having issues accessing things in the ~/.npm directory.

This command should fix your permissions:

if [ ! -z "$USER" ]; then sudo chown -R $USER ~/.npm; fi

After that, try the make command again. I also recommend trying to understand what that command does.

cosmo-kramer commented 8 years ago

@bpowers I tried above instructions can you please explain me below mentioned error:

ℹ compiling from source ✖ RequestError: tunneling socket could not be established, cause=Parse Error at ClientRequest. (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-build/node_modules/download/node_modules/got/index.js:68:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at ClientRequest.onError (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-build/node_modules/download/node_modules/caw/node_modules/tunnel-agent/index.js:178:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketOnData (_http_client.js:307:9) at emitOne (events.js:77:13)

jpegtran-bin@3.0.6 postinstall /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin node lib/install.js

⚠ tunneling socket could not be established, cause=Parse Error ⚠ jpegtran pre-build test failed ℹ compiling from source ✖ RequestError: tunneling socket could not be established, cause=Parse Error at ClientRequest. (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/got/index.js:68:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at ClientRequest.onError (/home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/caw/node_modules/tunnel-agent/index.js:178:21) at ClientRequest.g (events.js:260:16) at emitOne (events.js:77:13) at ClientRequest.emit (events.js:169:7) at Socket.socketOnData (_http_client.js:307:9) at emitOne (events.js:77:13)

browsix@0.1.0 prepublish /home/abhishek/browsix gulp build:dist

Warning: gulp-run is deprecated [20:09:43] Using gulpfile ~/browsix/gulpfile.js [20:09:43] Starting 'app:images'... [20:09:45] Starting 'app:fonts'... [20:09:45] Starting 'copy-node-kernel'... [20:09:45] Starting 'lint-kernel'... [20:09:45] Starting 'copy-node'... [20:09:45] Starting 'lint-browser-node'... [20:09:45] Starting 'lint-bin'... [20:09:45] Starting 'lint-syscall-api'... [20:09:45] Starting 'app:styles'... [20:09:48] Finished 'app:fonts' after 2.71 s [20:09:48] Finished 'copy-node-kernel' after 2.78 s [20:09:50] Finished 'lint-syscall-api' after 4.77 s Unhandled rejection Error: spawn /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:437:9) at process._tickDomainCallback (node.js:392:17)

[20:09:51] styles all files 143 B [20:09:51] Finished 'app:styles' after 6.39 s [20:09:52] Finished 'lint-kernel' after 6.73 s [20:09:52] Starting 'build-kernel'... src/kernel/kernel.ts(16,28): error TS2307: Cannot find module './http_parser'. src/kernel/kernel.ts(18,28): error TS2307: Cannot find module './vendor/BrowserFS/src/core/browserfs'. src/kernel/kernel.ts(19,20): error TS2307: Cannot find module './vendor/BrowserFS/src/core/node_fs'. [20:09:54] TypeScript: 3 semantic errors [20:09:54] TypeScript: emit succeeded (with errors) [20:09:55] Finished 'build-kernel' after 2.79 s [20:09:55] Starting 'dist-kernel'... events.js:141 throw er; // Unhandled 'error' event ^

Error: Cannot find module './vendor/BrowserFS/src/core/browserfs' from '/home/abhishek/browsix/lib/kernel' at /home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:55:21 at load (/home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:69:43) at onex (/home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:92:31) at /home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:22:47 at FSReqWrap.oncomplete (fs.js:82:15)

npm ERR! Linux 4.2.0-27-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.3.1 npm ERR! npm v2.14.12 npm ERR! code ELIFECYCLE npm ERR! browsix@0.1.0 prepublish: gulp build:dist npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the browsix@0.1.0 prepublish script 'gulp build:dist'. npm ERR! This is most likely a problem with the browsix package, npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system: npm ERR! gulp build:dist npm ERR! You can get their info via: npm ERR! npm owner ls browsix npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/abhishek/browsix/npm-debug.log Makefile:58: recipe for target 'node_modules' failed make: *\ [node_modules] Error 1

bpowers commented 8 years ago

Hi @coderabhishek,

When looking at node or npm errors, it helps to start at the bottom. In this case the bottom most error is:

Error: Cannot find module './vendor/BrowserFS/src/core/browserfs' from '/home/abhishek/browsix/lib/kernel'
at /home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:55:21
at load (/home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
at onex (/home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
at /home/abhishek/browsix/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:82:15)

Which means that our one git submodule is missing. If you re-ran make a second time, it would probably work, but I've also updated the Makefile to fix this issue.

Please pull the latest changes and try: make distclean test-once shell

Thanks for sticking with this!

cosmo-kramer commented 8 years ago

seems something broke after change:

make distclean test-once shell or make test-once serve

make: *\ No rule to make target 'src/kernel/vendor/BrowserFS', needed by 'src/kernel/vendor/BrowserFS/dist/browserfs.js'. Stop.

I went two commits back and it was running fine

bpowers commented 8 years ago

@coderabhishek - I don't think that problem could have been caused by the Makefile changes -- src/kernel/vendor/BrowserFS is created by git and is there after a clean checkout. Maybe you had deleted it or moved it while debuggin? I suspect that if you had done a git reset --hard without changing the commit of your current branch, it also would have succeeded.

Have you gotten the tests and shell running locally? Could you try once more to pull the latest and build? I would like to confirm that recent changes are either working or not working for you.

Thanks!

cosmo-kramer commented 8 years ago

@bpowers make test-once serve gives following error,please look into:

RR! registry error parsing json npm ERR! registry error parsing json . . . //lot of repetitions . npm ERR! registry error parsing json npm ERR! Linux 4.2.0-30-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.3.1 npm ERR! npm v2.14.12

npm ERR! Unexpected token < npm ERR! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> ERROR: The requested URL could not be retrieved

ERROR

The requested URL could not be retrieved


The following error was encountered while trying to retrieve the URL: http://127.0.0.1:3128/chai

Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is netadmin@iitg.ernet.in.



npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /home/abhishek/browsix/npm-debug.log Makefile:58: recipe for target 'node_modules' failed

Thanks

bpowers commented 8 years ago

@coderabhishek -- I believe this is an issue with your internet connection, please take a more detailed look at the error. Specifically:

The following error was encountered while trying to retrieve the URL: http://127.0.0.1:3128/chai

Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is netadmin@iitg.ernet.in.
cosmo-kramer commented 8 years ago

Thanks for your reply,I'm behind a http proxy,now I've configured it for npm , make test-once serve ran but with some error as shown below,but it did not launch a firefox or chrome window finally.It opened in between and after running tests automatically closed.

TEST Warning: gulp-run is deprecated [17:26:05] Using gulpfile ~/browsix/gulpfile.js [17:26:05] Starting 'copy-node-kernel'... [17:26:05] Starting 'lint-kernel'... [17:26:06] Starting 'copy-node'... [17:26:06] Starting 'lint-browser-node'... [17:26:06] Starting 'lint-bin'... [17:26:06] Starting 'lint-syscall-api'... [17:26:06] Finished 'copy-node-kernel' after 123 ms [17:26:08] Finished 'lint-syscall-api' after 2.31 s [17:26:10] Finished 'lint-kernel' after 4.15 s [17:26:10] Starting 'build-kernel'... [17:26:11] Finished 'lint-browser-node' after 5.39 s [17:26:12] Finished 'lint-bin' after 6.16 s [17:26:12] Starting 'build-bin'... [17:26:12] Finished 'copy-node' after 6.39 s [17:26:12] Starting 'build-browser-node'... src/kernel/kernel.ts(17,28): error TS2307: Cannot find module './http_parser'. [17:26:16] TypeScript: 1 semantic error [17:26:16] TypeScript: emit succeeded (with errors) src/browser-node/browser-node.ts(25,36): error TS2307: Cannot find module './binding/http_parser'. src/browser-node/browser-node.ts(136,21): error TS2307: Cannot find module './fs'. src/browser-node/browser-node.ts(137,25): error TS2307: Cannot find module './buffer'. [17:26:19] TypeScript: 3 semantic errors [17:26:19] TypeScript: emit succeeded (with errors) [17:26:19] Finished 'build-browser-node' after 6.94 s [17:26:19] Starting 'dist-browser-node'... [17:26:19] Starting 'build-syscall-api'... [17:26:20] Finished 'build-syscall-api' after 1.05 s [17:26:20] Starting 'dist-syscall-api'... [17:26:20] Finished 'build-bin' after 8.23 s [17:26:22] Finished 'build-kernel' after 12 s [17:26:22] Starting 'dist-kernel'... [17:26:22] Finished 'dist-browser-node' after 3.04 s [17:26:22] Finished 'dist-syscall-api' after 2.08 s [17:26:22] Finished 'dist-kernel' after 752 ms [17:26:22] Starting 'build-fs'... [17:26:22] Finished 'build-fs' after 45 ms [17:26:22] Starting 'index-fs'... $ ./xhrfs-index fs {"boot":{"kernel.js":null},"index.json":null,"usr":{"bin":{"cat":null,"curl":null,"cpu-intensive-program":null,"echo":null,"exec":null,"grep":null,"head":null,"hello":null,"hello-socket":null,"http-example":null,"mkdir":null,"nice":null,"ls":null,"node":null,"pipeline-example":null,"priority-test":null,"rm":null,"rmdir":null,"sh":null,"sha1sum":null,"socket-example":null,"sort":null,"stat":null,"tail":null,"tee":null,"touch":null,"wc":null}}} [17:26:23] Finished 'index-fs' after 107 ms [17:26:23] Starting 'build-test'... test/test-cat.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-echo.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-exec.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-grep.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-head.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-ls.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-mkdir.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-nice.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-pipeline-example.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-rm.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-rmdir.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-scheduler.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-sh.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-sort.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-stat.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-tail.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-tee.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-touch.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-wc.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. test/test-xhrfs.ts(7,30): error TS2307: Cannot find module '../lib/kernel/kernel'. [17:26:24] TypeScript: 20 semantic errors [17:26:24] TypeScript: emit succeeded (with errors) [17:26:24] Finished 'build-test' after 1.08 s [17:26:24] Starting 'dist-test'... [17:26:24] Finished 'dist-test' after 871 ms [17:26:24] Starting 'default'... 27 02 2016 17:26:25.079:INFO [karma]: Karma v0.13.21 server started at http://localhost:9876/ 27 02 2016 17:26:25.087:INFO [launcher]: Starting browser Firefox 27 02 2016 17:26:29.983:INFO [Firefox 44.0.0 (Ubuntu 0.0.0)]: Connected on socket /#5WK9sy7oC4_IjdyOAAAA with id 33932894 Firefox 44.0.0 (Ubuntu 0.0.0) LOG: 'using postMessage for setImmediate'

Firefox 44.0.0 (Ubuntu 0.0.0): Executed 48 of 48 SUCCESS (11.992 secs / 11.879 secs) [17:26:42] Finished 'default' after 17 s i SERVE Warning: gulp-run is deprecated f[17:26:55] Using gulpfile ~/browsix/gulpfile.js [17:26:55] Starting 'copy-node-kernel'... [17:26:55] Starting 'lint-kernel'... [17:26:55] Starting 'copy-node'... [17:26:56] Starting 'lint-browser-node'... [17:26:56] Starting 'lint-bin'... [17:26:56] Starting 'lint-syscall-api'... [17:26:56] Starting 'app:styles'... [17:26:59] Starting 'app:images'... [17:27:02] Finished 'copy-node-kernel' after 6.16 s [17:27:04] Finished 'lint-syscall-api' after 8.37 s Unhandled rejection Error: spawn /home/abhishek/browsix/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:437:9) at process._tickDomainCallback (node.js:392:17)

[17:27:06] Finished 'lint-kernel' after 11 s [17:27:06] Starting 'build-kernel'... [17:27:06] styles all files 143 B [17:27:06] Finished 'app:styles' after 11 s [17:27:07] Finished 'lint-browser-node' after 12 s [17:27:09] Finished 'lint-bin' after 13 s [17:27:09] Starting 'build-bin'... src/kernel/kernel.ts(17,28): error TS2307: Cannot find module './http_parser'. [17:27:12] TypeScript: 1 semantic error [17:27:12] TypeScript: emit succeeded (with errors) [17:27:12] Finished 'copy-node' after 16 s [17:27:12] Starting 'build-browser-node'... src/browser-node/browser-node.ts(25,36): error TS2307: Cannot find module './binding/http_parser'. src/browser-node/browser-node.ts(136,21): error TS2307: Cannot find module './fs'. src/browser-node/browser-node.ts(137,25): error TS2307: Cannot find module './buffer'. [17:27:15] TypeScript: 3 semantic errors [17:27:15] TypeScript: emit succeeded (with errors) [17:27:15] Finished 'build-browser-node' after 2.73 s [17:27:15] Starting 'dist-browser-node'... [17:27:15] Starting 'build-syscall-api'... [17:27:16] Finished 'build-syscall-api' after 836 ms [17:27:16] Starting 'dist-syscall-api'... [17:27:17] Finished 'build-bin' after 8.66 s [17:27:17] Finished 'build-kernel' after 11 s [17:27:17] Starting 'dist-kernel'... [17:27:17] Finished 'dist-browser-node' after 2.72 s [17:27:18] Finished 'dist-syscall-api' after 2.05 s [17:27:18] Finished 'dist-kernel' after 707 ms [17:27:18] Starting 'build-fs'... [17:27:18] Finished 'build-fs' after 36 ms [17:27:18] Starting 'index-fs'... $ ./xhrfs-index fs {"boot":{"kernel.js":null},"index.json":null,"usr":{"bin":{"cat":null,"cpu-intensive-program":null,"echo":null,"curl":null,"exec":null,"grep":null,"head":null,"hello":null,"hello-socket":null,"http-example":null,"ls":null,"mkdir":null,"nice":null,"node":null,"pipeline-example":null,"priority-test":null,"rm":null,"rmdir":null,"sh":null,"sha1sum":null,"socket-example":null,"sort":null,"stat":null,"tail":null,"tee":null,"touch":null,"wc":null}}} [17:27:18] Finished 'index-fs' after 124 ms [17:27:18] Starting 'app:build'... [17:27:18] Starting 'app:copy'... [17:27:19] Finished 'app:build' after 1.07 s [17:27:28] copy all files 23.89 MB [17:27:28] Finished 'app:copy' after 9.56 s [17:27:28] Starting 'app:elements'... [17:27:28] Finished 'app:elements' after 6.17 ms

bpowers commented 8 years ago

that looks good! The unit tests ran and passed. going to close this issue for now as it dealt specificly with build problems