Guest User

empty devicetree build logs for visionfive2 zephyr hello-world application

a guest
Nov 25th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.26 KB | None | 0 0
  1. $ west build -p always -b visionfive2_jh7110 samples/hello_world/
  2. -- west build: making build dir /home/kanak/zephyrproject/zephyr/build pristine
  3. -- west build: generating a build system
  4. Loading Zephyr default modules (Zephyr base).
  5. -- Application: /home/kanak/zephyrproject/zephyr/samples/hello_world
  6. -- CMake version: 3.22.1
  7. -- Found Python3: /home/kanak/zephyrproject/.zephyr-env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
  8. -- Cache files will be written to: /home/kanak/.cache/zephyr
  9. -- Zephyr version: 3.5.99 (/home/kanak/zephyrproject/zephyr)
  10. -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
  11. -- Board: visionfive2_jh7110
  12. -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
  13. -- Found host-tools: zephyr 0.16.3 (/home/kanak/zephyr-sdk-0.16.3)
  14. -- Found toolchain: zephyr 0.16.3 (/home/kanak/zephyr-sdk-0.16.3)
  15. -- Found Dtc: /home/kanak/zephyr-sdk-0.16.3/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
  16. -- Found BOARD.dts: /home/kanak/zephyrproject/zephyr/boards/riscv/visionfive2_jh7110/visionfive2_jh7110.dts
  17. -- Generated zephyr.dts: /home/kanak/zephyrproject/zephyr/build/zephyr/zephyr.dts
  18. -- Generated devicetree_generated.h: /home/kanak/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h
  19. -- Including generated dts.cmake file: /home/kanak/zephyrproject/zephyr/build/zephyr/dts.cmake
  20. Parsing /home/kanak/zephyrproject/zephyr/Kconfig
  21. Loaded configuration '/home/kanak/zephyrproject/zephyr/boards/riscv/visionfive2_jh7110/visionfive2_jh7110_defconfig'
  22. Merged configuration '/home/kanak/zephyrproject/zephyr/samples/hello_world/prj.conf'
  23. Configuration saved to '/home/kanak/zephyrproject/zephyr/build/zephyr/.config'
  24. Kconfig header saved to '/home/kanak/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
  25. -- Found GnuLd: /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd (found version "2.38")
  26. -- The C compiler identification is GNU 12.2.0
  27. -- The CXX compiler identification is GNU 12.2.0
  28. -- The ASM compiler identification is GNU
  29. -- Found assembler: /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gcc
  30. -- Using ccache: /usr/bin/ccache
  31. CMake Warning at /home/kanak/zephyrproject/zephyr/CMakeLists.txt:853 (message):
  32.   No SOURCES given to Zephyr library: drivers__serial
  33.  
  34.   Excluding target from build.
  35.  
  36.  
  37. -- Configuring done
  38. -- Generating done
  39. -- Build files have been written to: /home/kanak/zephyrproject/zephyr/build
  40. -- west build: building application
  41. [1/90] Preparing syscall dependency handling
  42.  
  43. [3/90] Generating include/generated/version.h
  44. -- Zephyr version: 3.5.99 (/home/kanak/zephyrproject/zephyr), build: zephyr-v3.5.0-1913-g827732db0e04
  45. [85/90] Linking C executable zephyr/zephyr_pre0.elf
  46. FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/kanak/zephyrproject/zephyr/build/zephyr/zephyr_pre0.map
  47. : && ccache /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/riscv/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/kanak/zephyrproject/zephyr/build/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/riscv/core/libarch__riscv__core.a  zephyr/lib/libc/picolibc/liblib__libc__picolibc.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/drivers/timer/libdrivers__timer.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/rv64imac_zicsr_zifencei/lp64/medany"  -L/home/kanak/zephyrproject/zephyr/build/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcmodel=medany  -mabi=lp64  -march=rv64imac_zicsr_zifencei  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  -DPICOLIBC_LONG_LONG_PRINTF_SCANF  --specs=picolibc.specs  -lc  -lgcc && cd /home/kanak/zephyrproject/zephyr/build/zephyr && /usr/bin/cmake -E true
  48. /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: invalid origin for memory region ROM
  49. /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: invalid length for memory region ROM
  50. /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss' will not fit in region `RAM'
  51. /home/kanak/zephyr-sdk-0.16.3/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd:zephyr/linker_zephyr_pre0.cmd:44: undefined symbol `ROM_BASE' referenced in expression
  52. collect2: error: ld returned 1 exit status
  53. ninja: build stopped: subcommand failed.
  54. FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/kanak/zephyrproject/zephyr/build
Advertisement
Add Comment
Please, Sign In to add comment