Skip to main content
Home Forums 68kMLA GCC-based cross compiler for 68K Macs — #10
Post #10 by LOOM
Source Forum68kMLA
CategoryDevelopment
Post DateSat, 31 Jan 2015 - 13:09
Original URLhttps://68kmla.org/bb/threads/gcc-based-cross-compiler-for-68k-macs.140/
Post
I tried following this Code68k tutorial I've used before that works using Codewarrior, but I end up with the same error as when I'm trying to compile the retro68Test project. I'm not sure if it's the Retro68Test Makefile that is the problem, or if it's a toolchain bug:

$ make

/retro68-build/toolchain/bin/MakeAPPL -c Retro68Test.68k -o Retro68Test -n -t ALRT  -n -r 129 rsrc/ALRT/129.dat  -n -t DITL  -n -r 129 rsrc/DITL/129.dat  -n -t MBAR  -n -r 128 rsrc/MBAR/128.dat  -n -t MENU  -n -r 128 rsrc/MENU/128.dat  -n -r 129 rsrc/MENU/129.dat  -n -r 130 rsrc/MENU/130.dat  -n -t vers  -n -r 1 rsrc/vers/1.dat
​unrecognized flag
​make: *** [Retro68Test.dsk] Error 1
It seems like it adds some stuff from "rsrc-args" in the Makefile that shouldn't be there (see error above). If I comment it out the program will compile but crash when I run it.
c-streams (another project using the toolchain) is using another Makefile, but gives out errors when linking StreamTest: stream.c:(.text+0x174): undefined reference to `alertf'
 
That's why it should be nice to see a standalone Hello World-project with a simple Makefile we know works, to rule out our own bugs  :)
 
Edit; I can't get the Code tag to work.
mp.ls