From nobody Sat Nov 09 04:56:20 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 4Xlk6v0Ssqz5dJYH for ; Sat, 09 Nov 2024 04:56:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (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 4Xlk6s69nQz4FhR for ; Sat, 9 Nov 2024 04:56:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=njAY+xDZ; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.147 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=1731128196; bh=rwF7fBVWaaLPRNi7gPKMQE2vevnEeNSrTqomNRkKWw4=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=njAY+xDZMg0KHkrfrDzjIxAt8kgTxw/Hp626bsW9g43DcrHpHgKjpfaz14U1X9GEp8Wz0RHor+regYhoU7Y4uFDIwQmCAnkG4KDzpJtTRuSuZNS3kpP+grPal3Mpkr5q9ziThJqz/4RUJ2pwWCAiY0jDJIkD4ZqW1gsf3rokf3/Pr20hzs3pJ/OChOTC3byXK281dM0qV+Xhd9XBfDJOxIUlhdNRMnZpkL8r6mUnC1fZqF5skNQScw9lSHIxVDkxIaMoBtTYQUCStYyIqADsylHfkzrTGLqXu+DAXY0QCbf9HVBR0G54vC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Lw4z1U_cnNwzIwcYms_DyjqFhmoVsArrbizSyg9JJpcBG3BNmbLrI c.w9BTzZ0NdrctMryWaAG_vL_zbNxok9YrPEAAL9PxVm6LYMD4np4TJfjhgtNJvBu2sIlug0x59k MEeA642dvj8J4OPDZAe1Zmi_hiUHDbwbFbg91xhoivEcmmBDfPtmJr58NJC9NnwlByqz7Pz7C9Ol Ie5D5HvCCWN3vVvly8_Ikr_gvjqSzaDNynNUFkXsDu_MNnmWqnBSC25br.N70QiKX8RsrbtX.JWb Uf.q6_3b3yWg.c.bRRhaksHNU8bvTLGr.37FWTfM8e4fPDaFtvOAc3yApkbwh1MbVcHtPIBCUSo2 A7cVkTufUCiaoa6wDnvwC5zqK94khe2_NFuF2c8zsRKU4tlEBQ3j5NXJePVU3_SlOj4Y7U_W9_k_ _oyVNqR3EJv_yC8UfQ65vKKsOVTz8mcJ07d8NRahda8gfjlv9BDmgPW2r7dl.voN6mjgN3_tLMbq 0MO3RDJ9xx1YTmYA4i8Ne9FN2f9c4Qs.00hRnCD467ZJUht0n9pC207eRgJAs5WstHzK.1VkADom K9lEQQJq4mdtdjI8rPbJ1ZOjViScoIjXtkL9GzfXfhidahvVSrV8LfhvgHBfbmmLUK1.NkNijVhq Ahc4Yl_BXX272ZY_21EU636PkMupSSNl.0YUbbkt9W04KR2aeIdT6sJvFMGtXCvXnzExaa89aOQN eOAzaXDjdL9fP X-Sonic-MF: X-Sonic-ID: 99732407-f052-4e79-bc1d-8c9ef24c1857 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sat, 9 Nov 2024 04:56:36 +0000 Received: by hermes--production-gq1-5dd4b47f46-fhdpd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4686b29a9b73041806c3c6fee89c3483; Sat, 09 Nov 2024 04:56:31 +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: lang/rust/Makefile for 1.82.0 has wrong llvm:min= value; more Message-Id: <6D0FF1C8-CA51-44B0-A1D8-0B4F670F647C@yahoo.com> Date: Fri, 8 Nov 2024 20:56:20 -0800 Cc: "mikael@freebsd.org" To: FreeBSD Mailing List , FreeBSD Toolchain X-Mailer: Apple Mail (2.3776.700.51) References: <6D0FF1C8-CA51-44B0-A1D8-0B4F670F647C.ref@yahoo.com> X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.973]; 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]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.66.147:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.147:from] X-Rspamd-Queue-Id: 4Xlk6s69nQz4FhR X-Spamd-Bar: --- https://github.com/rust-lang/rust/pull/130487 reports . . . QUOTE Update the minimum external LLVM to 18 #130487 With this change, we'll have stable support for LLVM 18 and 19. For reference, the previous increase to LLVM 17 was #122649. END QUOTE Note: the internal LLVM is 19 for 1.82.0 . Also for 1.82.0 . . . src/bootstrap/src/core/build_steps/llvm.rs was updated = to: @@ -580,11 +580,11 @@ fn check_llvm_version(builder: &Builder<'_>, = llvm_config: &Path) { let version =3D = command(llvm_config).arg("--version").run_capture_stdout(builder).stdout()= ; let mut parts =3D version.split('.').take(2).filter_map(|s| = s.parse::().ok()); if let (Some(major), Some(_minor)) =3D (parts.next(), parts.next()) = { - if major >=3D 17 { + if major >=3D 18 { return; } } - panic!("\n\nbad LLVM version: {version}, need >=3D17.0\n\n") + panic!("\n\nbad LLVM version: {version}, need >=3D18\n\n") } =20 fn configure_cmake( But lang/rust/Makefile has: . . . PORTVERSION?=3D 1.82.0 . . . PORT_LLVM_USES=3D llvm:min=3D17,lib,noexport . . . As I understand, 17 would be rejected now and 18 or 19 is needed. The likes of: Mk/bsd.gecko.mk having 17 would also look to need an update: USES+=3D compiler:c++17-lang cpe elfctl gl gmake gnome = iconv \ llvm:min=3D17,noexport localbase \ pkgconfig python:build desktop-file-utils But there is also a problem folks are runing into for use of LLVM 18 or before for www/chromium , www/firefox , mail/thunderbird or the like: the version of ld.lld involved proves to be insufficient . . . ld.lld: error: = obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib(libcxx_lib.cxx.3689637c63f= ce5c7-cgu.0.rcgu.o): Invalid attribute group entry (Producer: = 'LLVM19.1.1-rust-1.82.0-stable' Reader: 'LLVM 18.1.8') ld.lld: error: = ../../../x86_64-unknown-freebsd/release/libgkrust.a(ews_xpcom-da5573b2cf91= b84e.ews_xpcom.c68a27d7391ba4aa-cgu.0.rcgu.o): Unknown attribute kind = (91) (Producer: 'LLVM19.1.1-rust-1.82.0-stable' Reader: 'LLVM 17.0.6') This is because lang/rust used its internal LLVM 19 and older linkers used for www/chromium , www/firefox , mail/thunderbird need not be able to handle output from newer LLVM versions used in lang/rust. The above are examples of that issue. It leads me to wonder if lang/rust should be using an external devel/llvm* by default, set to match a default ports tree LLVM to be used for major ports that involve lang/rust use. NOTE: This might have some implications for lang/rust use by parts of FreeBSD itself. =3D=3D=3D Mark Millard marklmi at yahoo.com