kendryte-tensorflow也有同样的问题。补丁: diff --git a/tensorflow/lite/tools/make/targets/kendryte_makefile.inc b/tensorflow/lite/tools/make/targets/kendryte_makefile.inc index 712e314..c84a58a 100644 --- a/tensorflow/lite/tools/make/targets/kendryte_makefile.inc +++ b/tensorflow/lite/tools/make/targets/kendryte_makefile.inc @@ -1,19 +1,21 @@ # Settings for Kendryte platforms. ifeq ($(TARGET), kendryte) - TARGET_ARCH := rv64imafdc + TARGET_ARCH := rv64imafc TARGET_TOOLCHAIN_PREFIX := riscv64-unknown-elf- CXXFLAGS += \ -ffunction-sections \ -fdata-sections \ -mcmodel=medany \ - -march=rv64imafdc \ + -mabi=lp64f \ + -march=rv64imafc \ -fno-common CCFLAGS += \ -ffunction-sections \ -fdata-sections \ -mcmodel=medany \ - -march=rv64imafdc \ + -mabi=lp64f \ + -march=rv64imafc \ -fno-common LIBS += -ldl endif