Lichee-Pi / LicheeDan_K210_examples

LicheeDan_K210_examples
Apache License 2.0
26 stars 37 forks source link

ai_demo_sim Error #1

Open sw0813 opened 5 years ago

sw0813 commented 5 years ago

[ 98%] Building C object CMakeFiles/ai_demo_sim.dir/src/ai_demo_sim/region_layer.c.obj [100%] Linking C executable ai_demo_sim d:/lichee_dan/toolchain_k210/bin/../lib/gcc/riscv64-unknown-elf/7.2.0/crtbegin.o: In function __do_global_dtors_aux': crtstuff.c:(.text+0x5c): relocation truncated to fit: R_RISCV_CALL against undefined symbol__deregister_frame_info' d:/lichee_dan/toolchain_k210/bin/../lib/gcc/riscv64-unknown-elf/7.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: final link failed: Symbol needs debug section which does not exist collect2.exe: error: ld returned 1 exit status CMakeFiles\ai_demo_sim.dir\build.make:188: recipe for target 'ai_demo_sim' failed mingw32-make[2]: [ai_demo_sim] Error 1 CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/ai_demo_sim.dir/all' failed mingw32-make[1]: [CMakeFiles/ai_demo_sim.dir/all] Error 2 Makefile:82: recipe for target 'all' failed mingw32-make: *** [all] Error 2

xelll commented 5 years ago

hi, now we move this project to https://github.com/sipeed/LicheeDan_K210_examples,you can test this code.

sw0813 commented 5 years ago

The code from [https://github.com/sipeed/LicheeDan_K210_examples] still not working. [100%] Linking C executable ai_demo_sim d:/lichee_dan/toolchain_k210/bin/../lib/gcc/riscv64-unknown-elf/7.2.0/crtbegin.o: In function__do_global_dtors_aux': crtstuff.c:(.text+0x5c): relocation truncated to fit: R_RISCV_CALL against undefined symbol __deregister_frame_info' d:/lichee_dan/toolchain_k210/bin/../lib/gcc/riscv64-unknown-elf/7.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: final link failed: Symbol needs debug section which does not exist collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [CMakeFiles\ai_demo_sim.dir\build.make:189: ai_demo_sim] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:72: CMakeFiles/ai_demo_sim.dir/all] Error 2 mingw32-make: *** [Makefile:83: all] Error 2

xelll commented 5 years ago

now we use standalone sdk, and it should use toolchain with version 8.2, i see you use 7.2, please update your toolcahin.