Skip to content

RISC compile error / Cross compilation lazreport/memdataset error

  • Lazarus/FPC Version: lazarus 3.4,fpc 3.3.1
  • Operating System: windows 10 target Operating System: linux
  • CPU / Bitness: i5 64bit target CPU:riscv64

What happens

Debug: D:\fpcupdeluxe34_new\lazarus\components\ideintf\units\riscv64-linux\gtk2\formeditingintf.s: Assembler messages:
(2869,0) Error: linker: Error: illegal operands lui ireg32,1' (2870,0) Error: linker: Error: illegal operands addiw ireg32,ireg32,-1736'
(2871,0) Error: linker: Error: illegal operands add ireg33,x5,ireg32' (2872,0) Error: linker: Error: illegal operands ld x5,0(ireg33)'
(2944,0) Error: linker: Error: illegal operands lui ireg32,1' (2945,0) Error: linker: Error: illegal operands addiw ireg32,ireg32,-1736'
(2946,0) Error: linker: Error: illegal operands add ireg33,x5,ireg32' (2947,0) Error: linker: Error: illegal operands ld x5,0(ireg33)'
(3019,0) Error: linker: Error: illegal operands lui ireg32,1' (3020,0) Error: linker: Error: illegal operands addiw ireg32,ireg32,-1736'
(3021,0) Error: linker: Error: illegal operands add ireg33,x5,ireg32' (3022,0) Error: linker: Error: illegal operands ld x5,0(ireg33)'
(3034,0) Error: linker: Error: illegal operands lui ireg32,1' (3035,0) Error: linker: Error: illegal operands addiw ireg32,ireg32,-1432'
(3036,0) Error: linker: Error: illegal operands add ireg33,x5,ireg32' (3037,0) Error: linker: Error: illegal operands ld x5,0(ireg33)'
formeditingintf.pas(845,0) Error: Error while assembling exitcode 1
formeditingintf.pas(845,0) Verbose: There were 2 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: D:\fpcupdeluxe34_new\fpc\bin\x86_64-win64\ppcrossrv64.exe returned an error exitcode>

What did you expect

Steps to reproduce

Edited by liao bozhi
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information