kendryte-freertos-sdk-0.6.0 build problem

  • Hi, there

    When I tried to build freertos sdk 0.6.0, I've got following build error.
    Toolchain isa an official version from the and freertos SDK is a release version from the kendryte
    Problem is rather simple
    struct kernel_stat duplication between toolchain and SDK.



    build log follows:

    [ 72%] Building CXX object SDK/bsp/CMakeFiles/bsp.dir/device/timer.cpp.obj
    [ 73%] Building CXX object SDK/bsp/CMakeFiles/bsp.dir/device/uart.cpp.obj
    [ 75%] Building CXX object SDK/bsp/CMakeFiles/bsp.dir/device/wdt.cpp.obj
    [ 77%] Building C object SDK/bsp/CMakeFiles/bsp.dir/dump.c.obj
    [ 78%] Building C object SDK/bsp/CMakeFiles/bsp.dir/entry_user.c.obj
    [ 80%] Building C object SDK/bsp/CMakeFiles/bsp.dir/except.c.obj
    [ 81%] Building C object SDK/bsp/CMakeFiles/bsp.dir/interrupt.c.obj
    [ 83%] Building C object SDK/bsp/CMakeFiles/bsp.dir/printf.c.obj
    [ 85%] Building C object SDK/bsp/CMakeFiles/bsp.dir/sleep.c.obj
    [ 86%] Building C object SDK/bsp/CMakeFiles/bsp.dir/syscalls.c.obj
    In file included from /home/kwonsk/k210/kendryte-freertos-sdk-0.6.0/lib/bsp/syscalls.c:35:0:
    /home/kwonsk/k210/kendryte-freertos-sdk-0.6.0/lib/bsp/syscalls/syscalls.h:26:8: error: redefinition of 'struct kernel_stat'
    struct kernel_stat
    In file included from /home/kwonsk/k210/kendryte-freertos-sdk-0.6.0/lib/bsp/syscalls.c:24:0:
    /home/kwonsk/k210/kendryte-toolchain/riscv64-unknown-elf/include/machine/syscall.h:87:9: note: originally defined here
    struct kernel_stat
    SDK/bsp/CMakeFiles/bsp.dir/build.make:387: recipe for target 'SDK/bsp/CMakeFiles/bsp.dir/syscalls.c.obj' failed
    make[2]: *** [SDK/bsp/CMakeFiles/bsp.dir/syscalls.c.obj] Error 1
    CMakeFiles/Makefile2:271: recipe for target 'SDK/bsp/CMakeFiles/bsp.dir/all' failed
    make[1]: *** [SDK/bsp/CMakeFiles/bsp.dir/all] Error 2
    Makefile:83: recipe for target 'all' failed
    make: *** [all] Error 2

  • Can you release the toolchain required for 0.6.0? As it stands now, we need to use 0.5.0 to compile the C code, but 0.6.0 to use (required to get model compiler flow running).

  • 0.6.0 need new version toolchain but it not release right now