Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2020 22:00:38 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        mike tancsa <mike@sentex.net>
Cc:        Ian Lepore <ian@freebsd.org>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>, Ed Maste <emaste@freebsd.org>
Subject:   Re: svn commit: r356465 - in stable/12: . contrib/llvm-project/clang/include/clang/CodeGen contrib/llvm-project/clang/lib/Basic/Targets contrib/llvm-project/clang/lib/CodeGen contrib/llvm-project/clang...
Message-ID:  <4CFD2966-CEFF-4D7D-A746-7BA6EA056996@FreeBSD.org>
In-Reply-To: <30934541-a4ee-4902-3b97-6afc0c1b43c9@sentex.net>
References:  <202001072001.007K1xv8001046@repo.freebsd.org> <8623c333-6047-42dc-55f8-ef651b60876c@sentex.net> <f4ae8ad0a685604d2571ea48ed054b1dddfe2e20.camel@freebsd.org> <faf936db-29e1-9a14-6b03-12e350583ace@sentex.net> <30934541-a4ee-4902-3b97-6afc0c1b43c9@sentex.net>

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

--Apple-Mail=_098EB502-D390-4A96-A6C0-290380D00BDE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 8 Jan 2020, at 19:37, mike tancsa <mike@sentex.net> wrote:
>=20
> On 1/8/2020 1:14 PM, mike tancsa wrote:
>> On 1/8/2020 1:08 PM, Ian Lepore wrote:
>>> I am at r356502
>>>> root@asrock-ryzen7a:/usr/src # sleep 20;time make -j 16 buildworld =
>
>>>> /var/log/build.out ; time make -j16 buildkernel > =
/var/log/build.out.k
>>>> [Creating objdir /usr/obj/usr/src/amd64.amd64...]
>>>> 20805.460u 1075.767s 26:02.05 1400.8%   58220+3452k =
650321+3431159io
>>>> 222076pf+0w
>>>> 1487.734u 147.997s 1:45.14 1555.7%      52726+3205k =
195595+3387101io
>>>> 70456pf+0w
>>>> root@asrock-ryzen7a:/usr/src #
>>>>=20
>>>> Just tried again. installkernel/world and reboot, yet still get
>>>> SYSTEM_LINKER: libclang will be built for bootstrapping a =
cross-linker.
>>>>=20
>>>>=20
>>>>    ---Mike
>>>>=20
>>> What's the output of "make test-system-compiler"?  That will display
>>> all the variables used to make the decisions on what to (re)build.
>> Just installed again and rebooted
>>=20
>> root@asrock-ryzen7a:/usr/src # svnlite status --show-updates
>> Status against revision: 356505
>> root@asrock-ryzen7a:/usr/src #
>>=20
>> root@asrock-ryzen7a:/usr/src # make test-system-compiler
>> USING_SYSTEM_COMPILER              =3D yes
>> MK_SYSTEM_COMPILER                 =3D yes
>> MK_CROSS_COMPILER                  =3D yes
>> MK_CLANG_BOOTSTRAP                 =3D no
>> MK_GCC_BOOTSTRAP                   =3D no
>> WANT_COMPILER_TYPE                 =3D clang
>> WANT_COMPILER_VERSION              =3D 90001
>> WANT_COMPILER_VERSION_FILE         =3D
>> lib/clang/include/clang/Basic/Version.inc
>> WANT_COMPILER_FREEBSD_VERSION      =3D 1200021
>> WANT_COMPILER_FREEBSD_VERSION_FILE =3D lib/clang/freebsd_cc_version.h
>> CC                                 =3D cc
>> COMPILER_TYPE                      =3D clang
>> COMPILER_FEATURES                  =3D  c++11 c++14 c++17 retpoline
>> COMPILER_VERSION                   =3D 90001
>> COMPILER_FREEBSD_VERSION           =3D 1200021
>> XCC                                =3D cc
>> X_COMPILER_TYPE                    =3D clang
>> X_COMPILER_FEATURES                =3D  c++11 c++14 c++17 retpoline
>> X_COMPILER_VERSION                 =3D 90001
>> X_COMPILER_FREEBSD_VERSION         =3D 1200021
>> root@asrock-ryzen7a:/usr/src # make test-system-linker
>> USING_SYSTEM_LINKER                =3D no
>> MK_SYSTEM_LINKER                   =3D yes
>> MK_LLD_BOOTSTRAP                   =3D yes
>> MK_BINUTILS_BOOTSTRAP              =3D yes
>> WANT_LINKER_TYPE                   =3D lld
>> WANT_LINKER_VERSION                =3D 90001
>> WANT_LINKER_VERSION_FILE           =3D
>> lib/clang/include/lld/Common/Version.inc
>> WANT_LINKER_FREEBSD_VERSION        =3D
>> WANT_LINKER_FREEBSD_VERSION_FILE   =3D
>> lib/clang/include/lld/Common/Version.inc
>> LD                                 =3D ld
>> LINKER_TYPE                        =3D lld
>> LINKER_FEATURES                    =3D  build-id ifunc filter =
retpoline
>> LINKER_VERSION                     =3D 90001
>> LINKER_FREEBSD_VERSION             =3D
>> c1a0a213378a458fbea1a5c77b315c7dce08fd05-1200010
>> XLD                                =3D ld
>> X_LINKER_TYPE                      =3D lld
>> X_LINKER_FEATURES                  =3D  build-id ifunc filter =
retpoline
>> X_LINKER_VERSION                   =3D 90001
>> X_LINKER_FREEBSD_VERSION           =3D
>> c1a0a213378a458fbea1a5c77b315c7dce08fd05-1200010
>> root@asrock-ryzen7a:/usr/src #
>>=20
> I also did make delete-old and make delete-old-libs, but no =
difference.
> make test-system-compiler and  make test-system-linker give the same
> results.
>=20
> Also just tried blowing away /usr/obj and the same deal. The system
> linker needs to be rebuilt each time
>=20
> make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: =
Determined
> that CC=3Dcc matches the source tree.  Not bootstrapping a =
cross-compiler.
> make[1]: "/usr/src/Makefile.inc1" line 348: SYSTEM_LINKER: libclang =
will
> be built for bootstrapping a cross-linker.

Hm, so it thinks the compiler is new enough, but not the linker?  This
might be due to the recent change of the upstream Subversion revision
into a Git coommit hash, e.g. lld used to print:

LLD 9.0.0 (FreeBSD 372316-1300005) (compatible with GNU linkers)

but now it prints:

LLD 9.0.1 (FreeBSD c1a0a213378a458fbea1a5c77b315c7dce08fd05-1300006) =
(compatible with GNU linkers)

The first number or hash is the upstream revision or commit, the second
number is "our" monotonically increasing version number.  If we make
changes that require re-bootstrapping the linker, we bump that second
number.

I think something in the MK_SYSTEM_LINKER logic may have fallen over due
to the change in this output.  Ed, any ideas?

Note I didn't see any reports about this in head, but it could also be
a problem there.

-Dimitry


--Apple-Mail=_098EB502-D390-4A96-A6C0-290380D00BDE
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXhZC9gAKCRCwXqMKLiCW
o/k/AJ98qtcFD3UaRk8Wy5D2kpuLgXy2ggCfWMjd2xJmyaNSNn0M5IfT/3SeX3s=
=CD/I
-----END PGP SIGNATURE-----

--Apple-Mail=_098EB502-D390-4A96-A6C0-290380D00BDE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CFD2966-CEFF-4D7D-A746-7BA6EA056996>