Subject: Cross compile with ro-source tree
To: None <tech-toolchain@NetBSD.org>
From: Richard =?iso-8859-1?q?K=E4stner?= <richard.kaestner@kabsi.at>
List: tech-toolchain
Date: 04/30/2007 12:12:44
not exactly a toolchain only question, but I hope to find answers here:
trying to cross compile toolchain and NetBSD (kernel, world, ...) on a FreeBSD
system.
If I have rw-access to the source tree everything works with build.sh.
However, mounting 'ro' refuses to compile (
In the past, I was told to compile from a ro-source tree (which worked 4
months ago fine) and makes sense ...
what am I doing wrong?
Any help / hint appreciated
Thanks in advance
Richard Kaestner
Sources updated via cvs from
anoncvs@anoncvs.NetBSD.org:/cvsroot
Here my settings / Dir-structure:
sv03 is the FreeBSD host (my fastest box)
SV03X08 is a FreeBSD - jail at: /usr/JAILS/SV03X08/
Every architecture has its own base-dir:
(inside jail):
/usr/NETBSD/<arch>/SRC
/usr/NETBSD/<arch>/OBJ
/usr/NETBSD/<arch>/DEST
/usr/NETBSD/<arch>/RELEASE
(<arch> is evbarm or i386 )
sv03(root) NETBSD> mount | grep -i netbsd
/usr/JAILS/SV03X08/usr/NETBSD/usr/src
on /usr/JAILS/SV03X08/usr/NETBSD/evbarm/SRC (nullfs, local, read-only)
/usr/JAILS/SV03X08/usr/NETBSD/usr/src
on /usr/JAILS/SV03X08/usr/NETBSD/i386/SRC (nullfs, local, read-only)
Some settings
I packed all commands in scripts to get logs - and help my brain not to
forget ;=)
So all the '# RFK : ' - lines are my own comments
# RFK : ------------- vars.sh: ------------------
# RFK : LOGDIR = /usr/NETBSD/evbarm/LOG/2007-04-30
# RFK : MYBUILD_SH = build.sh
# RFK :
# RFK : MYARCH = evbarm
# RFK : BASEDIR = /usr/NETBSD
# RFK : SCRIPTDIR = /usr/NETBSD/scripts
# RFK :
# RFK : REAL_SRC = /usr/NETBSD/usr/src/
# RFK : BSDSRCDIR = /usr/NETBSD/evbarm/SRC
# RFK :
# RFK : TOOLDIR = /usr/NETBSD/TOOLS/evbarm/
# RFK : BSDOBJDIR = /usr/NETBSD/evbarm/OBJ
# RFK : DESTDIR = /usr/NETBSD/evbarm/DEST
# RFK : RELEASEDIR = /usr/NETBSD/evbarm/RELEASE
# RFK :
# RFK : TESTAREA = /usr/NETBSD/evbarm/TestArea
# RFK : TESTINSTALL = /usr/NETBSD/evbarm/TestArea/TESTINSTALL
# RFK :
# RFK : MAKEOBJDIRPREFIX =
# RFK : MAKECONF = /usr/NETBSD/scripts/mk.conf-evbarm
# RFK :
# RFK : Buildhost: FreeBSD SV03X08.rfk.priv 6.2-RELEASE-p1 FreeBSD
6.2-RELEASE-p1 #1: Tue Feb 13 22:15:58 CET 2007
root@sv03.rfk.priv:/usr/obj/usr/src/sys/RICHARD_SMP_SND i386
# RFK : ------------------------------------------
# RFK : -------------
mk.conf: /usr/NETBSD/scripts/mk.conf-evbarm -------------
# RFK : DISTDIR=/usr/DISTFILES
# RFK : MKOBJDIRS=yes
# RFK : PACKAGES=/usr/PACKAGES
# RFK : RFK_INFO=everything_default_here
# RFK : UPDATE=1
# RFK : WRKOBJDIR?=/usr/rfk/wrkobjdir
# RFK : ------------- ------------- ------------- ------
# RFK : +++ do_mount +++
# RFK : ------------- MOUNTED -------------
# RFK : -----------------------------------
# RFK : cmd=./build.sh -m evbarm kernel=TS7200
===> build.sh command: ./build.sh -m evbarm kernel=TS7200
===> build.sh started: Mon Apr 30 11:22:53 CEST 2007
===> NetBSD version: 4.99.18
===> MACHINE: evbarm
===> MACHINE_ARCH: arm
===> Build platform: FreeBSD 6.2-RELEASE-p1 i386
===> HOST_SH: /bin/sh
# objdir /usr/NETBSD/evbarm/OBJ/tools
ln: obj: Read-only file system
===> TOOLDIR path: /usr/NETBSD/TOOLS/evbarm/
===> DESTDIR path: /usr/NETBSD/evbarm/DEST
===> RELEASEDIR path: /usr/NETBSD/evbarm/RELEASE
===> makewrapper: /usr/NETBSD/TOOLS/evbarm//bin/nbmake-evbarm
===> Updated /usr/NETBSD/TOOLS/evbarm//bin/nbmake-evbarm
===> Building kernel without building new tools
# objdir /usr/NETBSD/evbarm/OBJ/sys/arch/evbarm/compile
ln: obj: Read-only file system
===> Building kernel: TS7200
===> Build directory: /usr/NETBSD/evbarm/SRC/sys/arch/evbarm/compile/TS7200
mkdir: /usr/NETBSD/evbarm/SRC/sys/arch/evbarm/compile/TS7200: Read-only file
system
ERROR: Cannot mkdir: /usr/NETBSD/evbarm/SRC/sys/arch/evbarm/compile/TS7200
*** BUILD ABORTED ***
--
Richard Kaestner
IT-Consulting - Training - Development
Woerthgasse 17
A-2500 Baden
Austria
richard.kaestner@ycn.com
richard.kaestner@kabsi.at