Skip to content

reent.h: No such file or directory #16

@lhmax2010

Description

@lhmax2010

我们依照这个方法在LicheePi4A的板子上面进行编译的

apt install git make cmake binutils-riscv64-unknown-elf gcc-riscv64-unknown-elf picolibc-riscv64-unknown-elf
git clone https://github.com/sipeed/RV-Debugger-BL702
git submodule update --init
cd RV-Debugger-BL702/firmware/bl_mcu_sdk
echo "add_compile_options(-specs=picolibc.specs)" >> tools/cmake/compiler_flags.cmake
echo "add_link_options(-specs=picolibc.specs)" >> tools/cmake/compiler_flags.cmake
make

结果报错了
[ 97%] Building C object samples/usb2uartjtag/CMakeFiles/usb2uartjtag_bl702.elf.dir/home/debian/RV-Debugger-BL702/firmware/bl_mcu_sdk/bsp/bsp_common/platform/syscalls.c.obj
/home/debian/RV-Debugger-BL702/firmware/bl_mcu_sdk/bsp/bsp_common/platform/syscalls.c:1:10: fatal error: reent.h: No such file or directory
1 | #include <reent.h>
| ^~~~~~~~~
compilation terminated.
make[3]: *** [samples/usb2uartjtag/CMakeFiles/usb2uartjtag_bl702.elf.dir/build.make:174: samples/usb2uartjtag/CMakeFiles/usb2uartjtag_bl702.elf.dir/home/debian/RV-Debugger-BL702/firmware/bl_mcu_sdk/bsp/bsp_common/platform/syscalls.c.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/debian/RV-Debugger-BL702/firmware/bl_mcu_sdk/build'
make[2]: *** [CMakeFiles/Makefile2:153: samples/usb2uartjtag/CMakeFiles/usb2uartjtag_bl702.elf.dir/all] Error 2
make[2]: Leaving directory '/home/debian/RV-Debugger-BL702/firmware/bl_mcu_sdk/build'
make[1]: *** [Makefile:91: all] Error 2
make[1]: Leaving directory '/home/debian/RV-Debugger-BL702/firmware/bl_mcu_sdk/build'
make: *** [Makefile:52: build] Error 2

能看下是什么原因么?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions