This doesn't seem to affect cross builds, but only archive builds:
[13145/19378] python ../../v8/tools/run.py ./mksnapshot --startup_src gen/v8/snapshot.cc --random-seed 314159265 --startup_blob snapshot_blob.bin
FAILED: gen/v8/snapshot.cc snapshot_blob.bin
python ../../v8/tools/run.py ./mksnapshot --startup_src gen/v8/snapshot.cc --random-seed 314159265 --startup_blob snapshot_blob.bin
ninja: build stopped: subcommand failed.
oxide/CMakeFiles/build_all.dir/build.make:60: recipe for target 'oxide/CMakeFiles/build_all' failed
make[4]: *** [oxide/CMakeFiles/build_all] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
CMakeFiles/Makefile2:234: recipe for target 'oxide/CMakeFiles/build_all.dir/all' failed
make[3]: *** [oxide/CMakeFiles/build_all.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
Makefile:141: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
dh_auto_build: make -j4 returned exit code 2
debian/rules:20: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:14: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
Running mksnapshot on a porter box, I see it crash like this:
Thread 1 "mksnapshot" received signal SIGBUS, Bus error. fill_a< v8::internal: :compiler: :InstructionOpe rand*, v8::internal: :compiler: :InstructionOpe rand> () at /usr/include/ c++/6/bits/ stl_algobase. h:685 fill_a< v8::internal: :compiler: :InstructionOpe rand*, v8::internal: :compiler: :InstructionOpe rand> () at /usr/include/ c++/6/bits/ stl_algobase. h:685 v8::internal: :compiler: :InstructionOpe rand*, v8::internal: :compiler: :InstructionOpe rand> () at /usr/include/ c++/6/bits/ stl_algobase. h:731 :compiler: :InstructionSel ector:: EmitTableSwitch () at ../../v8/ src/compiler/ instruction- selector. cc:1511 :compiler: :InstructionSel ector:: VisitSwitch () at ../../v8/ src/compiler/ arm/instruction -selector- arm.cc: 2042 :compiler: :InstructionSel ector:: VisitControl () at ../../v8/ src/compiler/ instruction- selector. cc:917 :compiler: :InstructionSel ector:: VisitBlock () at ../../v8/ src/compiler/ instruction- selector. cc:822 :compiler: :InstructionSel ector:: SelectInstructi ons () at ../../v8/ src/compiler/ instruction- selector. cc:69 :compiler: :InstructionSel ectionPhase: :Run () at ../../v8/ src/compiler/ pipeline. cc:1253 :compiler: :PipelineImpl: :Run<v8: :internal: :compiler: :InstructionSel ectionPhase, v8::internal: :compiler: :Linkage* > () at ../../v8/ src/compiler/ pipeline. cc:706 :compiler: :PipelineImpl: :ScheduleAndSel ectInstructions () at ../../v8/ src/compiler/ pipeline. cc:1804 :compiler: :PipelineImpl: :ScheduleAndGen erateCode () at ../../v8/ src/compiler/ pipeline. cc:1905 :compiler: :Pipeline: :GenerateCodeFo rCodeStub () at ../../v8/ src/compiler/ pipeline. cc:1692 :compiler: :CodeAssembler: :GenerateCode () at ../../v8/ src/compiler/ code-assembler. cc:76 ubAssemblerCS () at ../../v8/ src/builtins/ builtins. cc:110 :Builtins: :SetUp () at ../../v8/ src/builtins/ builtins. cc:153 :Isolate: :Init () at ../../v8/ src/isolate. cc:2533 ator::SnapshotC reator () at ../../v8/ src/api. cc:484 :CreateSnapshot DataBlob () at ../../v8/ src/api. cc:593 src/snapshot/ mksnapshot. cc:164
std::__
685 *__first = __value;
(gdb) bt
#0 std::__
#1 std::fill<
#2 v8::internal:
#3 0xab054c98 in v8::internal:
#4 0xaac234e4 in v8::internal:
#5 0xaac235d0 in v8::internal:
#6 0xaac237d6 in v8::internal:
#7 0xaac771b0 in v8::internal:
#8 v8::internal:
#9 0xaac7942c in v8::internal:
#10 0xaac7a3da in v8::internal:
#11 v8::internal:
#12 0xaabf7620 in v8::internal:
#13 0xaaba1bc6 in BuildWithCodeSt
#14 0xaaba51a0 in v8::internal:
#15 0xaae2086e in v8::internal:
#16 0xaaafd2bc in v8::SnapshotCre
#17 0xaab05be2 in v8::V8:
#18 0xaaaf4c84 in main () at ../../v8/