unable compile hello_world using kendryte-standalone-sdk



  • ros@ros-virtual-machine:~/k210/kendryte-standalone-sdk/build$ cmake .. -DPROJ=hello_world -DTOOLCHAIN=/home/ros/k210/kendryte-toolchain/bin && make
    PROJ = hello_world
    -- Check for RISCV toolchain ...
    -- Using /home/ros/k210/kendryte-toolchain/bin RISCV toolchain
    SOURCE_FILES=/home/ros/k210/kendryte-standalone-sdk/src/hello_world/main.c
    
    Project: hello_world
      LIST_FILE=/home/ros/k210/kendryte-standalone-sdk/cmake/executable.cmake
      TOOLCHAIN=/home/ros/k210/kendryte-toolchain/bin
      KENDRYTE_IDE=
      BUILDING_SDK=yes
    
      CMAKE_BUILD_TYPE=Debug
      CMAKE_C_COMPILER=/home/ros/k210/kendryte-toolchain/bin/riscv64-unknown-elf-gcc
      CMAKE_CXX_COMPILER=/home/ros/k210/kendryte-toolchain/bin/riscv64-unknown-elf-g++
      CMAKE_LINKER=../../kendryte-toolchain/bin/riscv64-unknown-elf-ld
      CMAKE_OBJCOPY=/home/ros/k210/kendryte-toolchain/bin/riscv64-unknown-elf-objcopy
      CMAKE_OBJDUMP=/home/ros/k210/kendryte-toolchain/bin/riscv64-unknown-elf-objdump
      CMAKE_MAKE_PROGRAM=/usr/bin/make
    
      CMAKE_C_FLAGS= -mcmodel=medany -mabi=lp64f -march=rv64imafc -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -fno-zero-initialized-in-bss -ffast-math -fno-math-errno -fsingle-precision-constant -Os -ggdb -std=gnu11 -Wno-pointer-to-int-cast -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Werror=frame-larger-than=32768 -Wno-unused-parameter -Wno-sign-compare -Wno-error=missing-braces -Wno-error=return-type -Wno-error=pointer-sign -Wno-missing-braces -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-int-to-pointer-cast -Wno-error=comment -Wno-error=logical-not-parentheses -Wno-error=duplicate-decl-specifier -Wno-error=parentheses -Wno-old-style-declaration
      CMAKE_CXX_FLAGS= -mcmodel=medany -mabi=lp64f -march=rv64imafc -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -fno-zero-initialized-in-bss -ffast-math -fno-math-errno -fsingle-precision-constant -Os -ggdb -std=gnu++17 -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Werror=frame-larger-than=32768 -Wno-unused-parameter -Wno-sign-compare -Wno-error=missing-braces -Wno-error=return-type -Wno-error=pointer-sign -Wno-missing-braces -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-int-to-pointer-cast -Wno-error=comment -Wno-error=logical-not-parentheses -Wno-error=duplicate-decl-specifier -Wno-error=parentheses
      LDFLAGS= -nostartfiles -static -Wl,--gc-sections -Wl,-static -Wl,--start-group -Wl,--whole-archive -Wl,--no-whole-archive -Wl,--end-group -Wl,-EL -Wl,--no-relax -T /home/ros/k210/kendryte-standalone-sdk/lds/kendryte.ld
      CMAKE_BINARY_DIR=/home/ros/k210/kendryte-standalone-sdk/build
    Makefile created.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/ros/k210/kendryte-standalone-sdk/build
    [  2%] Building C object lib/CMakeFiles/kendryte.dir/bsp/crt.S.obj
    /home/ros/k210/kendryte-toolchain/bin/../libexec/gcc/riscv64-unknown-elf/8.2.0/cc1: error while loading shared libraries: libisl.so.19: cannot open shared object file: No such file or directory
    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
    


  • Hi junningwu
    Do the following steps before build (current toolchain for linux problem? V8.2.0 2019-03-15).

    $export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ros/k210/kendryte-toolchain/bin
    $

    kwonsk