https://bugs.kde.org/show_bug.cgi?id=503419

            Bug ID: 503419
           Summary: Cannot build valgrind 3.25 on RISC-V board (Error:
                    illegal operands `ld t0,OFFSET_riscv64_pc-2048(s0)')
    Classification: Developer tools
           Product: valgrind
           Version: 3.25 GIT
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: martin.li...@hey.com
  Target Milestone: ---

I've just noticed the following build failure on Ubuntu 25.04 on VisionFive2
board:

```
$ gcc --version
gcc (Ubuntu 14.2.0-19ubuntu2) 14.2.0
$ gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
-I../VEX/pub -DVGA_riscv64=1 -DVGO_linux=1 -DVGP_riscv64_linux=1
-DVGPV_riscv64_linux_vanilla=1  -I../coregrind
-DVG_LIBDIR="\"/home/ubuntu/.bin/libexec/valgrind"\"
-DVG_PLATFORM="\"riscv64-linux\""  -g  -MT
m_dispatch/libcoregrind_riscv64_linux_a-dispatch-riscv64-linux.o -MD -MP -MF
m_dispatch/.deps/libcoregrind_riscv64_linux_a-dispatch-riscv64-linux.Tpo -c -o
m_dispatch/libcoregrind_riscv64_linux_a-dispatch-riscv64-linux.o `test -f
'm_dispatch/dispatch-riscv64-linux.S' || echo
'./'`m_dispatch/dispatch-riscv64-linux.S
m_dispatch/dispatch-riscv64-linux.S: Assembler messages:
m_dispatch/dispatch-riscv64-linux.S:170: Error: illegal operands `ld
t0,OFFSET_riscv64_pc-2048(s0)'
make[3]: *** [Makefile:4349:
m_dispatch/libcoregrind_riscv64_linux_a-dispatch-riscv64-linux.o] Error 1
```

Similarly, Clang also rejects the assembly code:
```
m_dispatch/dispatch-riscv64-linux.S:170:31: error: unexpected token
 ld t0, OFFSET_riscv64_pc-2048(s0)
                              ^
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to