Subject: Kernel compilation issues - where am I going wrong?
To: None <tech-kern@netbsd.org>
From: Andrew Leach <imamushroom@gmail.com>
List: tech-kern
Date: 02/18/2007 23:15:31
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

*** Failed target:  .configure_done
*** Failed command: (cd build && CC=cc CFLAGS=-O CPPFLAGS= CXX=c++
CXXFLAGS=-O INSTALL=/usr/src/NetBSD-4/../tools/bin/nbinstall\ -c\ -p\
-r LDFLAGS= AR=ar RANLIB=ranlib
LEX=/usr/src/NetBSD-4/../tools/bin/nblex
MAKE=/usr/src/NetBSD-4/../tools/bin/nbmake
PATH="/usr/src/NetBSD-4/../tools/bin:$PATH"
YACC=/usr/src/NetBSD-4/../tools/bin/nbyacc sh
/usr/src/NetBSD-4/tools/texinfo/../../gnu/dist/texinfo/configure
--program-prefix=nb --prefix=/usr/src/NetBSD-4/../tools)
*** Error code 2

Stop.
nbmake: stopped in /usr/src/NetBSD-4/tools/texinfo

*** Failed target:  dependall
*** Failed command: cd /usr/src/NetBSD-4/tools/texinfo;
/usr/src/NetBSD-4/../tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/NetBSD-4/tools/texinfo

*** Failed target:  dependall-texinfo
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this=""; real="/usr/src/NetBSD-4/tools" ;; *) this="${dir}/";
real="/usr/src/NetBSD-4/tools/${dir}" ;; esac; show=${this:-.}; echo
"${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
/usr/src/NetBSD-4/../tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget texinfo dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/NetBSD-4/tools

ERROR: Failed to make dependall tools
*** BUILD ABORTED ***

Thanks,
Andrew
>