Re: NetBSD world selbst bauen

From: Oliver Peter <ollie.peter(at)web.de>
Date: Wed, 1 Jun 2005 11:47:17 +0200

On Mon, May 30, 2005 at 04:45:34PM +0200, Jens Rehsack wrote:
> Hallo zusammen,

Hallo Jens!

evtl. waer Dein Problem in einer anderen Liste besser aufgehoben, aber ich
moechte dennoch versuchen Dir zu helfen.
Der Build Prozess von FreeBSD und NetBSD unterscheiden doch ein wenig.

[...]
> Aber um dahin zu kommen, muesste ich erstmal die World
> kompilieren koennen :( (Fehlermeldungen stehen am Ende
> der Mail)
>
> Jedenfalls hab ich auch etwas gegoogled ;)
> Und bei solchen Fehlern wird geraten, die Sourcen neu
> per cvs zu ziehen.

Ich hatte ein aehnliches Problem mit den Quellen von 2.0.2,
ein Update per CVS hat geholfen - OK, nun hab ich CURRENT,
aber immerhin :)

> Aber das kann es doch nicht sein, oder? Ich meine,
> jedesmal die kompletten Sourcen neu ziehen dauert Stunden,
> und da ich das abends in meiner Freizeit mache (vorerst),
> ist das eine eher endlose Beschaeftigung und imho sinnloser
> Traffic dann.

Ich kann Dir cvsup ans Herz legen - geht mind. 3x so schnell wie CVS.

Mein cvsupfile fuer NetBSD, geht bei mir mit DSL-Lite ca. inner Stunde:

=========================================================
*default tag=.
*default release=cvs
*default delete use-rel-suffix
*default umask=002
*default host=grappa.unix-ag.uni-kl.de
#*default host=cvsup.se.netbsd.org

# Bitte anpassen :p
*default base=/home/ollie/var
*default prefix=/home/ollie/NetBSD/usr

*default compress

#netbsd-othersrc
netbsd-pkgsrc
netbsd-srcsys
netbsd-src
netbsd-xsrc
netbsd-crypto
netbsd-sharesrc
netbsd-gnusrc
#netbsd-doc
#netbsd-htdocs
=========================================================

> Hat jemand einen Tipp, wie man langsam aber sicher
> an ein selbtkompiliertes NetBSD kommt?

Hab anhand dieser Doku meine OS gebaut, aber zuvor wuerde ich Dir echt ein
src update ans Herz legen:

=====================================================
# From the root of the source tree:
cd /usr/src
# Build the toolchain:
./build.sh -O ../obj -T ../tools -U -u tools
# Build the distribution:
./build.sh -O ../obj -T ../tools -U -u distribution
# Build the kernel:
./build.sh -O ../obj -T ../tools -U -u kernel=GENERIC
# Install the kernel:
cd ../obj/sys/arch/<ARCH>/compile/GENERIC
su
mv /netbsd /netbsd.old
cp netbsd /netbsd
# Reboot into the new kernel:
shutdown -r now
# Install the new userland:
cd /usr/src
su
./build.sh -O ../obj -T ../tools -U install=/
# Follow the instruction in the output for fixing obsolete files, for
example :
/usr/src/etc/postinstall -s /usr/src -d // fix defaults mtree obsolete
# Update /etc:
/usr/sbin/etcupdate -s /usr/src/etc
# Optionally reboot to ensure all running services are using the new
binaries:
shutdown -r now
=====================================================

Hoff' das hilf ein wenig.

einen schoenen Tag
Ollie
 
> Danke schonmal im Voraus,
> Jens
>
> --- SNIPP 1
> /usr/src/obj/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-c++ -Os -pipe
> -DHAVE_CONFIG_H -I/usr/src/gnu/dist/groff/src/include
> -I/usr/src/gnu/usr.bin/groff/src/include -Werror -mcpu=pentium2 -mmmx
> -fno-rtti -fno-exceptions -nostdinc++ -isystem-cxx
> /usr/src/obj/destdir.i386/usr/include/g++ -nostdinc -isystem
> /usr/src/obj/destdir.i386/usr/include -c
> /usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp
> /usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:25:21: eqn_tab.h: No
> such file or directory
> /usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp:60: error: `OVER' was not
> ...
> *** Failed target: lex.o
> *** Failed command:
> /usr/src/obj/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-c++ -Os -pipe
> -DHAVE_CONFIG_H -I/usr/src/gnu/dist/groff/src/include
> -I/usr/src/gnu/usr.bin/groff/src/include -Werror -mcpu=pentium2 -mmmx
> -fno-rtti -fno-exceptions -nostdinc++ -isystem-cxx
> /usr/src/obj/destdir.i386/usr/include/g++ -nostdinc -isystem
> /usr/src/obj/destdir.i386/usr/include -c
> /usr/src/gnu/dist/groff/src/preproc/eqn/lex.cpp
> *** Error code 1
>
> Stop.
> nbmake: stopped in /usr/src/gnu/usr.bin/groff/src/preproc/eqn
> --- END 1
> # create eqn/eqn.d
> CC=/tooldir.NetBSD-2.0.2-i386/bin/i386--netbsdelf-gcc
> /tooldir.NetBSD-2.0.2-i386/bin/nbmkdep -f eqn.d -- -DHAVE_CONFIG_H
> -I/usr/src/gnu/dist/groff/src/include
> -I/usr/src/gnu/usr.bin/groff/src/include -nostdinc++ -isystem-cxx
> /usr/obj/destdir.i386/usr/include/g++
> -nostdinc -isystem /usr/obj/destdir.i386/usr/include eqn.cpp
> /usr/src/gnu/dist/groff/src/preproc/eqn/eqn.y:27:17: box.h: No such file
> or directory
> nbmkdep: compile failed.
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/gnu/usr.bin/groff/src/preproc/eqn
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/gnu/usr.bin/groff/src/preproc
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/gnu/usr.bin/groff/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/gnu/usr.bin/groff
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/gnu/usr.bin
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/gnu
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
> --- SNIPP 2
>
> --- END 2
>
>
> To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
> with "unsubscribe de-bsd-questions" in the body of the message

-- 
Oliver Peter        hoschi(at)onemoreday.de        ICQ   113969174
"Hoschi"          http://www.onemoreday.de      Mob 01796805877
"Worker bees can leave. Even drones can fly away. The Queen is their slave."
								 ~Haiku
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 01 Jun 2005 - 12:05:30 CEST

search this site