Yes, it's possible to cross-compile for DOS on an M3 iMac, but you need to install the DOS targets in Free Pascal Compiler (FPC). The error occurs because the DOS target and 8086 processor support aren't compiled into FPC by default.
Here are your options:
1. **Rebuild FPC with DOS support**: You'll need to download the FPC source and compile it with DOS targets enabled. This involves configuring the build process to include the DOS target.
2. **Install DOS units separately**: If your FPC installation supports it, you might be able to install the DOS units separately through the FPC installer or package manager.
3. **Use an existing DOS-enabled FPC build**: Look for a pre-built version of FPC that includes DOS support. Some distributions provide packages with additional targets.
4. **Use the VM approach**: Since you already have Debian in UTM, you could install FPC in the VM with DOS support enabled. Inside the Debian VM, you can configure FPC to build DOS executables.
For option 4, inside your Debian VM, you would typically run:
```bash
fpc -Tdos -Parm -O1 -Sg fdver.pas
```
Note that you should use `-Parm` (for ARM) instead of `-Parm8086` when compiling in the ARM VM, but the target remains `-Tdos`.
The `-Parm8086` you're using is incorrect syntax - the processor type should be specified as `-Parm` for ARM architectures, and FPC will handle the DOS target translation internally when properly configured.
Att.