Date: Mon, 15 Sep 2008 18:18:28 +0200 From: Dominic Fandrey <kamikaze@bsdforen.de> To: Peter Jeremy <peterjeremy@optushome.com.au> Cc: freebsd-stable@freebsd.org Subject: Re: crossbuilding of RELENG_7 broken? Message-ID: <48CE8AD4.8090408@bsdforen.de> In-Reply-To: <20080915084126.GW15376@server.vk2pj.dyndns.org> References: <48CD3A19.8030404@bsdforen.de> <20080915084126.GW15376@server.vk2pj.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy wrote: > On 2008-Sep-14 18:21:45 +0200, Dominic Fandrey <kamikaze@bsdforen.de> wrote: >> Building them works fine, but when I nfs-mount /usr/obj and /usr/src on the >> target system, install does not work. Neiter installkernel nor installworld. > > You're going to have to give more detail - like your exact command and > the last few dozen lines of the make install{world,kernel} output. > So well, here it is: Command on the amd64 build machine: # env MAKEOBJDIRPREFIX=/usr/obj/VECTRA-7 make -j4 buildworld buildkernel KERNCONF=VECTRA-7 It builds without incident and yes I did try without -j4 and it didn't work either. On the i386 target machine, /usr/src and /usr/obj are NFS mounts: =============================================================== # env MAKEOBJDIRPREFIX=/usr/obj/VECTRA-7/i386 make installkernel KERNCONF=VECTRA-7 -------------------------------------------------------------- >>> Installing kernel -------------------------------------------------------------- cd /usr/obj/VECTRA-7/i386/usr/src/sys/VECTRA-7; MAKEOBJDIRPREFIX=/usr/obj/VECTRA-7/i386 MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE=pentium4 GROFF_BIN_PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/sbin:/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/bin:/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/games:/usr/obj/VECTRA-7/i386/usr/src/tmp/usr/sbin:/usr/obj/VECTRA-7/i386/usr/src/tmp/usr/bin:/usr/obj/VECTRA-7/i386/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make KERNEL=kernel install thiskernel=`sysctl -n kern.bootfile` ; if [ ! "`dirname "$thiskernel"`" -ef /boot/kernel ] ; then chflags -R noschg /boot/kernel ; rm -rf /boot/kernel ; else if [ -d /boot/kernel.old ] ; then chflags -R noschg /boot/kernel.old ; rm -rf /boot/kernel.old ; fi ; mv /boot/kernel /boot/kernel.old ; sysctl kern.bootfile=/boot/kernel.old/"`basename "$thiskernel"`" ; fi mkdir -p /boot/kernel install -p -m 555 -o root -g wheel kernel /boot/kernel ¨èè@èFreeBSDЮ: not found @@ææððWðW: not found ELF: not found /usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/bin/install: 19: Syntax error: ")" unexpected *** Error code 2 Stop in /usr/obj/VECTRA-7/i386/usr/src/sys/VECTRA-7. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. =============================================================== I can successfully install the kernel with the following command: # cd /usr/obj/VECTRA-7/i386/usr/src/sys/boot/i386 # make install The system boots fine with a kernel installed like this. I have found no such workaround for installing world. =============================================================== # env MAKEOBJDIRPREFIX=/usr/obj/VECTRA-7/i386 make installworld mkdir -p /tmp/install.LaibTyRC for prog in [ awk cap_mkdb cat chflags chmod chown date echo egrep find grep install-info ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl test true uname wc zic; do cp `which $prog` /tmp/install.LaibTyRC; done cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/VECTRA-7/i386 MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE=pentium4 GROFF_BIN_PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/sbin:/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/bin:/usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/games:/usr/obj/VECTRA-7/i386/usr/src/tmp/usr/sbin:/usr/obj/VECTRA-7/i386/usr/src/tmp/usr/bin:/usr/obj/VECTRA-7/i386/usr/src/tmp/usr/games:/tmp/install.LaibTyRC make -f Makefile.inc1 reinstall -------------------------------------------------------------- >>> Making hierarchy -------------------------------------------------------------- cd /usr/src; make -f Makefile.inc1 hierarchy cd /usr/src/etc; make distrib-dirs mtree -eU -f /usr/src/etc/mtree/BSD.root.dist -p / root changed type expected dir found link mtree -eU -f /usr/src/etc/mtree/BSD.var.dist -p /var tmp changed type expected dir found link ./tmp/vi.recover missing (created) mtree -eU -f /usr/src/etc/mtree/BSD.usr.dist -p /usr mtree -eU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include mtree -deU -f /usr/src/etc/mtree/BIND.chroot.dist -p /var/named mtree -deU -f /usr/src/etc/mtree/BSD.sendmail.dist -p / cd /; rm -f /sys; ln -s usr/src/sys sys cd /usr/share/man/en.ISO8859-1; ln -sf ../man* . cd /usr/share/man; set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done cd /usr/share/openssl/man; set - `grep "^[a-zA-Z]" /usr/src/etc/man.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . cd /usr/share/nls; set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`; while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; done -------------------------------------------------------------- >>> Installing everything -------------------------------------------------------------- cd /usr/src; make -f Makefile.inc1 install ===> share/info (install) ===> lib (install) ===> lib/csu/i386-elf (install) install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib ¨èè@èFreeBSDЮ: not found @@ææððWðW: not found ELF: not found /usr/obj/VECTRA-7/i386/usr/src/tmp/legacy/usr/bin/install: 19: Syntax error: ")" unexpected *** Error code 2 Stop in /usr/src/lib/csu/i386-elf. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48CE8AD4.8090408>