Subject: Re: cross building problems
To: Anton Gunnarsson <antgun@packetfront.com>
From: None <ragge@ludd.luth.se>
List: port-vax
Date: 01/29/2003 11:41:15
It sounds as something is not up-to-date; most likely something with
your source code. Which revision of subr.S do you have?
-- Ragge
> Hello,
>
> I'm trying to cross build a vax kernel (1.6 release) on a sparc.
>
> I'we built the toolchain with build.sh..
>
> When i try to compile the kernel i get the following error
>
> crok# /usr/cross/bin/nbmake-vax
> /usr/cross/bin/vax--netbsdelf-gcc -x assembler-with-cpp -traditional-cpp -D_LOCORE -D_VAX_INLINE_ -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT -c /home/netbsd/src/src/sys/arch/vax/compile/test/../../../../arch/vax/vax/subr.S
> /home/netbsd/src/src/sys/arch/vax/compile/test/../../../../arch/vax/vax/subr.S: Assembler messages:
> /home/netbsd/src/src/sys/arch/vax/compile/test/../../../../arch/vax/vax/subr.S:109: Warning: Symbol used as immediate operand in PIC mode.
> /home/netbsd/src/src/sys/arch/vax/compile/test/../../../../arch/vax/vax/subr.S:599: Fatal error: PIC reference to Sysmap is indirect.
>
> *** Error code 1
>
> Stop.
> nbmake: stopped in /home/netbsd/src/src/sys/arch/vax/compile/test
>
> Any ideas?
>
> /Anton
>