Investigate the use of Lazarus for windows to develop and debug WSL2 executables:
The task is to investigate whether it is possible without additional development.
The following questions need to be answered:
- Can a linux FPC-generated 'hello world' be run unmodified on WSL-2 ?
- Can the linux version of FPC be installed and run unmodified on WSL2 ?
In particular: the program and compiler issue direct kernel calls.
We need to know if this is working, or if a LIBC linked version of the Linux binaries is needed.
- Can a windows executable execute a WSL2 program, in particular, the compiler.
If yes, this must be demonstrated this using a Win32 FPC program.
If not, document what the problems are.
- Can the Lazarus IDE execute the WSL2 linux compiler ?
- Can a windows executable execute & debug a WSL2 program using WSL2 gdb ?
(This is assuming that a WSL2 version of gdb exists. If not, document this.).
In particular, can Lazarus use the WSL2 gdb if such exists.
- Can the FPC windows 64-bit compiler cross-compile a -Tlinux program using WSL 2. If yes, how ?
Each of the steps should be documented with clearly written how-to instructions, which we can verify.
- In the case of negative answers to any of the above, document what is a possible approach to work around the limitations.
Publish and document all the results in a wiki page: