According to the nodejs building document, have to build nodejs with gcc>=6.3,but I build it with gcc 4.9.3-3 without errors. after crash,I use [email protected] to build nodejs,the result are same.
void WriteHeader(Writer* w) {
DCHECK_EQ(w->position(), 0);
Writer::Slot<ELFHeader> header = w->CreateSlotHere<ELFHeader>();
#if (V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM)
const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 1, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0};
#elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT || \
V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN
const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 2, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0};
#elif V8_TARGET_ARCH_PPC64 && V8_TARGET_BIG_ENDIAN && V8_OS_LINUX
const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 2, 2, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0};
#elif V8_TARGET_ARCH_S390X
const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 2, 2, 1, 3,
0, 0, 0, 0, 0, 0, 0, 0};
#elif V8_TARGET_ARCH_S390
const uint8_t ident[16] = {0x7F, 'E', 'L', 'F', 1, 2, 1, 3,
0, 0, 0, 0, 0, 0, 0, 0};
#else
#error Unsupported target architecture. <--
#endif
Thank you for help. Yes, mips(el) is not an officially supported
architecture, but less than nothing.
I just build [email protected] on mips64el (loongson 3A3000) with --with-snapshot ,the result was successed. When I run nodejs, it crashed. The messages are as follows:
But [email protected] and [email protected] works fine. I found that when I build [email protected] with
--without-snapshot,then nodejs works fine. Maybe mips64el has some problems with v8 snapshot.The versions of v8 and nodejs are :
According to the nodejs building document, have to build nodejs with gcc>=6.3,but I build it with gcc 4.9.3-3 without errors. after crash,I use [email protected] to build nodejs,the result are same.
I also tried to build nodejs with crossing compiler [email protected] and [email protected], nodejs was crashed too.You can download them from
http://www.loongnix.org/index.php/Cross-compile , and direct download url [email protected] and [email protected] ,put the date directory to
/usr/loca/the crossing build script as follows(host: ubuntu 18.04 x86_64 and [email protected]):
Maybe nodejs crashed in v8 builtin code,But when I use
./configure xxxx and --gdb, build failed onsrc\deps\v8\src\diagnostics\gdb-jit.cc@629#error Unsupported target architecture.Hi @bnoordhuis:
Thank you for help. Yes, mips(el) is not an officially supported
architecture, but less than nothing.