Skip to content

[Bug] Build failure in examples/standalone: invalid hex number '(CONFIG_SYS_SDRAM_BASE + SZ_16M)' #62

@Lincolnzheng

Description

@Lincolnzheng

Description

I am unable to compile the examples/standalone target for the StarFive VisionFive 2 board. The build fails with a linker error stating invalid hex number.

Environment

  • Board: StarFive VisionFive 2
  • Build Target: examples/standalone/
  • Toolchain: riscv64-linux-gnu- (GCC 13 via Ubuntu package)
  • OS: Ubuntu Linux (x86_64 host)

Steps to Reproduce

  1. Clean the build environment:
    make distclean

  2. Configure for the board:
    make starfive_visionfive2_defconfig

  3. Verify configuration (Ensured examples are enabled):
    make menuconfig

  4. Run the build command for standalone examples:
    make CROSS_COMPILE=riscv64-linux-gnu- examples/standalone/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions