You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add note in BUILDING.md about running make distclean #28675
I'm receiving the following error when trying to build Node.js on master:
/Users/benjamincoe/bcoe/node/out/Release/obj.target/v8_snapshot/geni/embedded.cc:5:10: fatal error: 'src/snapshot/macros.h' file not found
#include "src/snapshot/macros.h"
I'm receiving this error both on my Debian work desktop and my ancient Macbook.
I also noticed that the same issue was reported by @ronaghere.
./configure --without-snapshot
I was able to compile if I configured a build without snapshots, but the ./node bin generated segfaults fails a check and exits with 1 .
changed the title [-]build failure on master (src/snapshot/macros.h' file not found)[/-][+]build failure on master (src/snapshot/macros.h file not found)[/+]on Jul 14, 2019
The second one is that apparently the custom Node.js snapshot cannot work without the V8 snapshot, so you have to ./configure --without-snapshot --without-node-snapshot. /cc @joyeecheung
The first issue is usually triggered by some stale build I think. Try doing make distclean (not make clean) and build again, or simply remove the whole thing and build from a fresh clone (make sure you clean you ccache etc. while you are at it)
--without-snapshot is going away soon, as the V8 team is going to remove builds without snapshots, not sure if we should do anything about that.
@joyeecheung running make distclean worked like a charm on my Linux desktop, I think it might be worth adding a note about to BUILDING.md. I'll leave this open until this evening, and will make an effort to add a note myself.
changed the title [-]build failure on master (src/snapshot/macros.h file not found)[/-][+]add note in BUILDING.md about running `make distclean`[/+]on Jul 15, 2019
Activity
[-]build failure on master (src/snapshot/macros.h' file not found)[/-][+]build failure on master (src/snapshot/macros.h file not found)[/+]bcoe commentedon Jul 14, 2019
This is the exception I get on both systems, if I
./configure --without-snapshot:targos commentedon Jul 14, 2019
I can't reproduce the first issue.
The second one is that apparently the custom Node.js snapshot cannot work without the V8 snapshot, so you have to
./configure --without-snapshot --without-node-snapshot. /cc @joyeecheungjoyeecheung commentedon Jul 15, 2019
The first issue is usually triggered by some stale build I think. Try doing
make distclean(notmake clean) and build again, or simply remove the whole thing and build from a fresh clone (make sure you clean you ccache etc. while you are at it)--without-snapshotis going away soon, as the V8 team is going to remove builds without snapshots, not sure if we should do anything about that.bcoe commentedon Jul 15, 2019
@joyeecheung running
make distcleanworked like a charm on my Linux desktop, I think it might be worth adding a note about toBUILDING.md. I'll leave this open until this evening, and will make an effort to add a note myself.[-]build failure on master (src/snapshot/macros.h file not found)[/-][+]add note in BUILDING.md about running `make distclean`[/+]AtticusYang commentedon Jul 18, 2019
thank u. I meet the same question.
without-snapshot now needs to be specified twice?
doc: add note in BUILDING.md about running `make distclean`
doc: add note in BUILDING.md about running `make distclean`
doc: add note in BUILDING.md about running `make distclean`
doc: add note in BUILDING.md about running `make distclean`
Import Debian changes 18.13.0+dfsg1-1
Import Debian changes 18.20.4+dfsg-1~deb12u1
doc: add note in BUILDING.md about running `make distclean`