Date: Fri, 21 Aug 2020 21:49:57 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 248818] clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Message-ID: <bug-248818-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248818 Bug ID: 248818 Summary: clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: toolchain@FreeBSD.org Reporter: bz@FreeBSD.org CC: dim@FreeBSD.org, emaste@freebsd.org, jhb-bugs@FreeBSD.org Hi, the clang11 import changed the #defines in Version.inc for lld; see: https://svnweb.freebsd.org/base/head/lib/clang/include/lld/Common/Version.i= nc?r1=3D361410&r2=3D364284 This makes the Makefile.inc1 WANT_LINKER_VERSION check to fail (becomes emp= ty). I don't know if changing the Version.inc back to have the other #defines is= the right solution or to change the check in Makefile.inc1. The latter done as follows does fix the later checks and we do not built cross-tools lib/clang= /* anymore for LLD: Index: Makefile.inc1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile.inc1 (revision 364456) +++ Makefile.inc1 (working copy) @@ -264,7 +264,7 @@ _WANT_LINKER_FREEBSD_VERSION!=3D \ WANT_LINKER_FREEBSD_VERSION=3D${_WANT_LINKER_FREEBSD_VERSION:C/.*-(.*)/\1/} WANT_LINKER_VERSION_FILE=3D lib/clang/include/lld/Common/Version.inc WANT_LINKER_VERSION!=3D \ - awk '$$2 =3D=3D "LLD_VERSION" {split($$3, a, "."); print a[1] * 100= 00 + a[2] * 100 + a[3]}' \ + awk '$$2 =3D=3D "LLD_VERSION_STRING" { gsub("\"", "", $$3); split($= $3, a, "."); print a[1] * 10000 + a[2] * 100 + a[3]}' \ ${SRCDIR}/${WANT_LINKER_VERSION_FILE} || echo unknown .else WANT_LINKER_FREEBSD_VERSION_FILE=3D --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248818-29464>