-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Node.js would not compile with --debug --v8-non-optimized-debug #38571
Comments
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index 377e12d1fd..f34e4480ee 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -166,6 +166,7 @@
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/class-verifiers.h',
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/factory.cc',
'<(SHARED_INTERMEDIATE_DIR)/torque-generated/objects-printer.cc',
+ '<@(torque_outputs_cc)'
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)', This is a potential solution. Any advice? |
It does looks like the Lines 1618 to 1625 in e46c680
|
@richardlau my patch actually works (compilation successful) but I am not sure if that's the right thing to do. |
@john-yan Yeah, sorry, I tried a fresh checkout and both patches work. I think adding the files is the right thing to do here, I'll open a PR. |
PR: #38576 |
Thanks @richardlau for helping out! |
The `torque_generated_definitions` target is missing some torque generated files in its sources list when compared to the equivalent target in V8's BUILD.gn. PR-URL: #38576 Fixes: #38571 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
What steps will reproduce the bug?
./configure --debug --v8-non-optimized-debug
make -j32
How often does it reproduce? Is there a required condition?
Consistently
What is the expected behavior?
compilation successful
What do you see instead?
Linker fail because a ton of undefined ref
eg.
Additional information
Some of the torque generated .cc are not being compiled to .o eg.
fixed-array-tq.o
. Therefore, at the linking step, definition are missing. I suspect either gpy is not working or the GN scraper is not working as expected. I also check the Release build, fixed-array-tq.o is also missing but for some reason it compiles OK. All the torque generated .cc file are compiled to .o by GN+ninja on standalone v8 compilation.The text was updated successfully, but these errors were encountered: