-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unefined PushAllRegistersAndIterateStack: building node 18.7.0 using Ubuntu 22 #44195
Comments
Same issue using |
and add this to the
|
nope this does not work, same issue... |
same issue trying to build
|
"PushAllRegistersAndIterateStack" is implemented in assembly and called from "stack.cc" via 'extern "C"'. [1] However, LTO does not work well with symbol usage from assembly. [2] This change workarounds the issue by disabling LTO for the target. With GCC 10 and "./configure --enable-lto", compilation succeeds after this change. [1] v8/v8@c10863153 [2] https://gcc.gnu.org/wiki/LinkTimeOptimizationFAQ#Symbol_usage_from_assembly_language Refs: #35957 Refs: #38335 Signed-off-by: Jesse Chan <jc@linux.com> PR-URL: #38346 Refs: #35957 Refs: #38335 Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
@atoomic I'm facing same issue. Did you find a workaround? |
I was able to move forward and build node
hope this helps |
I believe the conclusion here is that it's basically a binutils LTO bug, right? In that case I suggest closing the issue because that's not under our control. |
fine with me |
If someone can provide details about this issue please report that under https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111964 |
Version
18.7.0
Platform
Ubuntu 22 x86_x64
Subsystem
No response
What steps will reproduce the bug?
While trying to build node on ubuntu22 (using pbuilder) and gcc-11 using
How often does it reproduce? Is there a required condition?
Can reproduce every time I try to build it.
Does not happen while building with Ubuntu 20.
What is the expected behavior?
ld succeeds for
stack.cc
What do you see instead?
I got the following issue:
undefined reference to PushAllRegistersAndIterateStack
while trying to link ltrans.oHere is the extract
Additional information
This looks similar to the problem fixed by #23440 or maybe #38501.
The fix from bec959e seems to provide a workaround for it.
I wonder if in my case it's not applied as
lto=auto
.Going to give a try using an explicit
--enable-lto
and provide an update to this caseThe text was updated successfully, but these errors were encountered: