-
Notifications
You must be signed in to change notification settings - Fork 30k
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: remove unused libatomic and librt on ppc64, s390x #29727
Conversation
I'll look at removing |
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.
LGTM as long as CI is good across platforms
Re. Line 247 in df0e2e3
Subsystem would more accurately be |
@joransiu @miladfarca -- you should look at this, too. |
Please +1 to fast-track this. I would like to prepare a patch for this soon. |
@bnoordhuis thoughts on the uv use of |
I'd like to give to tomorrow for people to comment on it, is that fast enough? But if you all think this is fine (even the uv change?), then I've no objection to fast-tracking. We can always fast-track another change, I gues, if it causes other problems. We could also switch back to ubuntu-1404 for the release machine until the issue is resolved. |
LGTM |
ab7fbf8
to
6e3b475
Compare
I'm not sure if I'm ready to fast-track ab7fbf85d280b5beca67fcc0783f318453f3506a without comment from @nodejs/libuv, because its patching EDIT: after rebase, uv patch is in 6e3b475 |
Based on @sam-github comments, removing |
I commented on libuv/libuv#2493 but for libuv, dropping the librt dependency isn't on the table while we still support glibc < 2.17. Some kind of build flag to make it conditional is acceptable though. |
Node.js doesn't support glibc < 2.17, @cjihrig @bnoordhuis any objection to just floating a patch on deps/uv? |
Alternatively, does anyone know how to remove the refs to unused link libs? I'm poring through gcc docs, but haven't seen anything yet. |
Will this do? diff --git a/common.gypi b/common.gypi
index 10b4ecfc52..b1b7d1abe6 100644
--- a/common.gypi
+++ b/common.gypi
@@ -349,6 +349,11 @@
'BUILDING_UV_SHARED=1',
],
}],
+ [ 'OS=="linux"', {
+ 'link_settings': {
+ 'libraries!': [ '-lrt' ],
+ },
+ }],
[ 'OS in "linux freebsd openbsd solaris aix"', {
'cflags': [ '-pthread' ],
'ldflags': [ '-pthread' ], |
Maybe avoid putting this in |
wrt. #29727 (comment) @bnoordhuis no, it doesn't help, because it adds The options I can think of are:
@danbev you don't have any insider information, do you, as to why RH's devtools-6 is behaving differently from upstream with respect to
|
@sam-github Read carefully, that exclamation mark has significance. :-) |
@bnoordhuis Ah, subtle! OK, I'll rework the last commit on this branch and test it. @richardlau Which .gyp file would you suggest? |
6e3b475
to
fc65f9e
Compare
@richardlau pending comment, I modified tools/v8_gypfiles/v8.gyp, PTAL |
|
The library is not necessary for ppc64 or s390x. It does no harm with some linkers, but devtoolset-6 creates runtime dependencies on all link libraries, even unused ones. Fixes: nodejs#27377 Fixes: nodejs#29718
1bd105c
to
3bfdb93
Compare
I did as @richardlau suggested. If this passes CI, I'm ready to land it. |
Landed in f3ae3c9 and 7ec558c |
The library is not necessary for ppc64 or s390x. It does no harm with some linkers, but devtoolset-6 creates runtime dependencies on all link libraries, even unused ones. Fixes: #27377 Fixes: #29718 PR-URL: #29727 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #29727 Fixes: #27377 Fixes: #29718 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The library is not necessary for ppc64 or s390x. It does no harm with some linkers, but devtoolset-6 creates runtime dependencies on all link libraries, even unused ones. Fixes: #27377 Fixes: #29718 PR-URL: #29727 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #29727 Fixes: #27377 Fixes: #29718 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The libraries are not necessary for ppc64 or s390x. It does no harm with
some linkers, but devtoolset-6 creates runtime dependencies on all link
libraries, even unused ones.
Fixes: #27377
Fixes: #29718
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes