Subject: Re: Kernel compilation issues - where am I going wrong?
To: Andrew Leach <imamushroom@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 02/19/2007 11:54:46
On Sun, Feb 18, 2007 at 11:15:31PM +0100, Andrew Leach wrote:
> Hi,
> 
> I'm new to NetBSD and have come from a Linux background where I've compiled
> the kernel many, many times.
> 
> I appreciate that this process isn't an easy one at the best times but I'm
> having absolutely no success with NetBSD.
> 
> I'm using NetBSD v4-beta2 (because I need WPA support) build version
> 200702090000Z
> (from an iso build) and I've ran cvs update -rnetbsd-4 against the source
> tree to ensure that I've the very latest.
> 
> The machine I'm using is a VIA ITX MII 1000 with a RaLink based wifi card.
> 
> I've tried many times to compile a kernel both using a custom configuration
> and the standard GENERIC config but each time it fails. I suspect at this
> point it's something I'm doing wrong as someone has clearly built this
> source to put it into the iso image in the first place, or I've something
> not configured correctly. I've read the manuals and believe I'm following
> them correctly
> 
> I've included some of the relevant files (that I'm aware of) and commands
> that I'm following along with the errors generated. Could someone tell me
> where I'm going wrong please. TIA.
> 
> cat /etc/mk.conf
> CFLAGS+=        -march=i686 -msse -mmmx -mfpmath=sse,387 -Os -pipe
> -ffast-math -finline-functions -fomit-frame-pointer
> CC=     gcc
> CXX=    CC
> CPP=    g++
> PKGSRC_COMPILER=        gcc
> PKG_OPTIONS.wget=    inet6 ssl
> 
> gcc --version
> gcc (GCC) 4.1.2 20061021 prerelease (NetBSD nb3 20061125)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> g++ --version
> g++ (GCC) 4.1.2 20061021 prerelease (NetBSD nb3 20061125)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> ./build.sh -O ../obj -T ../tools -U -u tools
> #      link  uudecode/uudecode
> cc -O -I/usr/src/NetBSD-4/../obj/tools/compat
> -I/usr/src/NetBSD-4/../obj/tools/compat/include
> -I/usr/src/NetBSD-4/tools/uudecode/../compat -DHAVE_NBTOOL_CONFIG_H=1
> -D_FILE_OFFSET_BITS=64    -o uudecode uudecode.lo
> -L/usr/src/NetBSD-4/../obj/tools/compat -lnbcompat -lz
> dependall ===> texinfo
> /usr/src/NetBSD-4/tools/texinfo/../../gnu/dist/texinfo/configure: 1:
> Syntax error: ")" unexpected

please check that
/usr/src/NetBSD-4/tools/texinfo/../../gnu/dist/texinfo/configure
is up to date and not corrupted. Eventually remove it and run
cvs update -dPA -rnetbsd-4

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--