Subject: Building the world for ARM(XScale) processors
To: None <netbsd-help@netbsd.org>
From: John Clark <j1clark@ucsd.edu>
List: netbsd-help
Date: 01/13/2002 10:52:15
I don't know if this is the correct group, so if not please point to that
group.

I have installed NetBSD 1.5.2 on my Compaq laptop. There is a problem 
with
one version of Linksys PCMCIA card, having an older version, worked 
around
that problem. I'll return to investigate that later.

Once I got the system installed and connnected, I transfered the set of
sources that I had 'cvs -z3 co src' from a FreeBSD machine.

With a hint from Jason Thorpe I began the build process with:

build.sh -m evbarm -T /usr/local/netbsd-tools -D /export/iq310

This failed rather quickly. Upon investigation the failure was in
the cleaning operation. It appears that in the CVS image there were 
directories
named identically to the build target executables. I have an example
of that failure below. There were several such failures, grep, ktrace, 
and man.

Once these directories were removed the build process went through to the
point where it needed to have a user name of 'named'. This name was not
in the distribution 'passwd' file, and after doing an 'useradd' 
operation,
the build completed successfully.

I then executed the following:

build.sh -m evbarm -T /usr/local/netbsd-tools -D /export/iq310 -R 
/export/iq310

This failed and the second tail end messages are listed below. It 
appears that something
is not set up correctly for the INTEGRATOR configuration for building 
that kernel target.
Upon removal of INTEGRATOR from the kernel build list, the build process 
ran
through building the kernel for the target IQ80310, but failed on 
creating the tgz
images for distribution. I'm rebuilding that at the moment to see if I 
have a setup
problem.

Also, is it possible to restart the build process without starting from 
scratch.

------- failure due to directory named as a target ---

rm -f jot.o  jot.ln
rm -f a.out [Ee]rrs mklog core *.core jot
rm -f jot.cat1
rm -f .depend /usr/cvs/src_arm/usr.bin/jot/tags
cleandir ===> usr.bin/kdump
rm -f kdump.o ioctl.o subr.o setemul.o  kdump.ln ioctl.ln subr.ln 
setemul.ln
rm -f ioctl.c
rm -f a.out [Ee]rrs mklog core *.core kdump
rm -f kdump.cat1
rm -f .depend /usr/cvs/src_arm/usr.bin/kdump/tags
cleandir ===> usr.bin/ktrace
rm -f ktrace.o subr.o  ktrace.ln subr.ln
rm -f a.out [Ee]rrs mklog core *.core ktrace
rm: ktrace: is a directory
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/src_arm/usr.bin/ktrace
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/src_arm/usr.bin
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/src_arm
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/src_arm


------- failure due to some problem with the INTEGRATOR kernel 
config  ----
rm -f param.c
cp /usr/cvs/src_arm/sys/conf/param.c .
cat /usr/cvs/src_arm/sys/arch/arm/arm32/genassym.cf 
/usr/cvs/src_arm/sys/arch/evbarm/ifpga/genassym.cf |
  sh /usr/cvs/src_arm/sys/kern/genassym.sh /usr/local/netbsd-
tools/bin/arm--netbsdelf-gcc  -ffreestanding
-g -O2 -march=armv4 -Werror -Wall -Wno-main -Wpointer-arith 
-Wno-uninitialized  -Devbarm -I.  -I/usr/cvs/
src_arm/sys/arch -I/usr/cvs/src_arm/sys -nostdinc -DCPU_ARM1020 
-DPCI_CONFIGURE_VERBOSE -DDIAGNOSTIC -DPL
CONSOLE -DPLCOMCNUNIT="0" -DPLCONSPEED="0x9600" -DPLCONMODE="0xb00" 
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
    > assym.h.tmp &&  mv -f assym.h.tmp assym.h
/tmp/4073.c: In function `f163':
/tmp/4073.c:89: structure has no member named `fh_r8'
/tmp/4073.c:90: structure has no member named `fh_r9'
/tmp/4073.c:91: structure has no member named `fh_r10'
/tmp/4073.c:92: structure has no member named `fh_r11'
/tmp/4073.c:93: structure has no member named `fh_r12'
/tmp/4073.c:94: structure has no member named `fh_r13'
/tmp/4073.c:95: structure has no member named `fh_mask'
*** Error code 1

Stop.
nbmake: stopped in 
/usr/cvs/src_arm/obj/sys/arch/evbarm/compile/INTEGRATOR
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/src_arm/etc
*** Error code 1

Stop.
nbmake: stopped in /usr/cvs/src_arm


------- failure due to compiler error -----