Closed iwoloschin closed 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.
Traceback (most recent call last):
File "./script/bootstrap.py", line 127, in
emerge --info '=dev-util/atom-shell-0.21.2'
,emerge -pqv '=dev-util/atom-shell-0.21.2'
.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'
@iwoloschin I think its an upstream issue too. Could you try emerging atom-shell-9999 based on the master branch of atom-shell repository ?
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.
@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
@iwoloschin which version of nodejs are you using ?
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
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!
Great ! Enjoy atom on Gentoo ;)
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:
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' \
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.