Compiling Mint

GFA, ASM, STOS, ...

Moderators: simonsunnyboy, Mug UK, Zorro 2, exxos, Moderator Team

Compiling Mint

Postby wongck » Wed Feb 09, 2011 3:33 pm

So I finally dl the Mint source via CVS onto my Wintel.
Transfered all the source across to my CT63, and then run a make -f makefile inside bash.
After several minutes (tens of minutes) it came out with an error -
No rules to make \freemint\sys\libkern\asm

What gives?
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby joska » Wed Feb 09, 2011 4:28 pm

This question should be asked on the MiNT-list.
Jo Even

Firebee - Milan060 - Falcon040 - Falcon030 - FreeMiNT - XaAES - MIST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Atari God
Atari God
 
Posts: 1836
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway

Re: Compiling Mint

Postby wongck » Thu Feb 10, 2011 12:05 am

I know. :wink:
But those guys (and you as well) scares me because you all talk at such a in-depth knowledge and know-how.
I skip most (99%) of the posting there because I have no clue what you all are talking about.
Don't get me wrong... it's great to have such knowledge.

I just need a KISS answer. :oops:
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby joska » Thu Feb 10, 2011 10:52 am

wongck wrote:I just need a KISS answer. :oops:


There is no such thing when it comes to gcc ;) You must post the error message, then someone might be able to help you.
Jo Even

Firebee - Milan060 - Falcon040 - Falcon030 - FreeMiNT - XaAES - MIST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
joska
Atari God
Atari God
 
Posts: 1836
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway

Re: Compiling Mint

Postby wongck » Thu Feb 10, 2011 12:16 pm

I am redoing the CVS hope that will work but CVS is failing now.
Need me to manually do something. :roll:
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby wongck » Thu Feb 10, 2011 12:16 pm

joska wrote:There is no such thing when it comes to gcc ;)


I was afraid of that.
First I must learn how to read a Makefile. :(
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby simonsunnyboy » Thu Feb 10, 2011 4:47 pm

Makefiles follow a dumb pattern:

Code: Select all
<<Target>>: <<files or other targets needed to build>>
  <<<instructions to build the target>>


So C speaking, say you have a file hello.c and you want to compile hello.prg from that one:

Code: Select all
hello.prg: hello.c
  gcc -o hello.prg hello.c


You can use this for multiple rules and targets and recursive stuffs, just read a decent manual. The GNU Make documentation in info format is actually pretty good.

Note that the build rules for the target are normally indented by a true TAB character and not spaces (atleast for GNU Make)
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Compiling Mint

Postby wongck » Thu Feb 10, 2011 11:55 pm

Thanks SSB for allaying my fears of reading Make docs.

What bafflers me was that it knows how to recursively make those the objs that are in other folders.
Clearly, the majority of the lines in the make file was pointing to those objs in the current folder where the source to be compiled are located.
This must be the dependencies at work... real powerful !! 8O
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby simonsunnyboy » Fri Feb 11, 2011 5:43 pm

Yes, Make tools work rule based and not top-down. Very powerful indeed - and proven technology as well! :D
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Compiling Mint

Postby jury » Fri Feb 11, 2011 8:31 pm

wongck wrote:But those guys (and you as well) scares me because you all talk at such a in-depth knowledge and know-how.
I skip most (99%) of the posting there because I have no clue what you all are talking about.


Hehe, I know exactly what you mean :)
Though, if you will get through the process of compilation, are you planning to do a tutuorial on your web pages in words simplier than that mint-list language? :D
jury
Atari freak
Atari freak
 
Posts: 53
Joined: Tue Sep 21, 2004 11:11 am
Location: Poland

Re: Compiling Mint

Postby wongck » Sat Feb 12, 2011 4:06 am

simonsunnyboy wrote:Yes, Make tools work rule based and not top-down. Very powerful indeed - and proven technology as well! :D


Not bad reading.
Been reading the makefile and still have not figure out how it does the back recursive dependencies completely... getting there.
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby wongck » Sat Feb 12, 2011 4:09 am

jury wrote:Though, if you will get through the process of compilation, are you planning to do a tutuorial on your web pages in words simplier than that mint-list language? :D


Well, I am getting tons of help over at the mint-list.
But mostly like, do this and that, I really not knowing why as it is patching some codes which i have not idea what it is. 8O
So not very likely will I be able to write anything simple on at my website.
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East

Re: Compiling Mint

Postby simonsunnyboy » Sat Feb 12, 2011 4:51 pm

Well check the recursive rules.
If target A.o needs B.o check for the rule that will create B.o

You can draw the dependencies described in a makefile as a tree:
Code: Select all
program.prg --> a.lib ---> a.o b.o c.o
                      + b.lib ---> xx.o yy.o zz.o
                      + main.o ---> main.c


I even think there are tools that will output this description aswell. Maybe Google can help with "Makefile analysis" or such stuffs.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org
User avatar
simonsunnyboy
Moderator
Moderator
 
Posts: 4305
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany

Re: Compiling Mint

Postby wongck » Sun Feb 13, 2011 2:54 am

simonsunnyboy wrote:I even think there are tools that will output this description aswell. Maybe Google can help with "Makefile analysis" or such stuffs.


WOW there are such tools?
It will help in mapping the makefile. :thumbs:
I check out Google.
Thanks.
My Stuff: Falcon CT63+CTPCI ATI R7500 14+512MB 30GB HDD CF HxC_SD EtherNEC/ FB/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
 
Posts: 10705
Joined: Sat May 03, 2008 2:09 pm
Location: Far East


Return to Coding

Who is online

Users browsing this forum: CommonCrawl [Bot], itaboy and 2 guests