Repository: node
Issue: mksnapshot bus error on mips64el
Labels: build

### Version

22.12.0

### Platform

```text
Linux 6.1.0-28-loongson-3 #1 SMP PREEMPT Debian 6.1.119-1 (2024-11-22) mips64el (mips64)
```


### Subsystem

build

### What steps will reproduce the bug?

Build on mips64el.
This is a log from a debian build.
I've started a pristine source build to make sure it's not caused by debian package flags, and to get a backtrace.

g++ -o /<<PKGBUILDDIR>>/out/Release/mksnapshot -pthread -rdynamic -EL -mhard-float  -Wl,--start-group /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/embedded-empty.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/embedded-file-writer.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-win.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/snapshot-empty.o /<<PKGBUILDDIR>>/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/static-roots-gen.o /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_base_without_compiler.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_init.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_libbase.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_libplatform.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_turboshaft.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_abseil.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_compiler.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_initializers.a /<<PKGBUILDDIR>>/out/Release/obj.target/tools/v8_gypfiles/libv8_initializers_slow.a -lz -luv -lsimdjson -lbrotlidec -lbrotlienc -lcares -lnghttp2 -lnghttp3 -lngtcp2 -lsqlite3 -lcrypto -lssl -licui18n -licuuc -latomic -ldl -lrt -Wl,--end-group
  touch 48edd0a62b1829024c3b696f1c1e2e72a6ba670c.intermediate
  LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/out/Release/lib.host:/<<PKGBUILDDIR>>/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /<<PKGBUILDDIR>>/out/Release/obj.target/v8_snapshot/geni; "/<<PKGBUILDDIR>>/out/Release/mksnapshot" --turbo_instruction_scheduling --stress-turbo-late-spilling "--target_os=linux" "--target_arch=mips64el" --startup_src "/<<PKGBUILDDIR>>/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" --embedded_variant Default --embedded_src "/<<PKGBUILDDIR>>/out/Release/obj.target/v8_snapshot/geni/embedded.S" --no-native-code-counters
Bus error

### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior? Why is that the expected behavior?

No bus error.

### What do you see instead?

Bus error

### Additional information

_No response_