Recent

Author Topic: [SOLVED] how to build the compiler with debug info  (Read 532 times)

Key-Real

  • Full Member
  • ***
  • Posts: 242
[SOLVED] how to build the compiler with debug info
« on: April 22, 2024, 10:21:43 am »
$ ./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?
« Last Edit: April 22, 2024, 10:50:09 am by Key-Real »

Eugene Loza

  • Hero Member
  • *****
  • Posts: 690
    • My games in Pascal
Re: how to build the compiler with debug info?
« Reply #1 on: April 22, 2024, 10:24:59 am »
If you are using FPCUpDeluxe you can simply check this checkbox:
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Key-Real

  • Full Member
  • ***
  • Posts: 242
Re: how to build the compiler with debug info?
« Reply #2 on: April 22, 2024, 10:25:31 am »
and if not?

Key-Real

  • Full Member
  • ***
  • Posts: 242
Re: how to build the compiler with debug info?
« Reply #3 on: April 22, 2024, 10:35:57 am »
I'm compiling my own compiler.

FPCDeluxe is installing from the official repo?!?!?!?

Laksen

  • Hero Member
  • *****
  • Posts: 758
    • J-Software
Re: how to build the compiler with debug info?
« Reply #4 on: April 22, 2024, 10:45:18 am »
You can add OPTNEW="-gl" to your make command. This will be used when building the crosscompiler RTL and compiler

Key-Real

  • Full Member
  • ***
  • Posts: 242
Re: [SOLVED] how to build the compiler with debug info
« Reply #5 on: April 23, 2024, 09:12:33 am »
$make compiler_cycle CPU_TARGET=mipsel OS_TARGET=ps1 OPT="-O- -CR -glv -dEXTDEBUG" CROSSOPT="-O- -g-" ALLOW_WARNINGS=1

 

TinyPortal © 2005-2018