From nobody Fri Nov 15 01:44:28 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 4XqKZk1RFnz5dPNB for ; Fri, 15 Nov 2024 01:44:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.gq1.yahoo.com (sonic302-20.consmr.mail.gq1.yahoo.com [98.137.68.146]) (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 4XqKZh4Mdxz4bHC for ; Fri, 15 Nov 2024 01:44:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=oFr2P8rw; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.146 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=1731635082; bh=TSU0BJHtb00g4CiVA0Ax2NScNk2vEV7agnw4XKT/NwY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=oFr2P8rwXHZFf1PYSlfIrMmtOGZQGMOyUdV7dbM0SElXJi4P7pVL8eGho/pR0tL3j0aM8IAT3y9H+nS9/psFG6w+hMAOtTnVttvPDxaJEBGt745ft1Oi/aEniWpnlq/40aiVtN3RLfUkWBzyoUt6dbI+eJTb1cEoEoJBdeWH8KGbqKOlPPJeE6yDgCImUVjQX1llsZO5p81oG/pOIsS5j48iIh0kU0Oi1Nx/ueb3r2VjWjRK5yTZqqaOkT3mGseqhfcww/gouFm7J2tShxO8995MFywzCX52c3xIx3YbAkNtItQfBprt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Ge0Ljv3cR56g3OIgzhzpbH3HXYFaogRqsHp3VEQR0AVmwcOd_GOtYm_AUvGVI Y4BXgImbptOcGNlNrvscsiRfr2Mo3ipKiUO3TDBEBId5Jfx0WRvW5FKcUPbl48h3tO6V3eA1nkOj VL5w87C1nF1Wdj1rYXpbwSbf6gsrSe1.QXABIfYU_ECO2MWsnZnT798uHRC0WNSEkm8ooxQvOFlW .Wy2tLKHFvE2yg1W6EPhtQ61R_tv1q347zOogX6GwPWaFiqKPsL6jS0jY3LMkzcJXlnC4yPl4nOy orvCecKhUNH.8Trrz9yIjs37VfqOgriPyDHvdeQ7IdP5kJ7l202_83wFHz5shEMhwrwukYAzGm5Z h76qJsRXidAzZTPsSdsZaLxPoh7gLqOa_zDqPeIJR4wCfhMgqf7JwJmIpYqq2635Q.nRU9vWIhIQ s0lh.5OzS5k16zBIGJ3RHhV17SIfEvc.mlICtql_QhFEsFgozhBcnJR5Sv3.7rR2CqK7Nhu1Ar_X RKfrJ.34PxhUDSBGgnBpbpWTh1To_JnsCdSvsFmf9C_MR1mTPWF__WyI_XhXPf82hH1Qcump_fIP y4WqQDEgZDa06MymDm3MPwNkTPzCriavn12R0K8diPnNW0Jl41qEJC_4RFMxrnTjhVZyPPWzctil QLD6HNnjat8VFJPtbG1Gk6G3qm_2zdVsM2Vn7OFGTQvJBbZp5_fYpvUsbOWc1yhWGrwPN.1i1DG. cmWYHP0EZ X-Sonic-MF: X-Sonic-ID: 69d5c4f1-ae81-4a7d-8ff6-beb56998a17b Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Fri, 15 Nov 2024 01:44:42 +0000 Received: by hermes--production-gq1-5dd4b47f46-bxhh2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f72c9a930c4f452c6d9f0e664846e3b1; Fri, 15 Nov 2024 01:44:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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: lang/rust/Makefile for 1.82.0 has wrong llvm:min= value [I got that incorrect]; more From: Mark Millard In-Reply-To: <52DCD460-D1BE-4F74-A567-347C8D9F31CE@yahoo.com> Date: Thu, 14 Nov 2024 17:44:28 -0800 Cc: FreeBSD Mailing List , FreeBSD Toolchain , "mikael@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <89CFA496-9433-4417-A996-EC7D89A9B3A6@yahoo.com> References: <6D0FF1C8-CA51-44B0-A1D8-0B4F670F647C.ref@yahoo.com> <6D0FF1C8-CA51-44B0-A1D8-0B4F670F647C@yahoo.com> <6f3f4b47-05a2-453a-8d1c-258d17fc1a1c@freebsd.org> <52DCD460-D1BE-4F74-A567-347C8D9F31CE@yahoo.com> To: Charlie Li X-Mailer: Apple Mail (2.3776.700.51) X-Spamd-Result: default: False [-3.79 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.79)[-0.789]; 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)[]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; 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)[4]; 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.68.146:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.146:from] X-Rspamd-Queue-Id: 4XqKZh4Mdxz4bHC X-Spamd-Bar: --- [Charlie is correct about LLVM 17 being allowed by 1.82.0 of rust. I had that wrong.] On Nov 14, 2024, at 14:26, Mark Millard wrote: >=20 > On Nov 14, 2024, at 13:21, Charlie Li wrote: >=20 >> Mark Millard wrote: >>> 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 . >=20 >> This commit is not in the 1.82 releases so the USES=3Dllvm values = remain correct. It will be bumped for 1.83 as tagged in the pull = request.> It leads me to wonder if lang/rust should be using an external I see what you were refering to now. I misinterpreted your wording the = first time. In more detail: # grep -r "bad LLVM version: {version}, need >=3D" = /wrkdirs/usr/ports/lang/rust/work/rustc-1.82.0-src/ = /wrkdirs/usr/ports/lang/rust/work/rustc-1.82.0-src/src/bootstrap/src/core/= build_steps/llvm.rs: panic!("\n\nbad LLVM version: {version}, need = >=3D17.0\n\n") More fully for the LLVM version check: fn check_llvm_version(builder: &Builder<'_>, llvm_config: &Path) { if builder.config.dry_run() { return; } 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 { return; } } panic!("\n\nbad LLVM version: {version}, need >=3D17.0\n\n") } Sorry for the noise. > =46rom using pkg to update to the recent official lang/rust = distribution: >=20 > # rustc -vV > rustc 1.82.0 (f6e511eec 2024-10-15) (built from a source tarball) > binary: rustc > commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14 > commit-date: 2024-10-15 > host: x86_64-unknown-freebsd > release: 1.82.0 > LLVM version: 19.1.1 >=20 > So the internal LLVM for lang/rust is LLVM 19.1.1 based as of that > update. >=20 > It is not my build, but is the official FreeBSD one for main [so: > 15 as stands]. >=20 > For reference: >=20 > # pkg info rust > rust-1.82.0_1 > Name : rust > Version : 1.82.0_1 > Installed on : Thu Nov 14 22:09:53 2024 UTC > Origin : lang/rust > Architecture : FreeBSD:15:amd64 > Prefix : /usr/local > Categories : lang > Licenses : MIT or APACHE20 > Maintainer : rust@FreeBSD.org > WWW : https://www.rust-lang.org/ > Comment : Language with a focus on memory safety and = concurrency > Options : > DOCS : on > GDB : off > LTO : off > PORT_LLVM : off > SOURCES : on > WASM : on > Shared Libs required: > libcurl.so.4 > Shared Libs provided: > libstd-d4ce5f4319a0892a.so > librustc_driver-3dd68610bfbc3827.so > Annotations : > FreeBSD_version: 1500026 > build_timestamp: 2024-11-12T01:08:37+0000 > built_by : poudriere-git-3.4.2 > cpe : cpe:2.3:a:rust-lang:rust:1.82.0:::::freebsd15:x64:1 > port_checkout_unclean: no > port_git_hash : b039f2e46b1 > ports_top_checkout_unclean: no > ports_top_git_hash: ea7acb65556 > repo_type : binary > repository : FreeBSD > Flat size : 1.14GiB > . . . >=20 > The only way the internal LLVM for lang/rust ends up being based on > LLVM 18 for 1.82.0 is via use of PORT_LLVM , which the official > FreeBSD package builders do not do (at this time). >=20 > So lang/rust 1.82.0 builds can potentially have newer, LLVM 19 > specific material if there is such. >=20 >>> devel/llvm* by default, set to match a default ports tree >>> LLVM to be used for major ports that involve lang/rust use. >> No. Not something upstream encourages by default even if support = exists, especially because the default upstream builds use the bundled = LLVM which is what most consumers qualify with. >=20 > The FreeBSD may at times have to update such that the default > LLVM is forced to well match the lang/rust default LLVM. That > might mean not updating lang/rust . (I'm not claiming there > are always conflicts to deal with when LLVM's mismatch, just > that there could be such at times.) =3D=3D=3D Mark Millard marklmi at yahoo.com