This discussion is archived
1 Reply Latest reply: Jul 12, 2012 7:36 PM by 949003 RSS

Berkeley DB 5.2.36 mips

949003 Newbie
Currently Being Moderated
1. ../dist/configure –host=mips-linux –prefix=/home/kexf/bdb/bulid/mips.5.2/ –with-mutex=MIPS/gcc-assembly
2. make
./libtool –mode=compile mips-linux-cc -c -I. -I../src -D_GNU_SOURCE -D_REENTRANT -O3 ../src/mutex/mut_tas.c
libtool: compile: mips-linux-cc -c -I. -I../src -D_GNU_SOURCE -D_REENTRANT -O3 ../src/mutex/mut_tas.c -fPIC -DPIC -o .libs/mut_tas.o
/tmp/ccD53pYU.s: Assembler messages:
/tmp/ccD53pYU.s:102: Error: opcode not supported on this processor: mips1 (mips1) `sync ‘
make: *** [mut_tas.lo] Error 1

why?
  • 1. Re: Berkeley DB 5.2.36 mips
    949003 Newbie
    Currently Being Moderated
    我发现此版本中的db-5.2.36/src/dbinc的mutex_int.h文件中使用了sync汇编指令,但是此指令是misps2指令集中的指令,但是有些地方使用了.set mips2设置了使用mips2的指令集,但是有些地方没有使用.set mips2,因此make时会出错。5.1.29版本也是此问题。

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points