Summary: | net-libs/nodejs-16.0.0: "deps/v8/src/heap/base/stack.cc:132: undefined reference to `PushAllRegistersAndIterateStack'" with LTO enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | Current packages | Assignee: | William Hubbs <williamh> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | marecki, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/nodejs/node/pull/38346 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | build log |
Description
Patrick Lauer
![]() The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b43e0081fcb5059fc9e68a0aa7d2993a8805643 commit 5b43e0081fcb5059fc9e68a0aa7d2993a8805643 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2021-04-22 13:47:11 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2021-04-22 15:27:12 +0000 net-libs/nodejs-16.0.0: implement IUSE=lto Note that the upstream patch which for the time being is required to make LTO work only has an effect if the aforementioned USE flag is set. Closes: https://bugs.gentoo.org/784995 Signed-off-by: Marek Szuba <marecki@gentoo.org> net-libs/nodejs/files/nodejs-16.0.0-v8_lto.patch | 39 ++++++++++++++++++++++ net-libs/nodejs/metadata.xml | 1 + ...odejs-16.0.0.ebuild => nodejs-16.0.0-r1.ebuild} | 12 +++++-- 3 files changed, 50 insertions(+), 2 deletions(-) I think you've forced the nodejs ebuild not to build with Clang & LTO, which was working fine with Nodejs 16 after switching due to this bug Is there a known issue with Clang or is it just unsupported? (In reply to Mike Lothian from comment #2) > I think you've forced the nodejs ebuild not to build with Clang & LTO, which > was working fine with Nodejs 16 after switching due to this bug > > Is there a known issue with Clang or is it just unsupported? Unsupported by upstream - there is a snippet in upstream configure.py of all three branches currently in Gentoo, which at least in case of 16.0.0 caused src_configure to abort for me with USE=lto and Clang. It doesn't seem to have solved the issue for me, I'm still seeing the same error. I tried attaching the build log but I'm getting an internal error from the webserver. (In reply to Andreas from comment #5) > I tried attaching the build log but I'm getting an internal error from the > webserver. Usually that's when your user doesn't have access to it (instead owned by e.g. Portage). Created attachment 701892 [details]
build log
(In reply to Sam James from comment #6) > (In reply to Andreas from comment #5) > > I tried attaching the build log but I'm getting an internal error from the > > webserver. > > Usually that's when your user doesn't have access to it (instead owned by > e.g. Portage). doh, yes you were right permission problem It seems Node doesn't like user-defined LTO compiler/linker flags... Try it now, I've added an appropriate filter to the ebuilds. (In reply to Marek Szuba from comment #9) > It seems Node doesn't like user-defined LTO compiler/linker flags... Try it > now, I've added an appropriate filter to the ebuilds. Thanks, that solved it. |