NetBSD Current kompilieren

minimike

Berufsrevolutionär
Hi

Ich wollte mir mal NetBSD Current anschauen. Der 6er Brunch soll ja im März mitsammt ZFS erscheinen und die mittlerweile kurze Todoliste ermunterte mich dazu. Auf meiner Spiel VM ist NetBSD 5.1 installiert. Zusätzlich habe ich gcc3 binutils usw. auch installiert. Der Sourcetree habe ich auch schon in /usr/src besorgt und entpackt.
Nur bemeckert er stoisch meinen Compiler. Ich denke mal irgendwas mach ich falsch. Nur was?

export HOST_CC=/usr/pkg/gcc3/bin/gcc
export HOST_CXX=/usr/pkg/gcc3/bin/g++
export HOST_SH=/usr/pkg/bin/bash

Code:
# ./build.sh tools
===> build.sh command:    ./build.sh tools
===> build.sh started:    Mon Jan 17 17:29:50 CET 2011
===> NetBSD version:      5.99.43
===> MACHINE:             amd64
===> MACHINE_ARCH:        x86_64
===> Build platform:      NetBSD 5.1 amd64
===> HOST_SH:             /usr/pkg/bin/bash
===> No $TOOLDIR/bin/nbmake, needs building.
===> Bootstrapping nbmake
checking for sh... /usr/pkg/bin/bash
checking for gcc... /usr/pkg/gcc3/bin/gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

ERROR: Configure of nbmake failed
*** BUILD ABORTED ***

Code:
# pkg_info                                                                     
gcc34-3.4.6nb3      This is the gcc 3.4 compiler
gmake-3.82nb1       GNU version of 'make' utility
gawk-3.1.7          GNU awk
m4-1.4.15           GNU version of UNIX m4 macro language processor
bison-2.4.3         GNU yacc(1) replacement
gcc3-c-3.3.6nb1     GNU Compiler Collection, v3 - C compiler
gcc3-c++-3.3.6      GNU Compiler Collection, v3 - C++ compiler
gcc3-objc-3.3.6     GNU Compiler Collection, v3 - Objective C compiler
pcc-current-0.9.9.20100810 Portable C compiler
bash-4.1nb1         The GNU Bourne Again Shell
binutils-2.17nb1    GNU binary utilities
libidn-1.19         Internationalized Domain Names command line tool
wget-1.12nb1        Retrieve files from the 'net via HTTP and FTP
Am Ende würde ich ganz gern als Target ein ISO sowie einen Tarball (Destdir und dann packen) haben
 
Danke aber die ISO wäre für mich die zweite Wahl. Hauptaugenmerk wäre einen Tarball zu bauen. Ich habe Apple Darwin, FreeBSD, KfreebSD auf einem Zpool installiert. Fehlt ja noch NetBSD ;)

Subvolume erstellen, von Grund auf konfigurierten Tarball darin entpacken, mit Grub2 booten. Man müsste vorher nur noch die zwei Module laden damit das dann von ZFS bootet.
 
Also ich habe Debian KfreeBSD in VMware installiert und anschliessend mit debootstrap ein Target installiert. Nach einem chroot hinein dann noch alles was man so als Basisystem (Kernel usw.) installiert, Passwörter sowie Netzwerk konfiguriert. Den Chroot verlassen und das Target dann Packen. Den Tarball dann in einem ZFS Subvolume Entpacken. Wichtig ist das wenn von ZFS gebootet werden soll die ersten 68 KB am Start der Platte frei bleiben! Braucht man für Grub2 denn damit werden alle Systeme direkt gestartet. Grub2 muss man von Hand konfen. Ich habe das Boottarget im obersten ZFS Volume gespeichert. Die Systeme booten alle dann von Subvolumes. Ist auf einem Desktop sehr fein. Auf einem Server kann man dann aber die serielle Konsole beim Booten nicht benutzen. Erst wenn die Box hochgefahren ist kann man die aktivieren was ich für einen herben Verlust halte.
 
Mal ne Frage die Komplette Distribution kann man auch von CD installieren? Also Compiler, Manuals usw.

Ich habe das unter NetBSD 5.1 soweit das er kompiliert aber der Build schlägt fehl

Code:
install ===> share/xml
#   install  /usr/obj/destdir.amd64/usr/share/xml/catalog
/usr/obj/tooldir.NetBSD-5.1-amd64/bin/x86_64--netbsd-install -U -M /usr/obj/destdir.amd64/METALOG -D /usr/obj/destdir.amd64 -h sha256 -N /usr/src/etc -c  -r  -o root  -g wheel  -m 444   /usr/src/share/xml/catalog.atf /usr/obj/destdir.amd64/usr/share/xml/catalog
install ===> share/zoneinfo
#    create  zoneinfo/posix_only
mkdir -p /usr/obj/share/zoneinfo/builddir
cd /usr/src/share/zoneinfo &&  /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbzic -y "/bin/sh /usr/src/share/zoneinfo/yearistype.sh" -d /usr/obj/share/zoneinfo/builddir -L /dev/null africa antarctica asia australasia  europe northamerica southamerica pacificnew etcetera factory  backward systemv solar87 solar88 solar89
"africa", line 94: time overflow

*** Failed target:  posix_only
*** Failed command: cd /usr/src/share/zoneinfo && /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbzic -y "/bin/sh /usr/src/share/zoneinfo/yearistype.sh" -d /usr/obj/share/zoneinfo/builddir -L /dev/null africa antarctica asia australasia europe northamerica southamerica pacificnew etcetera factory backward systemv solar87 solar88 solar89
*** Error code 1

Stop.
nbmake: stopped in /usr/src/share/zoneinfo

*** Failed target:  install-zoneinfo
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="share/"; real="/usr/src/share" ;; *) this="share/${dir}/"; real="/usr/src/share/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget zoneinfo install
*** Error code 1

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

*** Failed target:  install-share
*** 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/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget share install
*** 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/obj/tooldir.NetBSD-5.1-amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . install 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/obj/tooldir.NetBSD-5.1-amd64/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/obj/tooldir.NetBSD-5.1-amd64/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 ***
 
Zurück
Oben