-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
deps: fix V8 compilation on GCC 12 #53728
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
Upstreamed https://chromium-review.googlesource.com/c/v8/v8/+/5679182 to see if it's acceptable in the upstream...if not I think we should float it to prevent a hole in our GCC >= 10.1 on Linux support matrix? |
0a9e556
to
c896192
Compare
I can confirm this fixes building Node.js with the 12.2.0 gcc Docker container (main fails without this in that container, succeeds in the gcc:12.3.0 container). |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Extended the range check to include 12.1 which is also broken. Also changed the referenced link to the GCC fix. |
Co-authored-by: Richard Lau <rlau@redhat.com>
This will be merged in https://chromium-review.googlesource.com/c/v8/v8/+/5679182 too, so I will change it into a V8 cherry-pick when the V8 commit queue finishes. |
@joyeecheung I can't figure out how to comment in https://chromium-review.googlesource.com/c/v8/v8/+/5679182, but it appears to be missing the 75a4d43 fixup. |
@richardlau Thanks for catching it, I fixed it in the CL, the commit queue request should be cancelled. |
I am not sure if this is acceptable in the upstream considering they are dropping support for MSVC and GCC support would also be limited in the near future. But this should address the problem of not being able to build Node.js with GCC 12 on certain Linux distros.
Refs: #45427
Refs: nodejs/help#4406
Refs: #53633
Refs: nodejs/help#4430
Refs: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=aeba3e009b0abfccaf01797556445dbf891cc8dc
cc @targos