Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2004 16:02:28 +0200
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Putinas <pilkis@gmx.net>
Cc:        current@freebsd.org
Subject:   Re: build 5.2-release fails on 4.9
Message-ID:  <20040118140228.GF29936@FreeBSD.org.ua>
In-Reply-To: <002001c3ddbe$16e9ed60$1e64a8c0@spotripoli.local>
References:  <002001c3ddbe$16e9ed60$1e64a8c0@spotripoli.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--G44BJl3Aq1QbV/QL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jan 18, 2004 at 02:24:40PM +0200, Putinas wrote:
> Hello all,
> after making world and cd /usr/src/release I give command:
> make release CHROOTDIR=3D/usr/stuff/release BUILDNAME=3D5.2-RELEASE CVSRO=
OT=3D/usr/cvs NODOC=3Dyes NOPORTS=3Dyes NOPORTREADMES=3Dyes RELEASETAG=3DRE=
LENG_5_2 MAKE_ISO=3Dyes
>=20
> here is what I get after cvs from src... :
[...]
> # Ensure md.ko is loaded if md(4) is not statically compiled into the ker=
nel
> mdconfig 2>/dev/null
> ELF interpreter /libexec/ld-elf.so.1 not found
> Abort trap
> *** Error code 134 (ignored)
> env -i /usr/sbin/chroot `dirname /usr/stuff/release/mk` /`basename /usr/s=
tuff/release/mk`
> Bad system call (core dumped)
> *** Error code 140
> Stop in /usr/src/release.
> Exit 1
>=20
To build 5-CURRENT snapshot on 4.x, you do NOT need to update
/usr/src to 5-CURRENT and buildworld first, as this will 100%
result in a ENOSYS.  Instead, your /usr/obj should be populated
with the buildworld output for sources matching your running
system, that is 4.x, so if you're currently running 4.9-STABLE,
/usr/src should be the same 4.9-STABLE sources, and /usr/obj
should be a product of it.  This is what gets installed into a
chroot area as the first step of "make release".

Then "make release" can checkout 5-CURRENT sources, and produce
a snapshot of 5-CURRENT.

To do this, you also need an access to a 5-CURRENT version of
release/Makefile, so follow this procedure on a 4.x box:

	cd /tmp
	cvs co -l release/Makefile      # 5-CURRENT
	cd release
	make release WORLDDIR=3D/usr/src ...


> md.ko is loaded as module,
> but mdconfig originally was not found I compile it from src and installed=
 separetly, but now it complains about missing libraries
> any soliution for this ?
>=20
4.x uses vn(4) to produce file system images, so just ensure
that it's in the kernel.  Typing "vnconfig" under root will do
it for you.


Cheers,
--=20
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org

--G44BJl3Aq1QbV/QL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFACpHzUkv4P6juNwoRArKOAJ9QLaSPasX8c6wBWRQKOcxeOAzSpQCeOExo
TZU+FG1YrIqfM6FOX9bYryM=
=UrfK
-----END PGP SIGNATURE-----

--G44BJl3Aq1QbV/QL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040118140228.GF29936>