Subject: Re: Failed Build
To: J Lachlan Kanaley <kanaley@student.usyd.edu.au>
From: sgimips NetBSD list <sgimips@mrynet.com>
List: port-sgimips
Date: 05/17/2004 21:36:14
On Tue, May 18, 2004 at 12:25pm, J Lachlan Kanaley wrote:
> Subject: Failed Build
Hi Lachlan,
The following patch will get around your tools build issue, but you still
won't be able to package a release due to differences in how FreeBSD
vnode devices work. See a later email to the list from me on a full
patch that will resolve all the problems under FreeBSD and allow a full
release build.
Index: sys/arch/sgimips/stand/sgivol/sgivol.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sgimips/stand/sgivol/sgivol.c,v
retrieving revision 1.8
diff -r1.8 sgivol.c
251a252
> #ifdef __NetBSD__
252a254,256
> #else
> sprintf(buf, "/dev/%s", argv[0]);
> #endif
> Hello.
>
> I am trying to cross build netbsd-current (downloaded 18 may 04) for
> an indy 4600 on my p4-freebsd-5.2.1-release pc. I want current
> because it has the console drivers so I don't have to use serial.
>
> However, the build fails and my C is not good enough to track this
> down. My guess is that the loader doesn't find the `util' library,
> which doesn't seem to be built as part of the `compat' and is trying
> to use the freebsd version? (which doesn't define getrawpartition).
>
> in summary I'm lost and any help would be greatly appreciated.
>
> - Lachlan
>
>
> ./build.sh -D distribution -R release -m sgimips -U release >& build.log
>
> nk sgivol/sgivol
> cc -O -I/usr/home/kanaley/indy/netbsd/src/src/tools/compat/obj
> -I/usr/home/kanaley/indy/netbsd/src/src/tools/compat/obj/include
> -I/usr/home/kanaley/indy/netbsd/src/src/tools/sgivol/../compat
> -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE
> -o sgivol sgivol.lo
> -L/usr/home/kanaley/indy/netbsd/src/src/tools/compat/obj -lnbcompat
> -lz -lutil
> sgivol.lo: In function `main':
> sgivol.lo(.text+0x27d): undefined reference to `getrawpartition'
>
> *** Failed target: sgivol
> *** Failed command: cc -O
> -I/usr/home/kanaley/indy/netbsd/src/src/tools/compat/obj
> -I/usr/home/kanaley/indy/netbsd/src/src/tools/compat/obj/include
> -I/usr/home/kanaley/indy/netbsd/src/src/tools/sgivol/../compat
> -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -o
> sgivol sgivol.lo
> -L/usr/home/kanaley/indy/netbsd/src/src/tools/compat/obj -lnbcompat
> -lz -lutil
> *** Error code 1
>
> Stop.
> nbmake: stopped in
> /usr/home/kanaley/indy/netbsd/src/src/tools/sgivol
>
> --
>
> James Lachlan Kanaley
>
>
> phone: (02) 9517 3209
> mobile: 0427 368 345
> email: kanaley@student.usyd.edu.au
> web: http://users.tpg.com.au/adslclfu
>
>
>-- End of excerpt from J Lachlan Kanaley