From nobody Mon Oct 07 01:59:09 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XMMld31sxz5YqtB for ; Mon, 07 Oct 2024 01:59:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XMMlb74ymz4Pgn for ; Mon, 7 Oct 2024 01:59:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=eZSRG9ch; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728266361; bh=FIi3uL5NJYZp7HASdEkaorzxUIIcyy7uyOiEFQXMKrI=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=eZSRG9chZEfBoaN6bInAhWTwXVXd069A+L/pAty/E6UpA2xYejiJIggA6GxSmtW1DbsHQ8HrwEFTRhyqFEwtDDBIgOJVp1dfiWSZLurIsrQhlNL3weSfeiqzDCmdLH1G9EnMqJnsTAKyA+5iUF8Rn2Ih1IKiVpY7IT/X7oik3i6KlShWDy6PsE59EXRJaYEsDKtFfGMJtan2xtzMAJnFQnk51B0HsKDFxTiT1Kp8g6BOxwkD9oSTJHulKil5/dq6hi4Y3okR//iZ5rqdxUKJgLIHwXbqTg9EEWgUKbq8O0O8iBeXD6AoE0Wa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PVZ6RmAsdKpD9gwMXsWy9ewABJnfFWHbtWVjBY.QvJ4XydS6K9YRjMsRWsM EujlBX8vBRp8QGy2wiJzcDyj99x6PuDWftuyXu8EBe6pm6PUcPJSwxEe0gq5CxOjiA9Qn8DhDdzr Ruvoy3vV2pSqqOIT1ajVoVocoptEvRZykiJwhuYp4ibec3my3GI2AvQujKsnhIgg3CO6XpxdoSjR .PuCiKRJFRSpY6O6HEYeySZqXb3C7YePnQFGGBzSRxpn_20.m4Mpm61udZc7ohHK0zTjc9nGytnq NyrPrrtQIXz4wqEHM8Q.aZ_lNM_dEU2bwyGZPkks_s3_K5MmK2hx7IhotVGNdWcMt46hXPmnD9tO K7APOyp7LxKccBEBvR5K6dS90NiI9EIq_WRU3u3huzIWWkBa2PeO_NELRmNMywgwXuCTFUKj0qWQ GwqxmTE9.DJYiR0MpLIhzt82eQ6olXZfV1V3hF7G3FprkmilZ.KObiavxSCu1XXswbrHnYv6k36E 1b8rgWWNRYGAgFjc2lS2i.jyCeFR_V59XNVWf9UZRWx1vxsXeK0_oNaNvzt7DklWs4G2vNvpSQZA 2J2I_L.d8UeYT2Tmtk1jKlSrUZhzZqh2.BZ.syys1lLh6oFDTXge68QMSTpT89573MRu8OZY0gTi obIp2MLR_We8X0BiyFvJiBr5PZgkWIxtPyWP_5ZfR9ZD7laNzL.0JBPtZ2EKid8HSNco7X9asQ6R iSLXT6mPqgyTeAoI8J7yLoMepglzh050fN_7dtwogztrM X-Sonic-MF: X-Sonic-ID: d1467c45-7373-49ce-92f4-43dd30eb4721 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Mon, 7 Oct 2024 01:59:21 +0000 Received: by hermes--production-gq1-5d95dc458-5j27b (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2acda21edd851c4d251ffe77449e5b99; Mon, 07 Oct 2024 01:59:19 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: devel/qt6-tools does not build with LLVM 19 Message-Id: <9CB93865-26EA-4741-8D0E-E6236B587057@yahoo.com> Date: Sun, 6 Oct 2024 18:59:09 -0700 Cc: xavier@groumpf.org To: Dimitry Andric , FreeBSD Mailing List X-Mailer: Apple Mail (2.3776.700.51) References: <9CB93865-26EA-4741-8D0E-E6236B587057.ref@yahoo.com> X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.84:from]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.84:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-Rspamd-Queue-Id: 4XMMlb74ymz4Pgn X-Spamd-Bar: --- Dimitry Andric wrote on Date: Sun, 06 Oct 2024 21:23:23 UTC : > On 6 Oct 2024, at 20:44, Xavier Humbert wrote: > >=20 > > I use > > DEFAULT_VERSIONS+=3Dllvm=3D19 > > in my /etc/make.conf. > >=20 > > devel/qt6-tools does not build : > >=20 > > = /usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.7.3/src/linguist/= lupdate/clangtoolastreader.cpp:785:73: error: no member named 'getName' = in 'clang::FileEntry' > > 785 | if = (!LupdatePrivate::isFileSignificant(fullLocation.getFileEntry()->getName()= .str())) > >=20 > > Reverting back to > > DEFAULT_VERSIONS+=3Dllvm=3D18 > >=20 > > makes it compile fine > >=20 > > Read on Chromium forum, same error, reason is : > >=20 > >> commit 1b04e6d4a314cf677b5320b26f2746733b11152c > >> Author: Hans Wennborg > >> Date: Thu Jan 25 13:36:37 2024 > >>=20 > >> [clang] Remove use of FileEntry::getName() > >>=20 > >> That method was dropped recently. Instead, we should get the name = via > >> the new FileEntryRef class. That one has existed for a while, so = this > >> code works for both pinned and tip-of-tree Clang. >=20 > It's better to import the upstream fix, obviously. I have been fixing > llvm 19 related issues such as https://bugs.freebsd.org/281474, but = this > looks a little different. It's a bit strange that this error did not > come up during the exp-run for https://bugs.freebsd.org/280562 ? Note the removal of getName : # diff -u = /usr/main-src/contrib/llvm-project/clang/include/clang/Basic/FileEntry.h = /usr/local/llvm19/include/clang/Basic/FileEntry.h --- = /usr/main-src/contrib/llvm-project/clang/include/clang/Basic/FileEntry.h = 2024-04-07 03:32:58.854825000 +0000 +++ /usr/local/llvm19/include/clang/Basic/FileEntry.h 2024-09-17 = 11:26:36.000000000 +0000 @@ -317,19 +317,9 @@ /// The file content, if it is owned by the \p FileEntry. std::unique_ptr Content; - - // First access name for this FileEntry. - // - // This is Optional only to allow delayed construction (FileEntryRef = has no - // default constructor). It should always have a value in practice. - // - // TODO: remove this once everyone that needs a name uses = FileEntryRef. - OptionalFileEntryRef LastRef; public: ~FileEntry(); - LLVM_DEPRECATED("Use FileEntryRef::getName() instead.", "") - StringRef getName() const { return LastRef->getName(); } StringRef tryGetRealPathName() const { return RealPathName; } off_t getSize() const { return Size; } In other words: /usr/local/llvm19/include/clang/Basic/FileEntry.h is based on llvm19's libc++ and llvm19 instead of being based on the system's llvm18 based libc++. So the context with devel/llvm19 is an example of where: /usr/local/llvm19/include/clang/ . . . vs. the system's: /usr/include/c++/v1/ are both used for devel/llvm19 but are not independent and are in fact mismatched in at least some ways at this point (mixing 19 and 18 library code). devel/llvm19 does not manage to only update the language handling but leave the library handling as it is for the system llvm's libc++ and llvm (currently 18 based). In other words, for how things are handled by FreeBSD: This is an item for waiting until FreeBSD is itself based on llvm19, including the libc++ from llvm19! FYI . . . I have a somewhat older /usr/ports/ tree and it shows the problem when I try a poudriere-devel based build: . . . port directory: /usr/ports/devel/qt6-tools package name: qt6-tools-6.7.2_1 building for: FreeBSD amd64optb_ZFS 15.0-CURRENT FreeBSD 15.0-CURRENT = amd64 maintained by: kde@FreeBSD.org port version: 6.7.2 port revision: 1 . . . =3D=3D=3D> Installing existing package /packages/All/llvm19-19.1.0.pkg [amd64optb_ZFS] Installing llvm19-19.1.0... [amd64optb_ZFS] `-- Installing libedit-3.1.20240808,1... [amd64optb_ZFS] `-- Extracting libedit-3.1.20240808,1: .......... done [amd64optb_ZFS] `-- Installing lua53-5.3.6_1... [amd64optb_ZFS] `-- Extracting lua53-5.3.6_1: .......... done [amd64optb_ZFS] `-- Installing perl5-5.36.3_2... [amd64optb_ZFS] `-- Extracting perl5-5.36.3_2: .......... done [amd64optb_ZFS] Extracting llvm19-19.1.0: .......... done . . . = /wrkdirs/usr/ports/devel/qt6-tools/work/qttools-everywhere-src-6.7.2/src/l= inguist/lupdate/clangtoolastreader.cpp:785:73: error: no member named = 'getName' in 'clang::FileEntry' 785 | if = (!LupdatePrivate::isFileSignificant(fullLocation.getFileEntry()->getName()= .str())) | = ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 1 error generated. . . . For reference: # ~/fbsd-based-on-what-commit.sh -C /usr/ports/ 3ec21e417cd5 (HEAD -> main, freebsd/main, freebsd/HEAD) java/eclipse: = Remove unnecessary *.so files Author: Norbert Grundmann Commit: Vladimir Druzenko CommitDate: 2024-09-20 00:14:47 +0000 branch: main merge-base: 3ec21e417cd5752c96b88587a5a605567ba5cd19 merge-base: CommitDate: 2024-09-20 00:14:47 +0000 n679096 (--first-parent --count for merge-base) # uname -apKU FreeBSD 7950X3D-ZFS 15.0-CURRENT FreeBSD 15.0-CURRENT #147 = main-n272664-149e1af6ae49-dirty: Sun Oct 6 02:05:51 UTC 2024 = root@7950X3D-ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64= .amd64/sys/GENERIC-NODBG amd64 amd64 1500024 1500024 =3D=3D=3D Mark Millard marklmi at yahoo.com