rknn_model_zoo
Posted: 2024-08-24 2:47
通过./build-linux.sh -t rv1106 -a armv7l -d yolov5,编译报错:
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_11c64/fast"
/usr/bin/make -f CMakeFiles/cmTC_11c64.dir/build.make CMakeFiles/cmTC_11c64.dir/build
make[1]: Entering directory '/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_11c64.dir/testCCompiler.c.o
/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc -o CMakeFiles/cmTC_11c64.dir/testCCompiler.c.o -c /home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_11c64
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_11c64.dir/link.txt --verbose=1
/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc CMakeFiles/cmTC_11c64.dir/testCCompiler.c.o -o cmTC_11c64
/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: /home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/../libexec/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/liblto_plugin.so: error loading plugin: /home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/../libexec/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_11c64.dir/build.make:97: recipe for target 'cmTC_11c64' failed
make[1]: *** [cmTC_11c64] Error 1
make[1]: Leaving directory '/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_11c64/fast' failed
make: *** [cmTC_11c64/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeOutput.log".
See also "/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeError.log".
请问是怎么回事,非常感谢回复
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_11c64/fast"
/usr/bin/make -f CMakeFiles/cmTC_11c64.dir/build.make CMakeFiles/cmTC_11c64.dir/build
make[1]: Entering directory '/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_11c64.dir/testCCompiler.c.o
/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc -o CMakeFiles/cmTC_11c64.dir/testCCompiler.c.o -c /home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_11c64
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_11c64.dir/link.txt --verbose=1
/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc CMakeFiles/cmTC_11c64.dir/testCCompiler.c.o -o cmTC_11c64
/home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: /home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/../libexec/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/liblto_plugin.so: error loading plugin: /home/hang/rv_1106_nfs/arm-rockchip830-linux-uclibcgnueabihf/bin/../libexec/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_11c64.dir/build.make:97: recipe for target 'cmTC_11c64' failed
make[1]: *** [cmTC_11c64] Error 1
make[1]: Leaving directory '/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_11c64/fast' failed
make: *** [cmTC_11c64/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeOutput.log".
See also "/home/hang/rv_1106_nfs/rknn_model_zoo/build/build_rknn_yolov5_demo_rv1106_linux_armv7l_Release/CMakeFiles/CMakeError.log".
请问是怎么回事,非常感谢回复