Subject: Re: [HELP] Cann't compile hpcarm for iPAQ kernel
To: Antti Kantee <pooka@iki.fi>
From: =?big5?q?Armani=20Lia?= <armani_lia@yahoo.com.tw>
List: port-hpcarm
Date: 09/12/2001 09:58:56
 --- Antti Kantee <pooka@iki.fi> ¼g¹D¡G> On Tue Sep 11
2001 at 17:35:12 +0800, Armani Lia
> wrote:
> > Hi,
> > 
> > I tried to compile hpcarm kernel for iPAQ on
> -CURRENT,
> > I got the following
> > messages:
> >
> > [SNIP]
> >
> > arm-unknown-netbsdelf-gcc: installation problem,
> > cannot exec `cpp0': No
> > such fil
> > e or directory
> > mkdep: compile failed.
> > *** Error code 1
> > 
> > Stop.
> > make: stopped in
> > /usr/src/sys/arch/hpcarm/compile/MYCONF/lib/kern
> > *** Error code 1
> > 
> > Stop.
> > make: stopped in
> > /usr/src/sys/arch/hpcarm/compile/MYCONF
> > 
> > Would anyone tell me how to solve it, thanks.
> > BTW, I followed the
> > http://www.netbsd.org/Ports/hpcarm/howto-use.html
> > to build cross-tools and set environments.
> 
> IIRC at least I had to install some files from the
> gcc build directory
> manually. I think the files were cpp0 and cc1. They
> are built, but not
> installed for some weird reason, perhaps because the
> toolchain build
> system is currently in a flux.

You're right! I copied cpp0 and cc1, and it solves
that
problem, thanks. But I encounter another message:


building standard kern library
/usr/local/cross/bin/arm-unknown-netbsdelf-gcc  -O2
-Werror -Wall -Wcomment -Wpo
inter-arith -Wno-uninitialized -Wno-main -I.
-I../../../../arch -I../../../.. -n
ostdinc -DHPCARM -DSAIP -DSAEGPIO_BASE="0x49000000"
-DLKM -DDIAGNOSTIC -DCONSPEE
D="0x4b00" -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-Dhpcarm -Darm32  -c swapnetbsd
.c
sh ../../../../conf/newvers.sh
/usr/local/cross/bin/arm-unknown-netbsdelf-gcc  -O2
-Werror -Wall -Wcomment -Wpo
inter-arith -Wno-uninitialized -Wno-main -I.
-I../../../../arch -I../../../.. -n
ostdinc -DHPCARM -DSAIP -DSAEGPIO_BASE="0x49000000"
-DLKM -DDIAGNOSTIC -DCONSPEE
D="0x4b00" -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-Dhpcarm -Darm32  -c vers.c
rm -f netbsd
/usr/local/cross/bin/arm-unknown-netbsdelf-ld -Ttext
C0040000 -e start -X -o net
bsd ${SYSTEM_OBJ} vers.o
arm32_machdep.o: In function `parse_mi_bootargs':
arm32_machdep.o(.text+0xe18): undefined reference to
`memory_disc_size'
*** Error code 1

Stop.
make: stopped in
/usr/src/sys/arch/hpcarm/compile/MYCONF

Would you know how to solve it, thank you very much!

> -- 
> Antti Kantee <pooka@iki.fi>          v          Of
> course he runs NetBSD
> http://www.iki.fi/pooka/             i           
http://www.NetBSD.org/ 

- Armani

--------------------------------------------------------------------
©_¼¯¹q¤l«H½c¡E·¾³q¤ß¥@¬É  http://mail.kimo.com.tw
< ºô ¸ô ¥Í ¬¡¡EºÉ ¦b ©_ ¼¯ >  http://www.kimo.com.tw