4 Jun 2006 03:33
mac68k and gcc 4
Dave Huang <khym <at> azeotrope.org>
2006-06-04 01:33:41 GMT
2006-06-04 01:33:41 GMT
I tried building a -current mac68k kernel with the newly-imported gcc
4, and ran into a few errors, most of which I'm not too sure about
how to solve.
First is:
/usr/src.local/sys/arch/mac68k/mac68k/macrom.c: In function 'mrg_DTInstall':
/usr/src.local/sys/arch/mac68k/mac68k/macrom.c:180: error: invalid lvalue in assignment
caddr_t ptr, prev;
__asm volatile ("movl %%a0,%0" : "=g" (ptr));
(caddr_t *)prev = &mrg_DTList;
I think changing the last line to:
prev = (caddr_t)&mrg_DTList;
will do the same thing.
After changing that, I run into another problem in macrom.c:
/usr/src.local/sys/arch/mac68k/mac68k/macrom.c: In function 'mrg_aline_super':
/usr/src.local/sys/arch/mac68k/mac68k/macrom.c:728: error: unknown register name 'fp' in 'asm'
/* put a0 in a0 */
/* put a1 in a1 */
/* put d0 in d0 */
/* put d1 in d1 */
/* put trapaddr in a2 */
/* save a6 */
/* call the damn routine */
/* restore a6 */
(Continue reading)
Thank you... Thank you... You're too kind.
Anyway, I was just checking the NetBSD site and discovered that someone
has taken the time to compile a whack of packages for the 3.0 release,
with HylaFAX being among them. I'm currently using a PowerMac
9500/Debian-GNU/Linux box as a faxserver using HylaFAX. I figure that
my little Quadra 700/NetBSD box would be a better choice for a server
that gets little use and remains powered on 24/7.
However, my little Quadra 700 has only a paltry 400MB hard drive. With
a Mac HFS partition gobbling up 64MB of that hard drive, and a swap
partition gobbling up another 64MB of drive space, that leaves less than
300MB for the NetBSD software, and very little space left over for
applications and data files. Obviously, I'm going to need significantly
more disk space if I'm going to make any serious use of my little NetBSD
box.
I've been thinking about my options, and I've basically decided that I
really have two ways to go. I could get a larger hard drive for my
Quadra, or had a second or third external drive, or I could explore NFS
fileshares with a little more depth.
I have a bunch of small SCSI drives laying around that I would like to
use, rather than throwing them in the trash, so I'm not inclined to
source some larger drives at additional expense. I'd really like to
use the resources that I already have available. Unfortunately, using
these smaller hard drives as external drives would also require
additional expense, as I'd have to purchase cables, cases, power
RSS Feed