Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
BSP
K210
请教K210编译报错
发布于 2019-11-25 22:38:19 浏览:3757
订阅该版
[tocm] 如题,使用的最新的源码,在k210的bsp下配置好工具链 官网直接下载的编译工具链:[https://kendryte.com/downloads/](https://kendryte.com/downloads/) 后直接scons编译报错,如下为编译报错(后面很多重复的没有截取了): ``` > scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build\applications\main.o CC build\applications\mnt.o CC build\driver\board.o CC build\driver\camera\drv_ov5640.o CC build\driver\drv_gpio.o CC build\driver\drv_interrupt.o CC build\driver\drv_io_config.o CC build\driver\drv_lcd.o CC build\driver\drv_spi.o CC build\driver\drv_uart.o CC build\driver\heap.o CC build\kernel\components\dfs\filesystems\devfs\devfs.o CC build\kernel\components\dfs\filesystems\elmfat\dfs_elm.o CC build\kernel\components\dfs\filesystems\elmfat\ff.o CC build\kernel\components\dfs\filesystems\elmfat\option\ccsbcs.o CC build\kernel\components\dfs\src\dfs.o CC build\kernel\components\dfs\src\dfs_file.o CC build\kernel\components\dfs\src\dfs_fs.o CC build\kernel\components\dfs\src\dfs_posix.o CC build\kernel\components\dfs\src\poll.o CC build\kernel\components\dfs\src\select.o CC build\kernel\components\drivers\misc\pin.o CC build\kernel\components\drivers\serial\serial.o CC build\kernel\components\drivers\spi\sfud\src\sfud.o CC build\kernel\components\drivers\spi\sfud\src\sfud_sfdp.o CC build\kernel\components\drivers\spi\spi_core.o CC build\kernel\components\drivers\spi\spi_dev.o CC build\kernel\components\drivers\spi\spi_flash_sfud.o CC build\kernel\components\drivers\spi\spi_msd.o CC build\kernel\components\drivers\src\completion.o CC build\kernel\components\drivers\src\dataqueue.o CC build\kernel\components\drivers\src\pipe.o CC build\kernel\components\drivers\src ingblk_buf.o CC build\kernel\components\drivers\src ingbuffer.o CC build\kernel\components\drivers\src\waitqueue.o CC build\kernel\components\drivers\src\workqueue.o CC build\kernel\components\finsh\cmd.o CC build\kernel\components\finsh\msh.o CC build\kernel\components\finsh\msh_file.o CC build\kernel\components\finsh\shell.o CC build\kernel\components\libc\compilers
ewlib\libc.o CC build\kernel\components\libc\compilers
ewlib\libc_syms.o CC build\kernel\components\libc\compilers
ewlib\stdio.o CC build\kernel\components\libc\compilers
ewlib\syscalls.o CC build\kernel\components\libc\compilers
ewlib\time.o AS build\kernel\libcpu isc-v\common\context_gcc.o CC build\kernel\libcpu isc-v\common\cpuport.o CC build\kernel\libcpu isc-v\k210\cpuport_smp.o CC build\kernel\libcpu isc-v\k210\interrupt.o AS build\kernel\libcpu isc-v\k210\interrupt_gcc.o AS build\kernel\libcpu isc-v\k210\startup_gcc.o CC build\kernel\libcpu isc-v\k210\tick.o CC build\kernel\src\clock.o CC build\kernel\src\components.o CC build\kernel\src\cpu.o CC build\kernel\src\device.o CC build\kernel\src\idle.o CC build\kernel\src\ipc.o CC build\kernel\src\irq.o CC build\kernel\src\kservice.o CC build\kernel\src\mempool.o CC build\kernel\src\object.o CC build\kernel\src\scheduler.o CC build\kernel\src\signal.o CC build\kernel\src\slab.o CC build\kernel\src\thread.o CC build\kernel\src\timer.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\bsp\entry.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\bsp\entry_user.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\bsp\sleep.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\aes.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\clint.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\dmac.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\dvp.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\fft.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\fpioa.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\gpio.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\gpiohs.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\i2c.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\i2s.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\kpu.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\plic.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\pwm.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers tc.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\sha256.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\spi.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\sysctl.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\timer.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\uart.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\uarths.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\utils.o CC build\packages\kendryte-sdk-v0.5.5\kendryte-standalone-sdk\lib\drivers\wdt.o LINK rtthread.elf e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-assert.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-assert.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-atexit.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-atexit.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fclose.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fclose.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fflush.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fflush.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fileno.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fileno.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-findfp.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-findfp.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fini.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fini.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fiprintf.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fiprintf.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fopen.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fopen.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fseek.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fseek.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fseeko.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fseeko.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fwalk.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fwalk.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-getchar.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-getchar.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-impure.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-impure.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-lcltime.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-lcltime.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-lcltime_r.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-lcltime_r.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-makebuf.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-makebuf.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-malloc.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-malloc.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-memcmp.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-memcmp.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-memcpy.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-memcpy.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-memset.o): can't link hard-float modules with soft-float modules e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: failed to merge target specific data of file e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-memset.o) e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-mktime.o): can't link hard-float modules with soft-float modules ``` 可以看出是在链接rtthread.elf的时候报的错,具体原因为: `can't link hard-float modules with soft-float modules` 初步怀疑可能是编译的时候flag设置错了,以下为工程的`rtconfig.py`配置文件: ```python import os # toolchains options ARCH ='risc-v' CPU ='k210' CROSS_TOOL ='gcc' if os.getenv('RTT_ROOT'): RTT_ROOT = os.getenv('RTT_ROOT') else: RTT_ROOT = r'../..' # if os.getenv('RTT_CC'): # CROSS_TOOL = os.getenv('RTT_CC') if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' # EXEC_PATH = r'/opt/gnu-mcu-eclipse/riscv-none-gcc/8.2.0-2.1-20190425-1021/bin' EXEC_PATH = r'E:\RT_Thread_Env\tools\gnu_gcc\kendryte-toolchain\bin' else: print('Please make sure your toolchains is GNU GCC!') exit(0) # if os.getenv('RTT_EXEC_PATH'): # EXEC_PATH = os.getenv('RTT_EXEC_PATH') BUILD = 'release' if PLATFORM == 'gcc': # toolchains # PREFIX = 'riscv-none-embed-' PREFIX = 'riscv64-unknown-elf-' CC = PREFIX + 'gcc' CXX = PREFIX + 'g++' AS = PREFIX + 'gcc' AR = PREFIX + 'ar' LINK = PREFIX + 'gcc' TARGET_EXT = 'elf' SIZE = PREFIX + 'size' OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' DEVICE = ' -mcmodel=medany -march=rv64imafdc -mabi=lp64d' CFLAGS = DEVICE + ' -fno-common -ffunction-sections -fdata-sections -fstrict-volatile-bitfields' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,_start -T link.lds' CPATH = '' LPATH = '' if BUILD == 'debug': CFLAGS += ' -O0 -ggdb' AFLAGS += ' -ggdb' else: CFLAGS += ' -O2 -Os' CXXFLAGS = CFLAGS DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtt.asm
' POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin
' + SIZE + ' $TARGET
' ``` 求大佬指点一二
查看更多
6
个回答
默认排序
按发布时间排序
aozima
2019-11-25
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
hard-float soft-float 代码和C库的编译方式不同,可以修改代码侧的编译参数。 可以研究下编译器浮点相关的参数
来日方长
2019-11-25
这家伙很懒,什么也没写!
>hard-float soft-float 就是这一块有点头大 不知道怎么下手
来日方长
2019-11-25
这家伙很懒,什么也没写!
>hard-float soft-float 估计是LFLAGS中需要加上某个参数 但是就是不知道咋加 贼难受
来日方长
2019-11-27
这家伙很懒,什么也没写!
经测试 将rtconfig.py配置文件中的 ``` DEVICE = ' -mcmodel=medany -march=rv64imafdc -mabi=lp64d'[/code]改为[code]DEVICE = ' -mcmodel=medany -march=rv64imafdc -mabi=lp64f' ``` 避免了`can't link hard-float modules with soft-float modules`错误,但是会新出来一些错误: ``` LINK rtthread.elf e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fclose.o): in function `.L3': fclose.c:(.text._fclose_r+0x1e): undefined reference to `pthread_setcancelstate' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: fclose.c:(.text._fclose_r+0x3c): undefined reference to `_lock_acquire_recursive' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fclose.o): in function `.L4': fclose.c:(.text._fclose_r+0x56): undefined reference to `_lock_release_recursive' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fclose.o): in function `.L6': fclose.c:(.text._fclose_r+0x62): undefined reference to `pthread_setcancelstate' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fclose.o): in function `.L11': fclose.c:(.text._fclose_r+0xd4): undefined reference to `_lock_release_recursive' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: fclose.c:(.text._fclose_r+0xde): undefined reference to `_lock_close_recursive' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: fclose.c:(.text._fclose_r+0xee): undefined reference to `pthread_setcancelstate' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fflush.o): in function `.L47': fflush.c:(.text._fflush_r+0x24): undefined reference to `pthread_setcancelstate' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: fflush.c:(.text._fflush_r+0x42): undefined reference to `_lock_acquire_recursive' e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: e:/rt_thread_env/tools/gnu_gcc/kendryte-toolchain/bin/../lib/gcc/riscv64-unknown-elf/8.2.0/../../../../riscv64-unknown-elf/lib\libc.a(lib_a-fflush.o): in function `.L49': fflush.c:(.text._fflush_r+0x6a): undefined reference to `_lock_release_recursive' ```
来日方长
2019-11-27
这家伙很懒,什么也没写!
普天同庆 普天同庆 根据论坛里边的要求换了编译工具链一切正常 具体的工具链为: https://github.com/ilg-archived/riscv-none-gcc/releases 用的是`gnu-mcu-eclipse-riscv-none-gcc-8.2.0-2.2-20190521-0004-win64.zip`这个 除此之外只需要在`rtconfig.py`中配置好工具链的路径即可,别的一概不需要动!!! 另外 `k210bsp`下的默认`menuconfig`不要作死修改 切记 切记!!!
tyustli
2019-11-29
这家伙很懒,什么也没写!
>普天同庆 普天同庆 根据论坛里边的要求换了编译工具链一切正常 注意看 `readme.md` 文件,里面有说需要设置工具链的
撰写答案
登录
注册新账号
关注者
0
被浏览
3.8k
关于作者
来日方长
这家伙很懒,什么也没写!
提问
14
回答
35
被采纳
0
关注TA
发私信
相关问题
1
STM32 407 串口接收数据 系统卡死
2
RTT nrf24l01 设备驱动程序
3
stm32f10x串口只能发送数据,无法接收
4
第一次尝试移植rt-thread 到stm32F103系列问题
5
有人把stm32L07xx的bsp移到rtt上来了吗?求一个
6
rt-thread线程调度异常在stm32f103芯片上
7
RTT是否支持STM32F429
8
请问谁有 STM32F40x HAL + RT-THREAD 模板
9
rt-thread在stm32f411下的移植问题
10
针对STM32F7系列平台的MPU,Cache特性,需要注意哪些问题?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
如何在master上的BSP中添加配置yml文件
2
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
3
RT-Thread 发布 EtherKit开源以太网硬件!
4
rt-thread使用cherryusb实现虚拟串口
5
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
14
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部