kendryte / kendryte-standalone-demo

Demo of kendryte k210 standalone SDK
https://github.com/kendryte/kendryte-standalone-sdk
229 stars 97 forks source link

kpu demo fails to compile #14

Closed jonasniesner closed 5 years ago

jonasniesner commented 5 years ago

The KPU demo fails to compile with the latest sdk and the latest demo version (18.12.2018) This happens likely due to conflicting types.


[ 88%] Building C object CMakeFiles/kpu.dir/src/kpu/gencode_output.c.obj
/.../kendryte-standalone-sdk-develop/src/kpu/gencode_output.c:26731:13: error: conflicting types for 'kpu_task_init'
 kpu_task_t* kpu_task_init(kpu_task_t* task){
             ^~~~~~~~~~~~~
In file included from /.../kendryte-standalone-sdk-develop/src/kpu/gencode_output.c:1:
/.../kendryte-standalone-sdk-develop/lib/drivers/include/kpu.h:329:5: note: previous declaration of 'kpu_task_init' was here
 int kpu_task_init(kpu_task_t *task);
     ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/kpu.dir/build.make:63: CMakeFiles/kpu.dir/src/kpu/gencode_output.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/kpu.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
zzxcanaan commented 5 years ago

I have fix it, please pull the latest sdk code.