From nobody Sat Feb 22 18:56:03 2025 X-Original-To: freebsd-arm@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 4Z0bnQ6gPlz5pC1P for ; Sat, 22 Feb 2025 18:56:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-24.consmr.mail.gq1.yahoo.com (sonic304-24.consmr.mail.gq1.yahoo.com [98.137.68.205]) (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 4Z0bnQ2z5mz3ZHt for ; Sat, 22 Feb 2025 18:56:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1740250580; bh=bHIAJs5CMEo0xwlR9jxybbbu++KAfERvystE1h09jhs=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=nT2V4BT1gUGg+YG0PVZWYfe266vE7ULwbszw4k2Fh1fNR38UWN2HvmOiOZuZgZ8GxPshtC9rDnKYLgLDbXG07ZYcjg0ciAvKYI8MbxKob3PLJSykRNnR8Vyx6OtVSNOGNO2VS2MZJ3wi2sjwxt6+xKIBOjEUx1xYOS4e87/gbmP0CWC4+qMWopjvV/BgErSr7HgXSOOHnPXh8Y7997ymY8WnveQvByilfSF2+73Z+2iahJtKveHDOZFot3cpJ0FUmcw+QzgSOkjpWniGwHLdTAegrzp7amvPpG7WupTA2tGFZS1mnR76lJs/vqhYkKJwodjzq766pILoa9aZ5eWd4Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1740250580; bh=VyNdK0alzOzBqtGzHZVW4+dshqtNl0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Gl5KS8JiaU0PxhOtrYubP5xmXQx6nsA2yyOQ2AiEs2Zb5mv73TT7xGfA3XppbeO 2pnN6q4YnsFNiAVPytCPZXewpeGHvaKU0SEC6NRFLRit1Cx3N.uvT13GjL5R77YQCyMITAc9qGsa hGYh42ENj2j70JI0nWZ1NyNrPmdLMF6oc6ecyKT8S5f0T0v7hcln1RSPF9HTuIz2IPde90w.y39w odOs7IUNfTSRQJHq40ipU618P7qN.raVuS92CCJ5BbLprolauBbe4l.mfUkvZ9ucPRtIPtAzGmiZ j3zaACiXLZd6YDHFQ5D1S39vP0q0C1ySOkh.pXoV_YBhw9oUPWBdHTJOLs17b57SZlDjTp_GgKiT SS1NmbxqNsvJaIoJp__4ZfJqm2JCkcnmKrjHKAvCTaxkiAYLyKAo7shJ8_iQ2Avs7EAQymOykdQ2 jztynvq.5LXJb2LkwbeB5EMtg8W6XBuOaB4Ek_L34Kf95RW9qDbPjD2xMm447P2av5X9oZWhVPWZ tcu6LhvjO9gNpTzsYoyuD7Sd.A5nRHOtfw9FDemClyY0Qtr796uM2lty5YyYzj9hDRAZcdaw4svi 0C2_HGlc- X-Sonic-MF: X-Sonic-ID: 6ad42cb6-60a4-420e-8b2d-6a8345feef43 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sat, 22 Feb 2025 18:56:20 +0000 Received: by hermes--production-gq1-5dd4b47f46-k4d2j (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID aaa3495587cf6f7c32d81b44c2ab180f; Sat, 22 Feb 2025 18:56:14 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: Avoiding llvm from ports on rpi4 From: Mark Millard In-Reply-To: Date: Sat, 22 Feb 2025 10:56:03 -0800 Cc: FreeBSD ARM List Content-Transfer-Encoding: quoted-printable Message-Id: <41144AE6-2C81-4762-84C7-57CEB81F448C@yahoo.com> References: To: Nuno Teixeira X-Mailer: Apple Mail (2.3826.400.131.1.6) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4Z0bnQ2z5mz3ZHt X-Spamd-Bar: ---- On Feb 22, 2025, at 08:06, Nuno Teixeira wrote: > Hello, >=20 > Building llvm19 as a dependency just for mesa-dri is something > that I like to tweak to avoid waiting >15 hours building it. >=20 > pkg info -r llvm19 > llvm19-19.1.7_1: > mesa-dri-24.1.7_4 >=20 > There is a PR about it, but I don't know the best way to hack it: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238906 I added some notes that that bugzilla: QUOTE The system's clang/clang++ build (from based on LLVM) does not include what mesa-dri uses from LLVM. END QUOTE QUOTE In fact, mesa-dri uses LLVM as a library, not as a compiler (not clang/clang++): USES+=3D llvm:lib,noexport mesa-dri also uses other ports that are LLVM based (at least when iris is to be supported): devel/libclc@${LLVM_PORT:T} spirv-llvm-translator@${LLVM_PORT:T} Those references are from doing: # grep -i llvm /usr/ports/graphics/mesa-dri/Makefile USES+=3D llvm:lib,noexport iris_BUILD_DEPENDS=3D = libclc-${LLVM_PORT:T}>0:devel/libclc@${LLVM_PORT:T} \ = spirv-llvm-translator-${LLVM_PORT:T}>0:devel/spirv-llvm-translator@${LLVM_= PORT:T} = spirv-llvm-translator-${LLVM_PORT:T}>0:devel/spirv-llvm-translator@${LLVM_= PORT:T} iris_CONFIGURE_ENV=3D PKG_CONFIG_PATH=3D"${LLVM_PREFIX}/libdata/pkgconfig"= libclc-${LLVM_PORT:T}>0:devel/libclc@${LLVM_PORT:T} \ = spirv-llvm-translator-${LLVM_PORT:T}>0:devel/spirv-llvm-translator@${LLVM_= PORT:T} = spirv-llvm-translator-${LLVM_PORT:T}>0:devel/spirv-llvm-translator@${LLVM_= PORT:T} anv_CONFIGURE_ENV=3D PKG_CONFIG_PATH=3D"${LLVM_PREFIX}/libdata/pkgconfig" END QUOTE The notation suggests that devel/libclc and devel/spirv-llvm-translator that mesa-dri can have involved are somehow specific to the same LLVM variant that mesa-dri uses. A question is what llvm build options are you using for LLVM? Are you building MLIR? FLANG? POLLY? If yes, do you need to for your context? (As I remember MLIR and POLLY are built by default. FLANG is not but requires MLIR if FLANG is listed as an option.) The default options are set up for the official builds to support all the different usage contexts in the ports tree (or near it). Are you building LLVM such that it supports targeting powerpc*? riscv64? amd64 and i386? There are ways to avoid building materials for taretting those. You might be able to use BE_NATIVE instead of BE_STANDARD and avoid such. Do you need to target aarch64 and/or armv7 for your specific usage context for devel/llvm*? (It likely would take Makefile changes to avoid building to support those.) A similar set of question goes for mesa-dri: Do you need all of: OPTIONS_DEFINE=3D ZSTD OPTIONS_GROUP=3D GALLIUM PLATFORM VULKAN OPTIONS_GROUP_PLATFORM=3D X11 WAYLAND OPTIONS_GROUP_GALLIUM=3D crocus i915 iris panfrost r300 r600 radeonsi = svga swrast zink OPTIONS_GROUP_VULKAN=3D anv radv swrast_vk For example avoiding iris looks to avoid the devel/libclc@${LLVM_PORT:T} and devel/spirv-llvm-translator@${LLVM_PORT:T} involvement. Out of the above, what do you actually need for your RPi4 activity? Which do not need to be supported for your activity? =3D=3D=3D Mark Millard marklmi at yahoo.com