Subject: kern/33165: building -current as of 20060329 fails on macppc (error in )
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <timo.schoeler@riscworks.net>
List: netbsd-bugs
Date: 03/29/2006 16:25:00
>Number:         33165
>Category:       kern
>Synopsis:       building -current as of 20060329 fails on macppc (error in )
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 29 16:25:00 +0000 2006
>Originator:     Timo Schoeler
>Release:        3.0-RELEASE
>Organization:
RISCworks
>Environment:
NetBSD deneb.ts39-bln.riscworks.net 3.0 NetBSD 3.0 (DENEB_MP) #0: Fri Feb 10 12:02:12 CET 2006  root@deneb.ts39-bln.riscworks.net:/usr/obj/sys/arch/i386/compile/DENEB_MP i386
>Description:
build invoked with

./build.sh -m macppc -O /usr/obj -T /usr/tools -D /usr/dest release

as cross build on i386

(...)

#   compile  GENERIC/tlphy.o
/usr/tools/bin/powerpc--netbsd-gcc -pipe -mno-strict-align -msoft-float -Wa,-mal
tivec -ffreestanding -pipe -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zer
o-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type 
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initia
lized-in-bss -Dmacppc=macppc -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -D
LKM -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/
libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common
/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/powerp
c/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/mii/tlphy.c
/usr/src/sys/dev/mii/tlphy.c: In function `tlphy_service':
/usr/src/sys/dev/mii/tlphy.c:207: warning: passing arg 1 of `device_private' fro
m incompatible pointer type

*** Failed target:  tlphy.o
*** Failed command: echo '# ' "compile GENERIC/tlphy.o"; echo /usr/tools/bin/pow
erpc--netbsd-gcc -pipe -mno-strict-align -msoft-float -Wa,-maltivec -ffreestandi
ng -pipe -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer
-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow 
-Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Dmac
ppc=macppc -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DZS_CONSOLE_A
BORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../c
ommon/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -
I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/powerpc/string -I/usr/sr
c/sys/dist/ipf -c /usr/src/sys/dev/mii/tlphy.c; /usr/tools/bin/powerpc--netbsd-g
cc -pipe -mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding -pipe -Wret
urn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissi
ng-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -W
write-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Dmacppc=macppc -I.
 -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DZS_CONSOLE_ABORT -DMAXUSER
S=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc
/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/
lib/libkern/../../../common/lib/libc/arch/powerpc/string -I/usr/src/sys/dist/ipf
 -c /usr/src/sys/dev/mii/tlphy.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/macppc/compile/GENERIC

*** Failed target:  kern-GENERIC
*** Failed command: cd /usr/obj/sys/arch/macppc/compile/GENERIC && /usr/tools/bi
n/nbmake depend && /usr/tools/bin/nbmake
*** Error code 1

Stop.
nbmake: stopped in /usr/src/etc

*** Failed target:  release
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case
 "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;;
 *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${tar
get} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _TH
ISDIR_="${this}" "$@" ${target}; }; _makedirtarget etc release DISTRIBUTION_DONE
=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make release
*** BUILD ABORTED ***

>How-To-Repeat:
check out cvs, try to build release for macppc
>Fix: