Subject: bin/31475: netbsd-3 cross build (from i386 to macppc) fails in ssh-keyscan
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <timo.schoeler@riscworks.net>
List: netbsd-bugs
Date: 10/04/2005 22:23:00
>Number:         31475
>Category:       bin
>Synopsis:       netbsd-3 cross build (from i386 to macppc) fails in ssh-keyscan
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 04 22:23:00 +0000 2005
>Originator:     Timo Schoeler
>Release:        NetBSD 2.0.2-RELEASE
>Organization:
RISCworks
>Environment:
NetBSD blackjack-a.riscworks.net 2.0.2 NetBSD 2.0.2 (BLACKJACK-A) #0: Sun Sep 25 22:11:01 CEST 2005  tis@blackjack-a.riscworks.net:/usr/obj/sys/arch/i386/compile/BLACKJACK-A i386
>Description:
cross building freshly checked out netbsd-3 fails:

(...)

#   compile  ssh-keyscan/ssh-keyscan.o
/usr/tools/bin/powerpc--netbsd-gcc -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -O4 -pipe -mcpu=7400 -maltivec -mabi=altivec -O4  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized  -Werror   -I/usr/src/crypto/dist/ssh -DHAVE_LOGIN_CAP -DHAVE_MMAP -DHAVE_OPENPTY -DUSE_PAM -DGSSAPI -I/usr/dest/usr/include/gssapi -DKRB5 -I/usr/dest/usr/include/krb5 -DKRB4 -DAFS -I/usr/dest/usr/include/kerberosIV -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLIBWRAP -DSKEY  -nostdinc -isystem /usr/dest/usr/include  -c    /usr/src/crypto/dist/ssh/ssh-keyscan.c
/usr/src/crypto/dist/ssh/ssh-keyscan.c: In function `hostjump':
/usr/src/crypto/dist/ssh/ssh-keyscan.c:312: warning: no return statement in function returning non-void

*** Failed target:  ssh-keyscan.o
*** Failed command: /usr/tools/bin/powerpc--netbsd-gcc -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -O4 -pipe -mcpu=7400 -maltivec -mabi=altivec -O4 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Werror -I/usr/src/crypto/dist/ssh -DHAVE_LOGIN_CAP -DHAVE_MMAP -DHAVE_OPENPTY -DUSE_PAM -DGSSAPI -I/usr/dest/usr/include/gssapi -DKRB5 -I/usr/dest/usr/include/krb5 -DKRB4 -DAFS -I/usr/dest/usr/include/kerberosIV -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLIBWRAP -DSKEY -nostdinc -isystem /usr/dest/usr/include -c /usr/src/crypto/dist/ssh/ssh-keyscan.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.bin/ssh/ssh-keyscan

*** Failed target:  dependall
*** Failed command: cd /usr/src/usr.bin/ssh/ssh-keyscan; /usr/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.bin/ssh/ssh-keyscan

*** Failed target:  dependall-ssh-keyscan
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="usr.bin/ssh/"; real="/usr/src/usr.bin/ssh" ;; *) this="usr.bin/ssh/${dir}/"; real="/usr/src/usr.bin/ssh/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget ssh-keyscan dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.bin/ssh

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

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

*** Failed target:  dependall-usr.bin
*** 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 "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget usr.bin dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** 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 "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall BUILD_tools=no BUILD_lib=no
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** 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 "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-build
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** 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 "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** 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 "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . distribution
*** Error code 1

Stop.
nbmake: stopped in /usr/src

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

command invoking the build process:

./build.sh -m macppc -O /usr/obj -T /usr/tools -D /usr/dest release
>How-To-Repeat:
check out netbsd-3 from cvs, try to build
>Fix:
yes, please :)