Subject: Crossbuilding distribution fails.
To: None <port-macppc@NetBSD.ORG>
From: Andreas Drewke <andreas_dr@gmx.de>
List: port-macppc
Date: 12/01/2004 17:04:15
Hallo,

I am trying to crosscompile NetBSD/macppc on my x86 box and like to install it 
over from nfs to the local harddrive of my 7300.

I already got it netbooted with crossbuild ofwboot and netbsd kernel. That was 
fun. But now i am missing the distribution itself

So to summarite my build.sh usage:

1. Building the tools via 
  ./build.sh -m macppc -T /usr/cross tools
works fine.

2. Building the kernel via 
  ./build.sh -T /usr/cross -m macppc kernel=PM7300
works fine.

3. But building the distribution via
  ./build.sh -m macppc -T /usr/cross tools distribution
fails.

Does anyone is able to crosscompile NetBSD/macppc on x86?Any ideas?
please have a look at the error msg.

Regards
Andreas

----------------------------------------------------------------------------------------------------------
/usr/cross/bin/powerpc--netbsd-objcopy -O binary ofwboot.el1 ofwboot
#      link  ofwboot//usr/src/sys/arch/macppc/stand/ofwboot/ofwboot.xcf
/usr/cross/bin/powerpc--netbsd-ld -s -N 
-T /usr/src/sys/arch/macppc/stand/ofwboot/../fixcoff/elf32_powerpc_merge.x -e 
_entry  -Ttext E00000 -Bstatic -o ofwboot.mrg  Xcoffxtra.o  Locore.o boot.o 
ofdev.o hfs.o net.o netif_of.o alloc.o vers.o ofwmagic.o 
byteorder.o /usr/src/sys/arch/macppc/stand/ofwboot/obj/lib/sa/libsa.a /usr/src/sys/arch/macppc/stand/ofwboot/obj/lib/z/libz.a /usr/src/sys/arch/macppc/stand/ofwboot/obj/lib/kern/libkern.a
/usr/cross/bin/powerpc--netbsd-ld: cannot open Xcoffxtra.o: No such file or 
directory

*** Failed target:  ofwboot.xcf
*** Failed command: /usr/cross/bin/powerpc--netbsd-ld -s -N 
-T /usr/src/sys/arch/macppc/stand/ofwboot/../fixcoff/elf32_powerpc_merge.x -e 
_entry -Ttext E00000 -Bstatic -o ofwboot.mrg Xcoffxtra.o Locore.o boot.o 
ofdev.o hfs.o net.o netif_of.o alloc.o vers.o ofwmagic.o 
byteorder.o /usr/src/sys/arch/macppc/stand/ofwboot/obj/lib/sa/libsa.a /usr/src/sys/arch/macppc/stand/ofwboot/obj/lib/z/libz.a /usr/src/sys/arch/macppc/stand/ofwboot/obj/lib/kern/libkern.a
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/macppc/stand/ofwboot

*** Failed target:  dependall
*** Failed command: 
cd /usr/src/sys/arch/macppc/stand/ofwboot; /usr/cross/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/macppc/stand/ofwboot

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

Stop.
nbmake: stopped in /usr/src/sys/arch/macppc/stand

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

Stop.
nbmake: stopped in /usr/src/sys/arch/macppc

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

Stop.
nbmake: stopped in /usr/src/sys/arch

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

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

*** Failed target:  dependall-sys
*** 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/cross/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; 
_makedirtarget sys 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/cross/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/cross/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/cross/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; 
_makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

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




www: http://drewke.net / icq:175089452