Page 2 of 6
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 11:26
by exxos
On to the next problem then..
Capture.PNG
EDIT:
ah...
666.PNG
:ball:
EDIT:
777.PNG
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 11:32
by exxos
:sigh:
1.PNG
2.PNG
3.PNG
So searching through the original installer I found it..
rt1.PNG
rt2.PNG
00.PNG
000.PNG
0000.PNG
Now what ? :lol:
xx.PNG
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 13:19
by exxos
What a faff! had to install nano... wget installs but does nothing at all.
Did a test program:
Code: Select all
mkdir ~/atari_projects
cd ~/atari_projects
nano hello.c
Code: Select all
#include <osbind.h>
int main() {
Cconws("Hello, Atari ST from Cygwin!\r\n");
Cconin(); // Wait for keypress
return 0;
}
Code: Select all
m68k-atari-mint-gcc -m68000 -I/opt/cross-mint/m68k-atari-mint/include -o hello.tos hello.c
:girldance: :cheer: :girldance: :cheer:
Capture.PNG
So how the heck do I now compile the operating system :lol: :roll:
:dizzy:
EDIT:
Well MAKE doesn't seem to do anything, silent output like WGET. Been working though with Grok. We both clueless now.. So no idea.. :(
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 14:32
by stephen_usher
Goodness knows how the original build process will work with GNU C. You'll need the flag -mshort so that ints are 16 bits rather than 32 bits for a start.
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 15:01
by exxos
stephen_usher wrote: 24 Oct 2025 14:32
Goodness knows how the original build process will work with GNU C. You'll need the flag -mshort so that ints are 16 bits rather than 32 bits for a start.
Yep, there could be a whole bunch of stuff wrong for all I know. Not really worth the time screwing around with it all. I'll stick to what I was doing originally as it all works.
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 15:25
by Badwolf
exxos wrote: 24 Oct 2025 13:19
So how the heck do I now compile the operating system :lol: :roll:
I've just tried the process from scratch on my box:-
Code: Select all
mkdir /tmp/osbuildtest
cd /tmp/osbuildtest
Choose a path appropriate for you.
Code: Select all
git clone https://github.com/th-otto/tos3x.git
Git will probably be available as a cygwin package if it's not already installed. You could do it with a curl/wget instead.
Pretty self-explanatory.
And it just worked.
Code: Select all
dh219@gin:/tmp/osbuildtest/tos3x$ ls -l glue/*.img
-rw-r--r-- 1 dh219 dh219 524288 Oct 24 15:20 glue/tos306de.img
There it is.
Now you'd have to set it up for 2.06 and UK (or whatever) then apply your changes, but it's all in there.
BW
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 15:29
by exxos
@Badwolf I'm not using the files from git though. I patched loads of stuff so all the files are on my PC.
I gave up with Grok and GPT said.
Capture.PNG
My files did likely come from that same repo anyway. But would have been some years ago now.
Running MAKE or MAKE CLEAN does nothing at all. Totally silent output.
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 15:37
by exxos
Code: Select all
$ git clone https://github.com/th-otto/tos3x.git
Cloning into 'tos3x'...
fatal: remote helper 'https' aborted session
Even that doesn't work :(
Downloaded manually.. still does nothing.
Capture.PNG
:mad:
Capture.PNG
Get out of this rabbit hole now then I guess.....
I mean if the new compiler isn't going to drastically optimise stuff to be more efficient, than is probably just not worth all the hassle anyway..
Mostly I was just trying to find something a bit quicker and simpler and more modern to compile with, but it's just turning into another software nightmare I just cannot be bothered with :)
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 16:54
by Badwolf
exxos wrote: 24 Oct 2025 15:29
@Badwolf I'm not using the files from git though. I patched loads of stuff so all the files are on my PC.
Start with the git version. Apply your changes.
And *for the umpteenth time*, stop using LLMs to try to solve your problems! Of course it's not running TTP files. What nonsense. That's the Atari version.
Anyway, I just tried downloading the zip instead (
https://github.com/th-otto/tos3x/archiv ... master.zip) and, apart from cd to a different directory name, it just made first time again.
You haven't shown us what's in your tos3x directory, BTW.
Oh, it's jsut occurred to me perhaps cygwin has two types of make. Try running 'gmake' instead?
BW
Re: Different compilers for compiling TOS ?
Posted: 24 Oct 2025 17:27
by dml
exxos wrote: 24 Oct 2025 13:19
What a faff! had to install nano... wget installs but does nothing at all.
Did a test program:
Code: Select all
mkdir ~/atari_projects
cd ~/atari_projects
nano hello.c
It might be helpful to know that the cygwin drives are also just Windows directories - you can use nano (or vim or anything else) from the cygwin shell, or you can edit the code on the disk in Windows using any editor or IDE.
That should open a windows file explorer where your sources are so you can mess with them directly.
(yes, you can run normal windows .exe programs from cygwin shell)
But there are some hazards - Windows CRLF line endings sometimes can creep in from your editor/IDE and its easy to get mixed up with / posix directory separators and \ Windows separators. Cygwin will tolerate both but the programs you are running there might not. Also permissions might be an issue in some cases where they matter since Windows file operations can change them under cygwin's feet. Usually this isn't an issue for compiling source projects though.