Page 4 of 6
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 11:56
by Badwolf
exxos wrote: 26 Oct 2025 21:43
dml wrote: 26 Oct 2025 21:30
...
Anyway the makefile as it is can't work from Linux and probably not from Cygwin either. It is set up to build under TOS with GEMDOS formatted paths. Should be fixable assuming the tools all work. ....or it could be a rabbithole best done from scratch :)
Isn't that what @Badwolf tried though here in Linux ?
viewtopic.php?p=135837#p135837
For some reason everything just works fine for me, but your setup is behaving differently. But it's a different environment and a different OS, so perhaps not unexpected.
Perhaps try specifying the GNU makefile directly:-
This also works for me.
BW
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 12:57
by exxos
Badwolf wrote: 27 Oct 2025 11:56
Perhaps try specifying the GNU makefile directly:-
Did nothing.
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 16:32
by exxos
According to GPT5
make 4.4.1 relies on functions in cygwin1.dll (like mbrtoc32) that don’t exist in your Cygwin 3.3.4. That’s why make --version produces nothing and no commands run. The DLL is too old for this version of make.
I am stuck with a older version of cygwin as they stopped updating it for win7. I used the last version I could find which would work. But likely later versions make simply don't work with the earlier versions of cygwin :roll:
I have Linux MX on my laptop, so maybe id be better trying that ? (no idea how either)
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 16:35
by dml
exxos wrote: 27 Oct 2025 12:57
Badwolf wrote: 27 Oct 2025 11:56
Perhaps try specifying the GNU makefile directly:-
Did nothing.
Does the patch for the Makefile I pasted last night help? You just need to make the same change then run 'make'. It will look for 'Makefile' by default.
It likely won't be a successful build but you should at least see it trying to compile some things.
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 16:38
by exxos
dml wrote: 27 Oct 2025 16:35
Does the patch for the Makefile I pasted last night help? You just need to make the same change then run 'make'. It will look for 'Makefile' by default.
It likely won't be a successful build but you should at least see it trying to compile some things.
I tried putting your code in the file but not really sure what I'm supposed to be doing with it all..
But I think the fundamental problem is that even getting the version number of make does not return any results, so I think trying to compile something is probably rather futile at this point.
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 16:43
by dml
Make is part of cygwin - even older versions - so it should work. I was using Cygwin's make for ages on Windows when it was still a 32bit package.
It definitely would not have worked without a patch to the makefile because it was set up with DOS paths and TOS TTPs, instead of Linux paths and Windows executables which Cygwin needs.
I'll give it a spin here after dinner and let you know what happens...
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 16:47
by exxos
dml wrote: 27 Oct 2025 16:43
Make is part of cygwin - even older versions - so it should work. I was using Cygwin's make for ages on Windows when it was still a 32bit package.
It definitely would not have worked without a patch to the makefile because it was set up with DOS paths and TOS TTPs, instead of Linux paths and Windows executables which Cygwin needs.
I'll give it a spin here after dinner and let you know what happens...
:shrug:
This is the one I am using.
setup-x86_64-2.909.zip
I could probably send you the whole installed folder if it helps ?
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 18:07
by dml
So I gave this a quick try and it did of course become a rabbithole - but mainly caused by my own Windows configs.
- I tried it on the main PC and then remembered it did not have Cygwin, just MSYS2 (mostly the same thing but slightly less damage) and I don't really want to install Cygwin there...
- I tried it on the old PC with other Atari stuff on it and where Cygwin32 is working - an old XP machine and air-gapped (!) - and it seems to mostly work. I say 'mostly' because the makefile is for some reason trying to use BC which is a commandline calculator. No idea why but it is, and I don't have it installed in that old Cygwin. And since it is an air-gapped machine, I'll not be installing that anytime soon :)
I was using the command
> make clean
...then
> make TOSVERSION=206 COUNTRY=uk
Running the second make command a second time however dodged the BC missing command error (it must be used at a one-time configure step, not a build step so the error only happens once) and left me with a new error, a missing localcfg.h. That's just full of definitions for TOS206, MEDUSA and so on so I just cloned & renamed the patchdef.h include as it has the same stuff in it and a comment about making your own localcfg.h.
On 3rd attempt, it spent a decent amount of time compiling all the files - then failed to link with a bizarre syntax error. I'll put that down to either (1) ancient Cygwin32 or (2) the failed configure step at the beginning due to the missing BC calculator tool.
Last - the patch I sent you was meant to replace some existing lines at the top of Makefile.cmn, not lines to add to Makefile. Sorry, I didn't explain that well (or at all) but it was kinda late at the time. :) that's the only change I made - the rest looks like issues with my old machine config...
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 18:12
by dml
Oh yeah - the above is not an example of how to do this correctly. I was just winging it in a hurry. There's probably an explanation somewhere on how to make the localcfg.h properly and so on. I skipped all that because I had about 20 mins free before having to go out.
Re: Different compilers for compiling TOS ?
Posted: 27 Oct 2025 19:07
by exxos
I tried downloading some later versions but I think it completely broken now :(
Code: Select all
Problem 1/1
nothing provides _windows >= 6.3 needed by cygwin-3.6.5-1
Solution 1/1 (default)
- allow deinstallation of Base packages
The setup screen has completely changed even though I'm using the original installer and the base packages will not install now :(
I went back to original version I downloaded and that's coming up the new installer menu still and won't install either now :roll:
I just think this just is not going to work.... It's just another case of software hell !