Recent

Author Topic: Lazarus for Windows on aarch64 (ARM64) - Native Compiler  (Read 58908 times)

ydd

  • Jr. Member
  • **
  • Posts: 85
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #240 on: August 05, 2026, 08:57:20 pm »
You need FPC and Lazarus trunk/main.

now I'm getting such error:

ydd

  • Jr. Member
  • **
  • Posts: 85
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #241 on: August 06, 2026, 06:54:30 pm »
I've tried to install Unleashed version, but got such error:


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #242 on: August 07, 2026, 12:39:14 pm »
A test branch for FpDebug. (Hope it survived the rebase). Please test.

https://gitlab.com/martin_frb/lazarus/-/compare/main...dbg%2Fwin-aarch64-fpdebug?from_project_id=28419588

- Should work: Breakpoints, stepping, watches, locals, basic stack (probably threads)
- not stepping into finally blocks (not even without exception / well, might work with F7, since they are a subroutine)
- Notify on raise exception / BUT NOT, stepping to except/finally
- NO assembler
- NO watchpoints
- NO modify variables

Given the speed of my QEMU setup, I have done almost no testing.

----

Aarch64 should not increase the PC when hitting a breakpoint (or so says any research I did).
=> But on my setup, Windows reports an increased PC.

If breakpoints don't work for you (and possible even the target reports errors after silently passing one), then try the branch without the last commit "FpDebug: (Aarch64/Win) Adjust PC"

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #243 on: August 07, 2026, 02:11:22 pm »
Wow. I can debug !! Thanks very much. Quick work also.
I did not do an extensive test, but the basics are working (like breakpoints and inspect).
Very very good work !

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #244 on: August 07, 2026, 02:13:35 pm »
Wow. I can debug !! Thanks very much. Quick work also.
I did not do an extensive test, but the basics are working (like breakpoints and inspect).
Very very good work !

That is with the "adjust pc" commit?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #245 on: August 07, 2026, 05:59:59 pm »
Yes, I tested the latest sources !

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #246 on: August 07, 2026, 06:24:02 pm »
Added to main.

Btw, the GDB that is in the fpc/bin/aarch64-win64 dir after installing with FpcUpDeluxe => that doesn't like the fileformat. Seems to be a gdb for x86? However that ended up there.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #247 on: August 07, 2026, 06:37:44 pm »
Will solve. Thanks again for your work.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus for Windows on aarch64 (ARM64) - Native Compiler
« Reply #248 on: August 07, 2026, 07:41:36 pm »
Will solve. Thanks again for your work.

Well thanks for yours too. Without FpcUpDeluxe, I might never have gotten to it.  But thanks to your updates, it was one click to get all the infrastructure, all the dependencies, everything.

And, it left me with a git based install, I could just add my local remote, pull in the changes I had on my main PC, and start testing.

 

TinyPortal © 2005-2018