Access violation in compiler!
https://gitlab.com/Key-Real/source
$ ./compiler/ppcrossmipsel test.pas -Fu./rtl/ps1 -Fu./rtl/inc -Tps1 -a -XP/usr/local/mipsel-unknown-elf/bin/mipsel-unknown-elf- -Cfnone
Warning: Source OS Redefined!
Free Pascal Compiler version 3.3.1 [2024/04/22] for mipsel
Copyright (c) 1993-2024 by Florian Klaempfl and others
Target OS: PlayStation 1 for MIPSEL
Compiling test.pas
test.pas(1,6) Error: Compilation raised exception internally
Fatal: Compilation aborted
An unhandled exception occurred at $00000000004EE58A:
EAccessViolation: Access violation
$00000000004EE58A push, line 1935 of symdef.pas
host: arch linux 64bit intel
Build binutils Download a recent version of binutils from https://ftp.gnu.org/gnu/binutils/ and build in a separate build directory:
$<build path>/configure --prefix=/usr/local/mipsel-unknown-elf --target=mipsel-unknown-elf --with-float=soft
$make -j(nproc)
$sudo make install
compile from my repo source:
$make all CPU_TARGET=mipsel OS_TARGET=ps1 OPTNEW="-gl"
$ ./compiler/ppcrossmipsel test.pas -Fu./rtl/ps1 -Fu./rtl/inc -Tps1 -a -XP/usr/local/mipsel-unknown-elf/bin/mipsel-unknown-elf- -Cfnone
!
an internal error with code would be nice, so i knew what i did wrong