Look for occurrences of 'v8_use_external_startup_data' in BUILD.gn ( https://cs.chromium.org/chromium/src/v8/BUILD.gn?l=265&rcl=739f5abc518dbe94bf245ae60d3b95e377290123). My guess is that your error is related to the V8_USE_EXTERNAL_STARTUP_DATA define.
You can also print the full compilation command used by ninja with the -v flag: $ ninja .... -v On Fri, Jun 8, 2018 at 10:21 AM, czczcheng <[email protected]> wrote: > I set the options v8_use_external_startup_data=false > try to run the sample hello-world with out the file snapshot_blob.bin > it's ok when i use ninja to compile > but if i use g++ directly it failed > # > # Fatal error in , line 0 > # Check failed: (i_isolate->snapshot_blob()) == nullptr. > # > # > # > #FailureMessage Object: 0x7ffd769487f0 > ==== C stack trace =============================== > > ./hello-world(+0xaa4ef6) [0x7f64a37bbef6] > ./hello-world(+0x942f0b) [0x7f64a3659f0b] > ./hello-world(+0x93898b) [0x7f64a364f98b] > ./hello-world(+0xdfcfb) [0x7f64a2df6cfb] > ./hello-world(+0xdfd2a) [0x7f64a2df6d2a] > ./hello-world(+0xc64a1) [0x7f64a2ddd4a1] > /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f64a190cb35] > ./hello-world(+0xc62dd) [0x7f64a2ddd2dd] > > I try to debug the program, find the code src/api.cc:8260 > i_isolate->set_snapshot_blob(i::Snapshot::DefaultSnapshotBlob()); > in the good program generated by ninja, the DefaultSnapshotBlob return a > section of data, length is 1329232 > but in the bad program generated by g++, the DefaultSnapshotBlob return a > section of data, length is zero > > DefaultSnapshotBlob was defined in src/snapshot/snapshot-empty.cc and just > return nullptr > there is another file: out.gn/release.x64/gen/snapshot.cc the function > was defined again, > i guess the defination in snapshot.cc is the real function to call , but > why it could return anything when i use g++ to compile binary? > can anyone help me? > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
