Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

building sysinst in -current



Dear list,

sorry if this is somewhere documented, in this case I was just unable to find. And I hope this is the right list to ask...

Background:

I try to build g4u [1], an image cloning tool based on current dated 20091018. The kernel I built on these sources names himself:

NetBSD  5.99.20 NetBSD 5.99.20 (GENERIC) #0: Sat Dec  5 11:55:26 UTC
2009  root@:/usr/obj/sys/arch/i386/compile/GENERIC i386

I want to build G4U myself, as I would need the kernel to know GPT to make it useful for the cluster I administrate.

Problem:

The build step has in principle two steps: first a build.sh with "tools distribution kernel=OWN_G4U_CONFIG" and finally:

cd distrib/i386/g4u

env G4U_BUILD_KERNEL=${G4U_BUILD_KERNEL} \
$owd/obj.${arch}/tooldir/bin/nbmake-i386 OBJMACHINE=1 2>&1 \
| tee -a log.${arch}

The Makefile builds floppy images as well as a CD image:

dependall all: g4u1.fs g4u.iso
        ls -l `pwd`/g4u*fs
        ls -l `pwd`/g4u.iso

g4u1.fs: ${FLOPPYDIR}/$O/g4u1.fs
        ln -f ${FLOPPYDIR}/$O/g4u*.fs .

g4u.iso: ${CDDIR}/$O/g4u.iso
        ln -f ${CDDIR}/$O/g4u.iso .


During the CD image my build process stops with

Copying boot.cfg to
/usr/src/distrib/i386/cdroms/bootcd-g4u/obj.i386/cdrom ...
mkdir -p cdrom/etc
cp
/usr/src/distrib/i386/cdroms/bootcd-g4u/../../ramdisks/common/dot.profile
cdrom/etc/rc
echo "" >> cdrom/etc/rc
echo "# exit to single user mode" >> cdrom/etc/rc
echo "exit 1" >> cdrom/etc/rc
mkdir -p cdrom/mnt2 cdrom/targetroot
cp /usr/src/distrib/utils/sysinst/arch/i386/obj.i386/sysinst cdrom
cp: /usr/src/distrib/utils/sysinst/arch/i386/obj.i386/sysinst: No such
file or directory

*** Failed target:  image_md_pre
*** Failed command: cp
/usr/src/distrib/utils/sysinst/arch/i386/obj.i386/sysinst cdrom
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/i386/cdroms/bootcd-g4u

*** Failed target:
/usr/src/distrib/i386/g4u/../cdroms/bootcd-g4u/obj.i386/g4u.iso
*** Failed command: cd /usr/src/distrib/i386/g4u/../cdroms/bootcd-g4u ;
/usr/src/obj.i386/tooldir/bin/nbmake G4UVERSION=2.5
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/i386/g4u

Looking around, it seems that sysinst is not build on my system at all (sysinst(8) also suggests that it is usually not there). Seems that a build.sh distribution doesn't build sysinst (right?).

I tried to force sysinst to build with a

cd /usr/src/distrib/utils/sysinst
TOOLDIR=/usr/src/obj.i386/tooldir/ OBJDIR=/usr/src/obj.i386/ \ DESTDIR==/usr/src/obj.i386/destdir/ \
RELEASEDIR=/usr/src/obj.i386/releasedir make

but this ends in

#    create  i386/sysinstmsgs.de
/usr/src/obj.i386/tooldir//bin/nbsed "s/@@VERSION@@/5.99.20/" /usr/src/distrib/u tils/sysinst/arch/i386/../../msg.mi.de /usr/src/distrib/utils/sysinst/arch/i386/ msg.md.de /usr/src/distrib/utils/sysinst/arch/i386/../../msg.mbr.de | /usr/src/ obj.i386/tooldir//bin/nbsed "s/@@MACHINE@@/i386/" | /usr/src/obj.i386/tooldir// bin/nbawk -f /usr/src/distrib/utils/sysinst/arch/i386/../../unif.awk -v defines= "BOOTSEL AOUT2ELF" | /bin/sh /usr/src/distrib/utils/sysinst/arch/i386/../../msg
_xlat.sh -f sysinstmsgs.fmtcnt > sysinstmsgs.de
ERROR: unknown message "usage"
ERROR: unknown message "sysinst_message_language"
ERROR: unknown message "sysinst_message_locale"
ERROR: unknown message "Yes"
ERROR: unknown message "No"

[tons of more error messages]

At this point I'm a bit lost, maybe someone could give me a hint on how to proceed from here.

Thanks a lot,

   Torsten


[1] http://www.feyrer.de/g4u/
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>                                                              <>
<> Dr. Torsten Harenberg     harenberg%physik.uni-wuppertal.de@localhost  <>
<> Bergische Universitaet                                       <>
<> FB C - Physik             Tel.: +49 (0)202 439-3521          <>
<> Gaussstr. 20              Fax : +49 (0)202 439-2811          <>
<> 42097 Wuppertal                                              <>
<>                                                              <>
<><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>


Home | Main Index | Thread Index | Old Index