aegypius / overlay

Gentoo overlay
http://aegypius.github.io/overlay/
31 stars 8 forks source link

Atom-Shell 0.21.2 Hanging During Emerge #45

Closed iwoloschin closed 9 years ago

iwoloschin commented 9 years ago

Not sure if this is an issue here or with the upstream source, but it looks like trying to emerge atom-shell-0.21.2 hangs during the bootstrap phase:

Preparing source in /var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2 ...

  • Bootstrap atom-shell source
    • bootstrap: git submodule sync
    • bootstrap: git submodule update --init --recursive
    • bootstrap: npm install

It's been stuck there with no change for over an hour, and I suspect that my desktop is powerful enough that it shouldn't take that long :).

For the heck of it, I tried compiling atom-shell manually, by following the ebuild steps, and it still seems to fail, though further on at a different point:

~ ❯❯❯ git clone git://github.com/atom/atom-shell ⏎ Cloning into 'atom-shell'... remote: Counting objects: 20859, done. remote: Compressing objects: 100% (6120/6120), done. remote: Total 20859 (delta 14745), reused 20669 (delta 14621) Receiving objects: 100% (20859/20859), 5.07 MiB | 2.98 MiB/s, done. Resolving deltas: 100% (14745/14745), done. Checking connectivity... done. ~ ❯❯❯ cd atom-shell ~/atom-shell ❯❯❯ sed -i -e 's/def execute(argv):/def execute(argv):\n print " - bootstrap: " + " ".join(argv)/g' \

    ./script/lib/util.py

~/atom-shell ❯❯❯ ./script/bootstrap.py

  • bootstrap: git submodule sync
  • bootstrap: git submodule update --init --recursive
  • bootstrap: npm install
  • bootstrap: /usr/bin/python2.7 /home/iwoloschin/atom-shell/vendor/brightray/script/bootstrap --commit 103778aa0ec3772f88e915ca9efdb941afdc85cf http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent
  • bootstrap: /usr/bin/python2.7 /home/iwoloschin/atom-shell/script/update.py
  • bootstrap: /home/iwoloschin/atom-shell/node_modules/.bin/apm install

module.js:356 Module._extensions[extension](this, filename); ^ Error: /home/iwoloschin/atom-shell/node_modules/atom-package-manager/node_modules/git-utils/build/Release/git.node: undefined symbol: node_module_register at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/node_modules/git-utils/lib/git.js:8:16) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/node_modules/git-utils/lib/git.js:359:4) 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) at require (module.js:380:17) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/lib/publish.js:11:9) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/lib/publish.js:457:4) 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) at require (module.js:380:17) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/lib/apm-cli.js:36:266) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/lib/apm-cli.js:245:4) 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) at require (module.js:380:17) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/lib/cli.js:4:9) at Object. (/home/iwoloschin/atom-shell/node_modules/atom-package-manager/lib/cli.js:17:4) 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 Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:929:3

Traceback (most recent call last): File "./script/bootstrap.py", line 127, in sys.exit(main()) File "./script/bootstrap.py", line 35, in main update_atom_modules('spec') File "./script/bootstrap.py", line 77, in update_atom_modules execute_stdout([apm, 'install']) File "/home/iwoloschin/atom-shell/script/lib/util.py", line 151, in execute_stdout execute(argv) File "/home/iwoloschin/atom-shell/script/lib/util.py", line 139, in execute raise e subprocess.CalledProcessError: Command '['/home/iwoloschin/atom-shell/node_modules/.bin/apm', 'install']' returned non-zero exit status 8

I don't really have the expertise to really dig into this, but happy to try different things out if you have any suggestions.

iwoloschin commented 9 years ago

I made some progress. Apparently atom-shell-0.21.2 will not build if you use sudo, you must use su. It looks like node-gyp is somehow trying to install using the user that called sudo, not root. I think that's an upstream problem though.

Unfortunately it's still crashing at the same point as if I try to do a manual build, so I suspect this is also an usptream issue as well?

module.js:356 Module._extensions[extension](this, filename); ^ Error: /var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/node_modules/git-utils/build/Release/git.node: undefined symbol: node_module_register at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/node_modules/git-utils/lib/git.js:8:16) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/node_modules/git-utils/lib/git.js:359:4) 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) at require (module.js:380:17) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/lib/publish.js:11:9) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/lib/publish.js:457:4) 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) at require (module.js:380:17) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/lib/apm-cli.js:36:266) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/lib/apm-cli.js:245:4) 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) at require (module.js:380:17) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/lib/cli.js:4:9) at Object. (/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/atom-package-manager/lib/cli.js:17:4) 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 Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:929:3

Traceback (most recent call last): File "./script/bootstrap.py", line 127, in sys.exit(main()) File "./script/bootstrap.py", line 35, in main update_atom_modules('spec') File "./script/bootstrap.py", line 77, in update_atom_modules execute_stdout([apm, 'install']) File "/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/script/lib/util.py", line 151, in execute_stdout execute(argv) File "/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/script/lib/util.py", line 139, in execute raise e subprocess.CalledProcessError: Command '['/var/tmp/portage/dev-util/atom-shell-0.21.2/work/atom-shell-0.21.2/node_modules/.bin/apm', 'install']' returned non-zero exit status 8

Failed to emerge dev-util/atom-shell-0.21.2, Log file:

'/var/tmp/portage/dev-util/atom-shell-0.21.2/temp/build.log'

aegypius commented 9 years ago

@iwoloschin I think its an upstream issue too. Could you try emerging atom-shell-9999 based on the master branch of atom-shell repository ?

iwoloschin commented 9 years ago

Still seems to fail in the same spot with atom-shell-9999.

This isn't really a huge concern, it's more frustrating since I don't understand why it's not working. I had started playing with Atom on an OS X machine at work, and was curious about using it at home as well, but it seems like it is not meant to be right now.

aegypius commented 9 years ago

@iwoloschin Atom is my daily editor since I started building it with this overlay and I don't have your problem; could you join the output of emerge --info

aegypius commented 9 years ago

@iwoloschin which version of nodejs are you using ?

aegypius commented 9 years ago

Should be fixed by @1a245099. Atom and Atom Shell requires dev-lang/nodejs-0.10.x you might have dev-lang/nodejs-0.12.x

iwoloschin commented 9 years ago

Ah, yeah, that was the issue. I was wondering if having a newer nodejs would cause problems, but didn't think about it too much.

Thanks!

aegypius commented 9 years ago

Great ! Enjoy atom on Gentoo ;)