rethinkdb在龙芯上编译失败?

龙芯官方Yum源中没有找到rethinkdb组件,基于开源rethinkdb(版本号:2.2.4)编译时,发现该组件
不支持MIPS架构且源码涉及到部分汇编语言(error "Unsupported architecture."),具体信息见附件。
rethinkdb 源码下载于github: https://github.com/rethinkdb/rethinkdb
哪位大神能够把这个软件在龙芯上移植一下?
编译平台:
[CPU:3A2000(ICT Loongson-3A2000 V0.8 FPU V0.1)、操作系统版本: loongnix-20161030.iso]

错误信息:
--------------------------------------
[root@localhost rethinkdb-2.2.4]# make
./scripts/gen-version.sh: Warning: could not determine the version, using the default version '2.2.4-fallback'
[1/343] CC build/release/obj/arch/runtime/context_switching.o
src/arch/runtime/context_switching.cc:109:4: 错误:#error "Unsupported architecture."
#error "Unsupported architecture."
^
src/arch/runtime/context_switching.cc:328:2: 错误:#error "Unsupported architecture."
#error "Unsupported architecture."
^
src/arch/runtime/context_switching.cc:330:1: 错误:expected string-literal before ‘)’ token
);
^
src/build.mk:381: recipe for target 'build/release/obj/arch/runtime/context_switching.o' failed
make[1]: *** [build/release/obj/arch/runtime/context_switching.o] Error 1
Makefile:52: recipe for target 'make' failed
make: *** [make] Error 2
--------------------------------------
调查发现rethinkdb组件(rethinkdb-2.2.4/ src/arch/runtime/context_switching.cc)不支持龙芯MIPS架构,
context_switching.cc只定义i386、X86_64及arm三种架构,且代码中涉及到部分汇编语言,
======================================
297 #if defined(__i386__)
298 "pop %ebp\n"
299 "pop %ebx\n"
300 "pop %edi\n"
301 "pop %esi\n"
302 #elif defined(__x86_64__)
303 "popq %rbp\n"
304 "popq %rbx\n"
305 "popq %r15\n"
306 "popq %r14\n"
307 "popq %r13\n"
308 "popq %r12\n"
309 #elif defined(__arm__)
310 "pop {r4-r11}\n"
311 "pop {r14}\n"
312 "pop {r12}\n"
313 #endif
======================================
系统信息:
[root@localhost 桌面]# uname -a
Linux localhost.localdomain 3.10.84-9.fc21.loongson.mips64el #1 SMP PREEMPT Wed Oct 19 10:38:59 CST 2016 mips64 mips64 mips64 GNU/Linux
[root@localhost 桌面]# cat /proc/cpuinfo
system type : lst-loongson3-eva
machine : Unknown
processor : 0
cpu model : ICT Loongson-3A2000 V0.8 FPU V0.1
BogoMIPS : 1992.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 1088
extra interrupt vector : no
hardware watchpoint : yes, count: 0, address/irw mask: []
isa : mips1 mips2 mips3 mips4 mips5 mips64r2
ASEs implemented : dsp dsp2 vz
shadow register sets : 1
kscratch registers : 6
core : 0
VCED exceptions : not available
VCEI exceptions : not available
已邀请:

loongnix

赞同来自:

已经编译通过了!都在这篇文章里

http://ask.loongnix.org/?/m/article/65

要回复问题请先登录注册