NetBSD Problem Report #60226
From www@netbsd.org Mon May 4 10:06:44 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R13" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2E1311A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 4 May 2026 10:06:44 +0000 (UTC)
Message-Id: <20260504100643.18C111A923C@mollari.NetBSD.org>
Date: Mon, 4 May 2026 10:06:43 +0000 (UTC)
From: samdroid.woodhead@gmail.com
Reply-To: samdroid.woodhead@gmail.com
To: gnats-bugs@NetBSD.org
Subject: mlil fails to build on Mac OS (Hence slang fails to build) I am trying to fix pkgsrc to allow avoiding gfortran
X-Send-Pr-Version: www-1.0
X-From4GNATS: "samdroid.woodhead@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60226
>Category: pkg
>Synopsis: mlil fails to build on Mac OS (Hence slang fails to build) I am trying to fix pkgsrc to allow avoiding gfortran
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 04 10:10:00 +0000 2026
>Originator: Sam Woodhead
>Release: pkgsrc trimk
>Organization:
None
>Environment:
Darwin Sams-iMac.local 24.6.0 Darwin Kernel Version 24.6.0: Fri Feb 27 19:33:24 PST 2026; root:xnu-11417.140.69.709.8~1/RELEASE_X86_64 x86_64
>Description:
mlil fails to build.
>How-To-Repeat:
cd pkgsrc/lang/mlir
bmake install
The patch below fixes it for Mac.
It was found in the llvm bug tracker but marked as won't fix because it doesn't apply to their trunk.
But it is necessary for pkgsrc at the moment.
https://github.com/llvm/llvm-project/issues/160896
>Fix:
--- mlir/lib/Dialect/Vector/IR/CMakeLists.txt.orig 2026-05-04 10:57:05
+++ mlir/lib/Dialect/Vector/IR/CMakeLists.txt 2026-05-04 10:57:26
@@ -11,6 +11,7 @@
MLIRMaskingOpInterfaceIncGen
MLIRVectorOpsIncGen
MLIRVectorAttributesIncGen
+ MLIRVectorTransformsIncGen
LINK_LIBS PUBLIC
MLIRAffineDialect
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.