Subject: Re: -current (Feb21st) crossbuild failed i386->sgimips
To: None <port-sgimips@NetBSD.org>
From: Francis Bogsanyi <fbogsany@metabunny.com>
List: port-sgimips
Date: 02/22/2004 22:15:56
On 22-Feb-04, at 10:17 AM, Ilpo Ruotsalainen wrote:

> On Sun Feb 22 2004 at 15:47:41 +0100, Tru Huynh wrote:
>> Does anyone have any idea why? I get this?
>> Host machine: Red Hat linux 7.3 (athlon)
>
> Quick guess: Because sgivol cannot be compiled on non-(Net?)BSD
> platforms.

I managed to kludge through a cross-build from Mac OS X 10.3 a couple 
weeks ago by shifting some files & tweaking Makefiles during the build. 
  Unfortunately I didn't note down the steps, but they involved (at 
least) the following changes:

src/tools/sgivol fbogsany$ cvs diff Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/src/tools/sgivol/Makefile,v
retrieving revision 1.2
diff -r1.2 Makefile
2a3,4
 > SGIVOL_DONT_USE_LIBUTIL= yes
 >

src/sys/arch/sgimips/stand/sgivol fbogsany$ cvs diff Makefile sgivol.c
Index: Makefile
===================================================================
RCS file: /cvsroot/src/sys/arch/sgimips/stand/sgivol/Makefile,v
retrieving revision 1.5
diff -r1.5 Makefile
5a6
 > .ifndef SGIVOL_DONT_USE_LIBUTIL
6a8
 > .endif
Index: sgivol.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sgimips/stand/sgivol/sgivol.c,v
retrieving revision 1.8
diff -r1.8 sgivol.c
38a39,43
 > #if HAVE_NBTOOL_CONFIG_H
 > #include "nbtool_config.h"
 > static int getrawpartition() { return 3; }
 > #endif
 >


The last part of this is definitely a hack, but I installed the result 
on a couple of Indys without any problems.

Cheers,
Francis.