Subject: acorn32 cross
To: None <port-arm@NetBSD.org>
From: =?iso-8859-1?q?J=F6rn_Seger?= <joern.seger@udo.edu>
List: port-arm
Date: 09/06/2004 11:36:30
Hi *

As I am a newbie in the field of netBSD-crosscompiling, I need some help he=
re:

I am working on a i386 netBSD system and I would like to cross-compile netB=
SD=20
for an arm7-processor. (ok, there is a lot of work to do, to bring the syst=
em=20
up on my embbeded eval-board, but apart from that ...)

So I try (for a basis) to compile the acorn32 kernel as supposed on Huberts=
=20
"Cross-Development with NetBSD"-Tutorial.

=46irst I get the cvs sources and found out, that build changes the -t opti=
on to=20
"tools". Is that right!?=20
So I compiled the crossbuilding tools. Then I started to compile a new kern=
el=20
(just GENERIC).
nbconfig - works; nbmake depend - works; nbmake fails (see below).
Same happens, if I use the release-1-6 sources.

Seems, that the assembler don't understand me :-(
Any advices?
Thanks in advance - J=F6rn

compile  GENERIC/locore.o
cc -x assembler-with-cpp -D_LOCORE -Darm32 -I. -I../../../../arch=20
=2DI../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=3D32 -D_KERNEL=20
=2DD_KERNEL_OPT -c ../../../../arch/arm/arm32/locore.S
/var/tmp/ccsKgOpE.s: Assembler messages:
/var/tmp/ccsKgOpE.s:3169: Error: ignoring unrecognized symbol type ""
/var/tmp/ccsKgOpE.s:3171: Error: ignoring unrecognized symbol type ""
/var/tmp/ccsKgOpE.s:3172: Error: no such instruction: `adr r1,.Lstart'
/var/tmp/ccsKgOpE.s:3173: Error: no such instruction: `ldmia r1,{r1,r2,sp}'
/var/tmp/ccsKgOpE.s:3174: Error: too many memory references for `sub'
/var/tmp/ccsKgOpE.s:3175: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3178: Error: invalid char '[' beginning operand 2 `[r1]'
/var/tmp/ccsKgOpE.s:3179: Error: too many memory references for `sub'
/var/tmp/ccsKgOpE.s:3180: Error: no such instruction: `bgt .L1'
/var/tmp/ccsKgOpE.s:3182: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3183: Error: no such instruction: `bl initarm'
/var/tmp/ccsKgOpE.s:3186: Error: too many memory references for `mov'
/var/tmp/ccsKgOpE.s:3188: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3189: Error: too many memory references for `mov'
/var/tmp/ccsKgOpE.s:3190: Error: no such instruction: `stmfd sp!,
{fp,ip,lr,pc}'
/var/tmp/ccsKgOpE.s:3191: Error: too many memory references for `sub'
/var/tmp/ccsKgOpE.s:3193: Error: no such instruction: `bl main'
/var/tmp/ccsKgOpE.s:3195: Error: no such instruction: `adr r0,.Lmainreturne=
d'
/var/tmp/ccsKgOpE.s:3196: Error: no such instruction: `b panic'
/var/tmp/ccsKgOpE.s:3221: Error: ignoring unrecognized symbol type ""
/var/tmp/ccsKgOpE.s:3222: Error: no such instruction: `mrs r2,cpsr'
/var/tmp/ccsKgOpE.s:3223: Error: no such instruction: `bic r2,r2,'
/var/tmp/ccsKgOpE.s:3224: Error: no such instruction: `orr r2,r2,'
/var/tmp/ccsKgOpE.s:3225: Error: no such instruction: `orr r2,r2,'
/var/tmp/ccsKgOpE.s:3226: Error: no such instruction: `msr cpsr_all,r2'
/var/tmp/ccsKgOpE.s:3228: Error: no such instruction: `ldr=20
r4,.Lcpu_reset_address'
/var/tmp/ccsKgOpE.s:3229: Error: no such instruction: `ldr r4,[r4]'
/var/tmp/ccsKgOpE.s:3231: Error: no such instruction: `ldr r0,.Lcpufuncs'
/var/tmp/ccsKgOpE.s:3232: Error: too many memory references for `mov'
/var/tmp/ccsKgOpE.s:3233: Error: no such instruction: `ldr pc,[r0,'
/var/tmp/ccsKgOpE.s:3240: Error: no such instruction: `ldr=20
r1,.Lcpu_reset_needs_v4_MMU_disable'
/var/tmp/ccsKgOpE.s:3241: Error: no such instruction: `ldr r1,[r1]'
/var/tmp/ccsKgOpE.s:3242: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3243: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3249: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3250: Error: no such instruction: `mcr 15,0,r0,c1,c0,0'
/var/tmp/ccsKgOpE.s:3251: Error: no such instruction: `mcrne 15,0,r2,c8,c7,=
0'
/var/tmp/ccsKgOpE.s:3252: Error: too many memory references for `mov'
/var/tmp/ccsKgOpE.s:3279: Error: ignoring unrecognized symbol type ""
/var/tmp/ccsKgOpE.s:3280: Error: no such instruction: `stmia r0,{r4-r14}'
/var/tmp/ccsKgOpE.s:3281: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3282: Error: too many memory references for `mov'
/var/tmp/ccsKgOpE.s:3284: Error: ignoring unrecognized symbol type ""
/var/tmp/ccsKgOpE.s:3285: Error: no such instruction: `ldmia r0,{r4-r14}'
/var/tmp/ccsKgOpE.s:3286: Error: expecting operand after ','; got nothing
/var/tmp/ccsKgOpE.s:3287: Error: too many memory references for `mov'
/var/tmp/ccsKgOpE.s:3293: Error: ignoring unrecognized symbol type ""
/var/tmp/ccsKgOpE.s:3294: Error: no such instruction: `b abort'
*** Error code 1

Stop.
nbmake: stopped=20
in /usr/local/src/cvs_curr/src/sys/arch/acorn32/compile/GENERIC