-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
build: fixed clang's warning when building openssl. #25954
build: fixed clang's warning when building openssl. #25954
Conversation
7a69300
to
480681e
Compare
forced-pushed to fix the commit message according to guide-line. |
Hello @thangktran and welcome. Thank you for your contribution 🥇 P.S. If you have any questions you can also feel free to contact me directly. |
Windows fail is #25988 |
480681e
to
b07957d
Compare
Hi @refack , thank you for your inputs. Line 500 in 62942e9
Was this error happened because the test processes were still running? |
New CI: https://ci.nodejs.org/job/node-test-pull-request/20668/
It's a false positives, because there was manual testing being done on the CI worker at the same time. Should not repeat. |
b07957d
to
4d792bb
Compare
configure.py
Outdated
# Fix based on work of @bnoordhuis from | ||
# https://github.com/nodejs/node-v0.x-archive/issues/4186 . | ||
o['variables']['clang'] = 1 if is_clang else 0 | ||
o['variables']['gcc_version'] = gcc_version[0] * 10 + gcc_version[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't used anymore so should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richardlau We still need 'clang' to enable -Wno-old-style-declaration
for linux.
https://github.com/nodejs/node/blob/4d792bbe807d30b7c8f3af379f27f0747958faa2/deps/openssl/openssl_common.gypi#L66-L69
since clang doesn't seem to support this flag and causes #25550
I couldn't find this clang
variable being set anywhere in the configure.py .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was referring to gcc_version
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I found out that we can also use llvm_version
instead of clang
for the check.
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: nodejs#25550 Refs: nodejs/node-v0.x-archive#4186
4d792bb
to
534ea4a
Compare
This PR is ready to land, could someone please take a look. |
New CI: https://ci.nodejs.org/job/node-test-pull-request/20784/ (✔️) (Will land later today assuming this comes back non-red). |
Landed in 128170f |
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: #25550 Refs: nodejs/node-v0.x-archive#4186 PR-URL: #25954 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: #25550 Refs: nodejs/node-v0.x-archive#4186 PR-URL: #25954 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
clang doesn't seem to support 'Wno-old-style-declaration', this is a work-around. Fixes: #25550 Refs: nodejs/node-v0.x-archive#4186 PR-URL: #25954 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
clang doesn't seem to support 'Wno-old-style-declaration', this
is a work-around.
Fixes: #25550
Refs: nodejs/node-v0.x-archive#4186
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes