kendryte / kendryte-openmv

Other
55 stars 18 forks source link

can't link single-float modules with double-float modules #2

Open nalzok opened 5 years ago

nalzok commented 5 years ago

Here is the error message: log.txt

The toolchain is built from https://github.com/riscv/riscv-gnu-toolchain, with

./configure --prefix=/opt/riscv-toolchain --enable-multilib

System information

$ gcc --version
gcc-8 (Homebrew GCC 8.3.0) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ uname -a
Darwin s-MacBook-puro.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

What's more, when switching to the official toolchain, kendryte-toolchain-osx-mojave-8.2.0-20190213.tar.gz, an earlier error occurs

Scanning dependencies of target kendryte
[  2%] Building C object lib/CMakeFiles/kendryte.dir/bsp/crt.S.obj
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S: Assembler messages:
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:79: Error: unrecognized opcode `fmv.d.x f0,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:80: Error: unrecognized opcode `fmv.d.x f1,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:81: Error: unrecognized opcode `fmv.d.x f2,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:82: Error: unrecognized opcode `fmv.d.x f3,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:83: Error: unrecognized opcode `fmv.d.x f4,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:84: Error: unrecognized opcode `fmv.d.x f5,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:85: Error: unrecognized opcode `fmv.d.x f6,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:86: Error: unrecognized opcode `fmv.d.x f7,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:87: Error: unrecognized opcode `fmv.d.x f8,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:88: Error: unrecognized opcode `fmv.d.x f9,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:89: Error: unrecognized opcode `fmv.d.x f10,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:90: Error: unrecognized opcode `fmv.d.x f11,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:91: Error: unrecognized opcode `fmv.d.x f12,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:92: Error: unrecognized opcode `fmv.d.x f13,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:93: Error: unrecognized opcode `fmv.d.x f14,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:94: Error: unrecognized opcode `fmv.d.x f15,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:95: Error: unrecognized opcode `fmv.d.x f16,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:96: Error: unrecognized opcode `fmv.d.x f17,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:97: Error: unrecognized opcode `fmv.d.x f18,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:98: Error: unrecognized opcode `fmv.d.x f19,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:99: Error: unrecognized opcode `fmv.d.x f20,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:100: Error: unrecognized opcode `fmv.d.x f21,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:101: Error: unrecognized opcode `fmv.d.x f22,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:102: Error: unrecognized opcode `fmv.d.x f23,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:103: Error: unrecognized opcode `fmv.d.x f24,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:104: Error: unrecognized opcode `fmv.d.x f25,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:105: Error: unrecognized opcode `fmv.d.x f26,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:106: Error: unrecognized opcode `fmv.d.x f27,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:107: Error: unrecognized opcode `fmv.d.x f28,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:108: Error: unrecognized opcode `fmv.d.x f29,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:109: Error: unrecognized opcode `fmv.d.x f30,x0'
/Users/nalzok/Developer/kendryte-openmv/lib/bsp/crt.S:110: Error: unrecognized opcode `fmv.d.x f31,x0'
make[2]: *** [lib/CMakeFiles/kendryte.dir/bsp/crt.S.obj] Error 1
make[1]: *** [lib/CMakeFiles/kendryte.dir/all] Error 2
make: *** [all] Error 2
ly0 commented 5 years ago

We have deleted fp64(d extension) from toolchain, so you may delete the wrong codes from crt.S. Since we don't have any update on this project, maybe you could try Sipeed's openmv?