Subject says it all: build fails with segfault. Reproducible: Always
Created attachment 341310 [details] emerge --info
Created attachment 341312 [details] build.log
As of 0.9.12 we don't actually use shared v8 libraries anymore, but the bundled one. This because upstream uses 3.14 and a couple of other things. See for instance bug 455788. The only 'major' difference I find between your setup and mine is that you're using a hardened setup. I'll check the gentoo-x86 v8 for patches. If you know anything about that, it would be appreciated. Do you have any other useful information, for instance the output in snapshot.log referenced by the build?
Possibly related: http://code.google.com/p/v8/issues/detail?id=2195 Can you cd into the workdir and try building a debug build? (./configure --debug && make) Also, if possible, please verify the stack trace with gdb as the upstream bug post did.
You need to pax-mark the mksnapshot binary (disable MPROTECT) partway through the build process, or disable the v8 snapshot feature. See bug 454720, and the v8 ebuild for details.
Created attachment 341770 [details] node-0.10.0.ebuild Attached is an ebuild with a suggested fix from floppym (thank you). I based it on top of the most current node 0.10.0 ebuild. Please try it out and see if it works for you (did for me).
(In reply to comment #3) > Do you have any other useful information, for instance the output in > snapshot.log referenced by the build? work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I have no snapshot.log file though it is mentioned in build.log
(In reply to comment #7) > (In reply to comment #3) > > Do you have any other useful information, for instance the output in > > snapshot.log referenced by the build? > > work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I > have no snapshot.log file though it is mentioned in build.log Let me know if the attached ebuild compiles for you.
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #3) > > > Do you have any other useful information, for instance the output in > > > snapshot.log referenced by the build? > > > > work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I > > have no snapshot.log file though it is mentioned in build.log > > Let me know if the attached ebuild compiles for you. Compiling it now. Give me 10-15 minutes and I'll give you the results.
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #3) > > > Do you have any other useful information, for instance the output in > > > snapshot.log referenced by the build? > > > > work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I > > have no snapshot.log file though it is mentioned in build.log > > Let me know if the attached ebuild compiles for you. I've just finished compiling the ebuild you've attached and everything seems to work fine. Thank you.
(In reply to comment #10) > I've just finished compiling the ebuild you've attached and everything seems > to work fine. Thank you. Great news. Lets get nodejs 0.10.0 in the tree.
+ 14 Mar 2013; Patrick Lauer <patrick@gentoo.org> +nodejs-0.10.0.ebuild: + Bump, fixes #460784 #461654