Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!munnari.oz.au!brolga!uqcspe!cs.uq.oz.au!tonyg From: tonyg@cs.uq.oz.au (Tony Gedge) Newsgroups: comp.os.minix Subject: gcc under MacMinix? Summary: Having problems linking MacMinix kernel with GCC Keywords: gcc gnu macintosh macminix minix ld Message-ID: <918@uqcspe.cs.uq.oz.au> Date: 20 Apr 91 01:22:10 GMT Sender: news@cs.uq.oz.au Reply-To: tonyg@cs.uq.oz.au Lines: 45 I've just ftp'ed the gcc binaries for ST-Minix from plains.nodak.edu. (i.e. the pub/Minix/uk/mincen/68k/gcc ones) and I've been massaging them to work properly under MacMinix. Should I be using the gccXXX.tar.Z files in pub/Minix/uk instead of those in pub/Minix/uk/mincen/68k/gcc? Which is better? After unpacking the binaries and applying the lib and includes patches, I had to make a few modifications to get gcc producing useable executables: 1) modify crtso.cpp to include the Mac specific stuff (setup of saveda5 and savedsp) 2) Some minor modifications to head.s (not important for non-kernel stuff) 3) Converting the ACK assembler glue code in /usr/src/lib/mac/libmac into MIT syntax. After these mods were made, I could use gcc to recompile Minix programs which all ran without difficulty. I tested my new libmac library glue code and it appears to be working correctly. Now the big problem: I can recompile and link fs and mm without trouble (I'm not worrying about padding of bss et al just yet!) however the kernel is giving me trouble. I can recompile all the sources, however gcc-ld will not link them to produce the final object. Make abouts with error code 256, and gcc-ld gives no error messages about why it couldn't link. I chmem'ed gcc-ld up to 2Meg and used 'make -n > mk; sh mk' but got the same message. The Questions: Has anyone else rebuilt the MacMinix boot application with gcc? Can someone give me some leads about how I might approach finding the problem? What other things will I have to do before I can rebuild the kernel (padding etc.)? I'm going to try rebuilding gcc-ld with some 'debugging statments' so I can find out where it is going wrong. Thanks in advance, Tony Gedge. -- ------------------------------------------------------------------------- | Computer Science Department, | tonyg@cs.uq.oz.au (Tony Gedge) | | University of Queensland, Australia.| "cc stands for Cryptic Crossword" | -------------------------------------------------------------------------