Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 15:48:48 -0500
From:      Brooks Davis <brooks@freebsd.org>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: this breaks builds of head on stable/9 (Re: svn commit: r257268 - head/gnu/usr.bin/binutils/ld
Message-ID:  <20131101204848.GA44088@lor.one-eyed-alien.net>
In-Reply-To: <20131101061842.GA8911@onelab2.iet.unipi.it>
References:  <CA%2BhQ2%2Bh3LA%2Buk6RQg5a6QHAEedEZPZ=RUbLCZ1ZqFvNNi3EAAg@mail.gmail.com> <20131101020924.GB32951@lor.one-eyed-alien.net> <20131101061842.GA8911@onelab2.iet.unipi.it>

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

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

On Fri, Nov 01, 2013 at 07:18:42AM +0100, Luigi Rizzo wrote:
> On Thu, Oct 31, 2013 at 09:09:24PM -0500, Brooks Davis wrote:
> > On Thu, Oct 31, 2013 at 06:02:25PM -0700, Luigi Rizzo wrote:
> > > as per the subject, after this commit building head on stable/9
> > > fails with the error below:
> > >=20
> > > =3D=3D=3D> lib/libpam/modules/pam_krb5 (all)
> > > make: don't know how to make
> > > /media/bsd10/usr/home/luigi/FreeBSD/head/../usr/obj-pico-amd64/media/=
bsd10/usr/home/luigi/FreeBSD/head/tmp/usr/lib/libkrb5.a.
> > > Stop
> > >=20
> > > reverting the commit fixes the build.
> > >=20
> > > Any idea how this can be fixed ?
> >=20
> > I just built world and kernel with a freshly checked out head on
> > ref9-amd64 so I supect something in your environment.  This change
> > should only impact the installed copy of ld which would have no effect
> > on a 9-stable system.  Any portion of the build system using a version
> > effected by this change is broken since only the cross build version
> > should be used and that one will have it's own sysroot value as always
> > it always has.
>=20
> ok so what happens is the following (trying to build HEAD on 9.2, both am=
d64)
>=20
> - WITHOUT_CLANG and related options:
>     "make toolchain"	fails with the error on krb5
>     "make buildworld"	works, and a subsequent
> 				"make toolchain" also works
>=20
> - without options (so compiling CLANG)
>=20
>     "make toolchain"	fails with the error below
>=20
>     building shared library libc.so.7
>     /usr/bin/ld: this linker was not configured to use sysroots
>     cc: error: linker command failed with exit code 1 (use -v to see invo=
cation)
>     *** [libc.so.7] Error code 1
>     1 error
>     *** [all] Error code 2
>     1 error
>=20
>=20
> "make toolchain" on an empty tree used to work until before this commit,
> and does work if i revert this single change
>=20
> So does this mean that 'toolchain' now has some prerequisites ?

I think I've found it.  I tried the last one first since it was the most
bizzare and about 40 lines up there was fairly obvious error output that
told me what was wrong.  The issue is that the :U modifer I used is a
bmake feature and that the toolchain target doesn't bootstrap bmake (or
perhaps doesn't do it early enough).  I plan to commit a workaround for
this particular case, but we probably need to alter the toolchain and
kernel-toolchain targets to bootstrap bmake on older systems or we'll
run into this again with some future change somewhere else.

-- Brooks

--wRRV7LY7NUeQGEoC
Content-Type: application/pgp-signature

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

iD8DBQFSdBOtXY6L6fI4GtQRAkj2AKCsabaZH+l1M9UOmJX+OuWFO21bPwCgrDGc
qfDP7kOh1rTaVhsTiatxlzw=
=Ovuw
-----END PGP SIGNATURE-----

--wRRV7LY7NUeQGEoC--



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