Skip to content

[HELP] error building for rv-virt:nsh64 #20154

Description

@daniel-dlds

Description

I do a : ./tools/configure.sh -l rv-virt:nsh64

The last part of the build output is :

CC: libm/lib_gamma.c libm/lib_gamma.c:154:15: warning: declaration of 'sinpi' shadows a built-in function [-Wshadow]
154 | static double sinpi(double x)
| ^~~~~
CPP: /mnt/c/devtools/nuttxspace/nuttx/boards/risc-v/qemu-rv/rv-virt/scripts/ld.script-> /mnt/c/devtools/nuttxspace/nuttLD: nuttx
/opt/riscv/bin/riscv64-unknown-elf-ld: warning: /mnt/c/devtools/nuttxspace/nuttx/nuttx has a LOAD segment with RWX permissions
/opt/riscv/lib/gcc/riscv64-unknown-elf/16.1.0/libgcc.a(_clzsi2.o): in function __clzdi2': /mnt/c/devtools/riscv-gnu-toolchain/build-gcc-newlib-stage2/riscv64-unknown-elf/libgcc/../../.././gcc/libgcc/libgcc2.c:690:(.text+0x18): relocation truncated to fit: R_RISCV_HI20 against symbol __clz_tab' defined in .rodata section in /opt/riscv/lib/gcc/riscv64-unknown-elf/16.1.0/libgcc.a(_clz.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/16.1.0/libgcc.a(_udivdi3.o): in function __udivmodti4': /mnt/c/devtools/riscv-gnu-toolchain/build-gcc-newlib-stage2/riscv64-unknown-elf/libgcc/../../.././gcc/libgcc/libgcc2.c:1050:(.text+0x26): relocation truncated to fit: R_RISCV_HI20 against symbol __clz_tab' defined in .rodata section in /opt/riscv/lib/gcc/riscv64-unknown-elf/16.1.0/libgcc.a(_clz.o)
/opt/riscv/lib/gcc/riscv64-unknown-elf/16.1.0/libgcc.a(_ffssi2.o): in function __ffsdi2': /mnt/c/devtools/riscv-gnu-toolchain/build-gcc-newlib-stage2/riscv64-unknown-elf/libgcc/../../.././gcc/libgcc/libgcc2.c:501:(.text+0x1a): relocation truncated to fit: R_RISCV_HI20 against symbol __clz_tab' defined in .rodata section in /opt/riscv/lib/gcc/riscv64-unknown-elf/16.1.0/libgcc.a(_clz.o)
Memory region Used Size Region Size %age Used
make[1]: *** [Makefile:195: nuttx] Error 1
make: *** [tools/Unix.mk:572: nuttx] Error 2

Don't have enough experience to know what this is.

Verification

  • I have verified before submitting the report.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions