Uh oh!
There was an error while loading. Please reload this page.
build: fix building with ninja - #32071
Conversation
nodejs-github-bot
commented
Mar 3, 2020
mmarchini
commented
Mar 3, 2020
gabrielschulhof
left a comment
There was a problem hiding this comment.
This breaks on Ubuntu 18.04.
gabrielschulhof
commented
Mar 3, 2020
The file given needs to be the object file, not the static library. |
gabrielschulhof
commented
Mar 3, 2020
... and it needs to be the first file given to the linker. |
gabrielschulhof
commented
Mar 3, 2020
I mean, if you build with this change, it fails to find the mapping for large pages – probably because the value of |
gabrielschulhof
commented
Mar 3, 2020
Is there a gyp variable holding the directory where object files are placed? |
richardlau
commented
Mar 3, 2020
Lines 88 to 94 in 3d894d0 |
gabrielschulhof
commented
Mar 3, 2020
@richardlau oh, so ninja doesn't do |
gabrielschulhof
commented
Mar 4, 2020
@richardlau we should then be able to use a condition like the one above to switch between the two paths, right? |
richardlau
commented
Mar 4, 2020
I'm testing that right now. |
gabrielschulhof
commented
Mar 4, 2020
@richardlau can you also manually run |
gabrielschulhof
commented
Mar 4, 2020
The test that runs |
richardlau
commented
Mar 4, 2020
I don't think my Linux environment has support for large pages (it prints |
gabrielschulhof
commented
Mar 4, 2020
|
richardlau
commented
Mar 4, 2020
@gabrielschulhof It's a shared development server so I almost certainly don't have permissions to do that. |
gabrielschulhof
commented
Mar 4, 2020
@richardlau OK, no problem. I can test on my machine when you push to this PR. |
gabrielschulhof
commented
Mar 4, 2020
@richardlau another good check is to examine the line at the end of the build to make sure that |
gabrielschulhof
commented
Mar 4, 2020
@richardlau testing ... |
richardlau
commented
Mar 4, 2020
FTR with Ninja it looks like the object file is written to with and with |
@richardlau argh! This works, but the command line changes: so the I would like to test putting the condition in the |
gabrielschulhof
commented
Mar 4, 2020
Pushed one more minor change – to remove the trailing comma, thereby removing a superfluous diff. |
nodejs-github-bot
commented
Mar 4, 2020
MylesBorins
commented
Mar 4, 2020
should this be fast-tracked? |
gabrielschulhof
commented
Mar 4, 2020
@MylesBorins I guess it does break the GitHub action, so it's probably a good idea. |
The ninja build places objects in a different directory. Co-authored-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Signed-off-by: Richard Lau <riclau@uk.ibm.com> PR-URL: nodejs#32071 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
richardlau
commented
Mar 4, 2020
Landed in de6cbd0. |
The ninja build places objects in a different directory. Co-authored-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Signed-off-by: Richard Lau <riclau@uk.ibm.com> PR-URL: #32071 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
The ninja build places objects in a different directory. Co-authored-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Signed-off-by: Richard Lau <riclau@uk.ibm.com> PR-URL: nodejs#32071 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
The ninja build places objects in a different directory. Co-authored-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Signed-off-by: Richard Lau <riclau@uk.ibm.com> PR-URL: nodejs#32071 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
targos
commented
Apr 20, 2020
Depends on #31981 to land on v12.x |
The ninja build places objects in a different directory. Co-authored-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Signed-off-by: Richard Lau <riclau@uk.ibm.com> Backport-PR-URL: nodejs#32092 PR-URL: nodejs#32071 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
The ninja build places objects in a different directory. Co-authored-by: Gabriel Schulhof <gabriel.schulhof@intel.com> Signed-off-by: Richard Lau <riclau@uk.ibm.com> Backport-PR-URL: #32092 PR-URL: #32071 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
The ninja build places objects in a different directory.
Refs: #31981 (comment)
cc @gabrielschulhof
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes