Subject: 32 / 64 bit (?) kernel build error.
To: None <port-sparc64@NetBSD.org>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-sparc64
Date: 03/07/2005 19:53:51
Hi.

Source CVSed March 4. tried to build a release faild with:
#   compile  GENERIC_SUN4U/machfb.o
/usr/src/current/tooldir/bin/sparc--netbsdelf-gcc -mno-fpu -ffreestanding -=
O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissin=
g-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in=
-bss -Dsparc64 -D__sparc64__ -m32 -Wa,-Av8plusa -mcpu=3Dultrasparc -I. -I/u=
sr/src/current/src/sys/arch -I/usr/src/current/src/sys -nostdinc -DLKM -DMA=
XUSERS=3D64 -D_KERNEL -D_KERNEL_OPT -I/usr/src/current/src/sys/dist/ipf -c =
/usr/src/current/src/sys/dev/pci/machfb.c
/usr/src/current/src/sys/dev/pci/machfb.c: In function `mach64_attach':
/usr/src/current/src/sys/dev/pci/machfb.c:606: warning: cast to pointer fro=
m integer of different size

*** Failed target:  machfb.o


I tried to compile a GENERIC32 kernel and got the same error.=20
I disabled machfb in the kernel config file and then I got:

#   compile  GENERIC32/autoconf.o
/usr/src/current/tooldir/bin/sparc--netbsdelf-gcc -mno-fpu -ffreestanding -=
O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissin=
g-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in=
-bss -Dsparc64 -D__sparc64__ -m32 -Wa,-Av8plusa -mcpu=3Dultrasparc -I. -I/u=
sr/src/current/src/sys/arch -I/usr/src/current/src/sys -nostdinc -DLKM -DMA=
XUSERS=3D64 -D_KERNEL -D_KERNEL_OPT -I/usr/src/current/src/sys/dist/ipf -c =
/usr/src/current/src/sys/arch/sparc64/sparc64/autoconf.c
/usr/src/current/src/sys/arch/sparc64/sparc64/autoconf.c: In function `romg=
etcursoraddr':
/usr/src/current/src/sys/arch/sparc64/sparc64/autoconf.c:774: warning: cast=
 to pointer from integer of different size
/usr/src/current/src/sys/arch/sparc64/sparc64/autoconf.c:775: warning: cast=
 to pointer from integer of different size

*** Failed target:  autoconf.o
--=20


tsch=FC=DF,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/