As promised, a more elaborated reply.
Emulator -
- snip -
Well sort of, I could not get the install file to work at all.
- snip -
As discussed in the other posts.
When FPC is not setup correctly it will spit out junk, e.g. garbage in garbage out
Cross Compiler - I followed the steps outlined by ALB42, but I kept failing on the last step. I'm not sure what in the previous steps was causing the issue. I can see from youtube others have gotten this working so I don't want to waste anyone's time with something I'm just not getting right. VASM/VLINK seemed to set up fine and I was failing on the Free Pascal compile so maybe that's what you are seeing too.
It is not every day that I update the binutils and/or verify my setup scripts. Questions like yours is always motivation to check them out and verify if they still work.
That is when I noticed that I ran into errors myself as well. So thank you for having put my attention to that.
Thus, it seems not your wrong doing.
Docker - So I relegated myself to the ALB42's Docker. The docker has it's own issues of pain points, but it's very nice having a whole set up to VLC into and just compile the code to the Amiga 68k target and have it work.
Thank you for letting know that the docker worked for you.
Now that I actually had an Amiga Emulator up, I copied over the binary and everything seems to work! So at very least I can report that the issue with file writing and reading to the current directory was addressed at some point between 3.0.0 and now.
There have been a lot of changes/improvements over the years (3.0.0 was released in 2015 !).
I can't remember if reading/writing files was stil one of the issues but back then we were constantly working with Free Pascal from trunk as errors got fixed/reported when they were encountered.
I'll continue checking here though and can test anything you need might need me to. It would still be much nicer to have the cross compiler up instead of using the Docker, but at least I have a pathway. Would not have got there without you and I very very much appreciate it! I'm sure the Amiga hobbyists do too!
If it would help you (and others out) out then I am more than happy to put up a complete list of instructions that you could follow step by step starting from scratch.
In fact I was already starting to make preparations to do that because as said I do not check my scripts every day and for sure do not update my (working) installation that often (usually I only need to update my scripts when a new version of Free Pascal is released).
In the process of doing so I seem to have ran into the same issue that you seem to have so I need a little more time to verify everything and make sure all is working as intended. Thus, in case interested just let me know and I'll post as soon as is possible.
fwiw: writing that something does not work is not very helpful without being able to see the actual errors so in case you run into issue then please post some output from the compiler and/or build process. That is the most quickest way to be able to try and replicate the issue and to come up with a solution. In a similar fashion details of the host you use as well as your the input you used to generate the error are important as well. There are so many different setups and so few crystal balls left in the world