Skip to contentSkip to conversation

NetBSD 2.0 Compile Problems

DISCUSSION Kent S. Gordon 2 participants 2 messages Nov 28, 2004 – Nov 29, 2004

lore
Share & tools
lore
#0 lore raw

The Xen 2.0 build of NetBSD 2.0 had a problem on my system.

netbsd-2.0-xenU/nbconfig-xen uses uname -i to figure out the directory where the netbsd tools are keep which is always netbsd-2.0-tools/linux-i386.

Here is the output from uname -a

Linux bridge 2.6.9-xen0 #2 Mon Nov 29 12:05:22 CST 2004 i686 AMD Athlon(tm) MP Processor 1600+ AuthenticAMD GNU/Linux

uname -i returns
AuthenticAMD

The solution is to set HARCH="i386" in the environment
before running the build. This could be set in the Makefile or better
change nbconfig-xen to not set HARCH using uname unless the tools tarball has support for multiple toolchains.

Here is the build failure.

make[1]: Entering directory `/usr/xen/xen-2.0'
make -C netbsd-2.0-xenU config
make[2]: Entering directory `/usr/xen/xen-2.0/netbsd-2.0-xenU'
cd compile/XEN && TOPDIR=/usr/xen/xen-2.0/netbsd-2.0-xenU NETBSD_VER=netbsd-2.0-xenU ../../nbconfig-xen XEN
../../nbconfig-xen: line 21: /usr/xen/xen-2.0/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-AuthenticAMD/bin/nbconfig: No such file or directory ../../nbconfig-xen: line 21: exec: /usr/xen/xen-2.0/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-AuthenticAMD/bin/nbconfig: cannot execute: No such file or directory make[2]: *** [config] Error 126
make[2]: Leaving directory `/usr/xen/xen-2.0/netbsd-2.0-xenU'
make[1]: *** [netbsd-xenU] Error 2
make[1]: Leaving directory `/usr/xen/xen-2.0'
make: *** [kernels] Error 2

Kent S. Gordon
Postal: 76 Corral Drive North, Keller, Texas 76248
e-mail: [email protected] Phone:(817)431-8775

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#1 lore raw
Quoted 4 lines · Kent S. Gordon

The solution is to set HARCH="i386" in the environment
before running the build. This could be set in the Makefile or better
change nbconfig-xen to not set HARCH using uname unless the tools tarball has support for multiple toolchains.

I think I'll change this to use uname -m and then map i[56]86 to i386.

christian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/