91
FPC development / Compiler raised internal error when compiling RISCV and LoongArch
« Last post by TYDQ on May 18, 2025, 06:00:10 pm »These days I have tried to compile my DIY efi app(Absolutely efi app,can only be executed in UEFI Firmware)(compiled elf file Will be translated to efi file,fpc compile the elf file and it will be translated to efi app by my elf2efi) as my app.
However, compiler terminated compiling when compiling elf file for RISCV64 or LoongArch64 and give a error like this(LoongArch64 is same when using bash build.sh loongarch64,RISCV64 is using bash build.sh riscv64):
(To build it easily,I write the build.sh,And my efi app source code and builds.sh in zip file is stubbed in this topic)
These error occurs when compiling RISCV and LoongArch ELF which FPC already supported,other platform cannot occur this problem,this error is architectures-specfic.
I don't know whether my code is wrong or the fpc source code is wrong,I have compile the fpc source code by myself and git clone the fpc source code newest trunk.If my code is wrong,you should point out where.
However, compiler terminated compiling when compiling elf file for RISCV64 or LoongArch64 and give a error like this(LoongArch64 is same when using bash build.sh loongarch64,RISCV64 is using bash build.sh riscv64):
(To build it easily,I write the build.sh,And my efi app source code and builds.sh in zip file is stubbed in this topic)
- Error: Compilation raised exception internally
- An unhandled exception occurred at $0000000000465BB7:
- EListError: List index exceeds bounds (0)
- $0000000000465BB7
- $0000000000465BF2
- $00000000006222D9
- $00000000006BA8EE
- $00000000006235A1
- $00000000006A6CA4
- $00000000006235A1
- $00000000006B5FD5
- $00000000006B7688
- $00000000006B90EE
- $00000000006B7655
- $00000000006B7D34
- $00000000006235A1
- $00000000005E994D
- $00000000006235A1
- $00000000006A1EEA
- $00000000006235A1
- fpintres.pas(3,10) Fatal: Internal error 2006012304
- Fatal: Compilation aborted
- sysinit.pas(3,10) Fatal: Internal error 2006012304
- Fatal: Compilation aborted
- si_prc.pas(3,10) Fatal: Internal error 2006012304
- Fatal: Compilation aborted
- kernel.pas(1,16) Fatal: Internal error 2006012304
- Fatal: Compilation aborted
I don't know whether my code is wrong or the fpc source code is wrong,I have compile the fpc source code by myself and git clone the fpc source code newest trunk.If my code is wrong,you should point out where.