[SOLVED] how to build the compiler with debug info lazarus / 64-FPC development ---------------------------------------------------------------------- Key-Real · 2024-04-22 08:21 $ ./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 $00000000004EB13A: EAccessViolation: Access violation   $00000000004EB13A perhaps if I compile with debug symbols, we can fix this? ---------------------------------------------------------------------- Eugene Loza · 2024-04-22 08:24 If you are using FPCUpDeluxe you can simply check this checkbox: ---------------------------------------------------------------------- Key-Real · 2024-04-22 08:25 and if not? ---------------------------------------------------------------------- Key-Real · 2024-04-22 08:35 I'm compiling my own compiler. FPCDeluxe is installing from the official repo?!?!?!? ---------------------------------------------------------------------- Laksen · 2024-04-22 08:45 You can add OPTNEW="-gl" to your make command. This will be used when building the crosscompiler RTL and compiler ---------------------------------------------------------------------- Key-Real · 2024-04-23 07:12 $make compiler_cycle CPU_TARGET=mipsel OS_TARGET=ps1 OPT="-O- -CR -glv -dEXTDEBUG" CROSSOPT="-O- -g-" ALLOW_WARNINGS=1