You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
DO NOT USE DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time it is unfortunately not possible to white list users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

Different compilers for compiling TOS ?

General Discussion, STOS.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 2978
Joined: Tue Nov 19, 2019 12:09 pm

Re: Different compilers for compiling TOS ?

Post by Badwolf »

exxos wrote: Sun Oct 26, 2025 9:43 pm
dml wrote: Sun Oct 26, 2025 9:30 pm ...
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:-

Code: Select all

make -f GNUmakefile
This also works for me.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 27283
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

Badwolf wrote: Mon Oct 27, 2025 11:56 am Perhaps try specifying the GNU makefile directly:-

Code: Select all

make -f GNUmakefile
Did nothing.
User avatar
exxos
Site Admin
Site Admin
Posts: 27283
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post 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)
dml
Posts: 781
Joined: Wed Nov 15, 2017 10:11 pm

Re: Different compilers for compiling TOS ?

Post by dml »

exxos wrote: Mon Oct 27, 2025 12:57 pm
Badwolf wrote: Mon Oct 27, 2025 11:56 am Perhaps try specifying the GNU makefile directly:-

Code: Select all

make -f GNUmakefile
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.
User avatar
exxos
Site Admin
Site Admin
Posts: 27283
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

dml wrote: Mon Oct 27, 2025 4:35 pm 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.
dml
Posts: 781
Joined: Wed Nov 15, 2017 10:11 pm

Re: Different compilers for compiling TOS ?

Post 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...
User avatar
exxos
Site Admin
Site Admin
Posts: 27283
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post by exxos »

dml wrote: Mon Oct 27, 2025 4:43 pm 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
(1.26 MiB) Downloaded 1 time

I could probably send you the whole installed folder if it helps ?
dml
Posts: 781
Joined: Wed Nov 15, 2017 10:11 pm

Re: Different compilers for compiling TOS ?

Post 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...
dml
Posts: 781
Joined: Wed Nov 15, 2017 10:11 pm

Re: Different compilers for compiling TOS ?

Post 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.
User avatar
exxos
Site Admin
Site Admin
Posts: 27283
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Different compilers for compiling TOS ?

Post 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 !
Locked

Return to “SOFTWARE”