You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terminates under Node 16.0.0 within reasonable time.
With node 16.1.0 neither yarn init -y nor yarn outdated terminate within reasonable time (I have not tried yarn add). Yarn under node 16.1.0 prints Done in 3.0s, but does not terminate on Linux.
yarn 1 does not terminate under Linux, when Node 16.1.0 is compiled using --enable-lto. Without --enable-lto, it does terminate. Since Node 16.0.0 cannot be linked with LTO, this is not a regression compared to 16.0.0, but compared to Node 14.
I use ld.bfd 2.35.1-41.fc34 with g++ (GCC) 11.1.1 20210428 (Red Hat 11.1.1-1).
changed the title [-]16.1.0 regression compared to 16.0.0: yarn 1 does not terminate[/-][+]16.1.0 with LTO: yarn 1 does not terminate[/+]on May 6, 2021
Compiling CC=clang CXX=clang++ python configure.py --gdb --ninja --enable-lto fails with
Traceback (most recent call last):
File "/git/node/configure.py", line 1877, in <module>
configure_node(output)
File "/git/node/configure.py", line 1224, in configure_node
raise Exception(
Exception: The option --enable-lto is supported for gcc and gxx 5.4.1 or newer only.
Why am I not permitted to use LTO with clang?
Can I tell the compiler using configure.py to use ld.gold as linker?
Artifacts
Name: artifact, hyperlink to the text `artifact`: https://github.com/gengjiawen/node-github-workflow/suites/2666783862/artifacts/58758469
Size: 1.37 GB
With the change #40631 applied towards Node v16.14.0, the initial problem is gone. I compile using --enable-lto, then call yarn add -y and it terminates.
Activity
Ayase-252 commentedon May 6, 2021
Not reproducible on MacOS. It works fine. Am I missing something?
dilyanpalauzov commentedon May 6, 2021
I have this on Linux.
Ayase-252 commentedon May 6, 2021
@dilyanpalauzov I have tried on Ubuntu 18.04, and it still works....

targos commentedon May 6, 2021
I'm also unable to reproduce on Linux.
dilyanpalauzov commentedon May 6, 2021
yarn 1 does not terminate under Linux, when Node 16.1.0 is compiled using
--enable-lto. Without--enable-lto, it does terminate. Since Node 16.0.0 cannot be linked with LTO, this is not a regression compared to 16.0.0, but compared to Node 14.I use ld.bfd 2.35.1-41.fc34 with g++ (GCC) 11.1.1 20210428 (Red Hat 11.1.1-1).
The .gz output of
strace -t -s2048 yarn init -y[-]16.1.0 regression compared to 16.0.0: yarn 1 does not terminate[/-][+]16.1.0 with LTO: yarn 1 does not terminate[/+]gengjiawen commentedon May 6, 2021
I am using master branch, not able to reproudce too. Can you try https://github.com/gengjiawen/node-github-workflow/actions/runs/816993117 binary ?
dilyanpalauzov commentedon May 7, 2021
Building from the master branch still has this problem. I uploaded my binary at https://mail.aegee.org/dpa/n16/ .
Compiling
CC=clang CXX=clang++ python configure.py --gdb --ninja --enable-ltofails withWhy am I not permitted to use LTO with clang?
Can I tell the compiler using configure.py to use ld.gold as linker?
The webpage https://github.com/gengjiawen/node-github-workflow/actions/runs/816993117 contains the information
I cannot download https://github.com/gengjiawen/node-github-workflow/suites/2666783862/artifacts/58758469 using wget or curl. When I try to download it from FIrefox, the first time 500MB were downloaded, the second and third time 528MB were downloaded. That said I cannot download the uploaded artifact in its completeness.
richardlau commentedon Feb 17, 2022
Does this still occur with #40631 (which is now on the most recent versions of Node.js 12, 14, 16 and 17) applied?
dilyanpalauzov commentedon Feb 18, 2022
With the change #40631 applied towards Node v16.14.0, the initial problem is gone. I compile using
--enable-lto, then callyarn add -yand it terminates.