Uh oh!
There was an error while loading. Please reload this page.
build: remove unused libatomic and librt on ppc64, s390x - #29727
build: remove unused libatomic and librt on ppc64, s390x#29727sam-github wants to merge 2 commits into
Conversation
nodejs-github-bot
commented
Sep 26, 2019
sam-github
commented
Sep 26, 2019
I'll look at removing |
nodejs-github-bot
commented
Sep 26, 2019
mhdawson
left a comment
There was a problem hiding this comment.
LGTM as long as CI is good across platforms
Re. Line 247 in df0e2e3 Subsystem would more accurately be |
sam-github
commented
Sep 26, 2019
@joransiu@miladfarca -- you should look at this, too. |
BridgeAR
commented
Sep 26, 2019
Please +1 to fast-track this. I would like to prepare a patch for this soon. |
sam-github
commented
Sep 26, 2019
@bnoordhuis thoughts on the uv use of |
nodejs-github-bot
commented
Sep 26, 2019
sam-github
commented
Sep 26, 2019
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. |
joransiu
commented
Sep 26, 2019
LGTM |
nodejs-github-bot
commented
Sep 27, 2019
ab7fbf8 to
6e3b475CompareI'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 |
nodejs-github-bot
commented
Sep 27, 2019
Trott
commented
Sep 28, 2019
Based on @sam-github comments, removing |
bnoordhuis
commented
Sep 30, 2019
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. |
sam-github
commented
Sep 30, 2019
Node.js doesn't support glibc < 2.17, @cjihrig@bnoordhuis any objection to just floating a patch on deps/uv? |
sam-github
commented
Sep 30, 2019
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. |
bnoordhuis
commented
Sep 30, 2019
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' ], |
richardlau
commented
Sep 30, 2019
Maybe avoid putting this in |
sam-github
commented
Sep 30, 2019
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
|
bnoordhuis
commented
Sep 30, 2019
@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
fc65f9eComparesam-github
commented
Sep 30, 2019
@richardlau pending comment, I modified tools/v8_gypfiles/v8.gyp, PTAL |
nodejs-github-bot
commented
Sep 30, 2019
richardlau
commented
Sep 30, 2019
|
nodejs-github-bot
commented
Oct 1, 2019
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#27377Fixes: nodejs#29718
1bd105c to
3bfdb93Comparenodejs-github-bot
commented
Oct 1, 2019
sam-github
commented
Oct 1, 2019
I did as @richardlau suggested. If this passes CI, I'm ready to land it. |
nodejs-github-bot
commented
Oct 1, 2019
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: #27377Fixes: #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: #29727Fixes: #27377Fixes: #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: #27377Fixes: #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: #29727Fixes: #27377Fixes: #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