Imagination Technologies が提供するmips用GCC - FPGA開発日記
で、途中でmemsetが定義されていなくてコンパイルできない件は、結局自分でmemsetを追加した。
+ +void* memset (void * s, int c, size_t count) +{ + size_t i; + for (i = 0; i < count; i++) + ((uint8_t*) s)[i] = (uint8_t)c; + return s; +}
こうするとコンパイルはできるのだが、やっぱりmips32r6を指定するとエラーとなる。どうやらライブラリがmips32r6でコンパイルできていないようだ。 バイナリを取得してきたのでしようが無いのだが、何とかしたい。
というか、現状ではmips32r6のコードが出ないので、どうしようもないのだが...
/home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/ccQMee7t.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/ccQMee7t.o /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/ccLaGbXM.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/ccLaGbXM.o /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/ccyEqcdg.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/ccyEqcdg.o /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/cczPPWyR.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/cczPPWyR.o /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/cc8rQvwB.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/cc8rQvwB.o /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/ccjS0nHo.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/ccjS0nHo.o /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: /tmp/ccG4g6Ab.o: linking mips:isa32r6 module with previous mips:isa32r2 modules /home/ubuntu/work/sdk/install-mips-mti-elf/bin/../lib/gcc/mips-mti-elf/4.9.0/../../../../mips-mti-elf/bin/ld: failed to merge target specific data of file /tmp/ccG4g6Ab.o