pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/58185: Upgrade lang/zig to 0.12
>Number: 58185
>Category: pkg
>Synopsis: Upgrade lang/zig to 0.12
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 22 13:20:00 +0000 2024
>Originator: Chavdar Ivanov
>Release: -current as of 20240422
>Organization:
CI4 Consulting Ltd
>Environment:
NetBSD ymir.lorien.lan 10.99.10 NetBSD 10.99.10 (GENERIC) #1: Sat Apr 20 17:46:47 BST 2024 sysbuild%ymir.lorien.lan@localhost:/dumps/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/comp
ile/GENERIC amd64
>Description:
Placeholder pr, as LLVM/CLANG/LLD need updates...
lang/zig 0.12 has been released. It requires LLVM > 17.0.x. The attached trivial patch lets me build it under pkgsrc on NetBSD-current amd64 and aarch64, as well as under Ubuntu aarch64, using wip/{llvm,clang,lld}.
The tests ('[b]make test', or 'zig build test-behavior') pass with no error messages on aarch64; on amd64 there are a few problems coming from LLVM 17.0.6, like:
...
test-behavior
└─ run test behavior-x86_64-netbsd.10.99.10...10.99.10-gnu-sandybridge-ReleaseSmall
└─ zig test ReleaseSmall native failure
error: LLVM ERROR: Cannot select: 0x7bc32ce44930: v8f16,ch = X86ISD::VBROADCAST_LOAD<(load (s16) from constant-pool)> 0x7bc340ca1160, 0x7bc32d00fc40
0x7bc32d00fc40: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<half 0xH4248> 0
0x7bc32dc72540: i64 = TargetConstantPool<half 0xH4248> 0
In function: behavior.vector.test.vector @splat
...
The same version under aarch64 does not generate errors.
>How-To-Repeat:
Apply the attached patch to lang/zig on a pkgsrc instance holding wip.
>Fix:
First, pkgsrc llvm/clang/lld must be upgraded to 17.0.x, with the patch as follows; I have intentionally skipped the change in the PLIST, as the patch size grows up to almost 6700 lines, one can generate it with 'make print-PLIST'.
....
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/zig/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile 8 Nov 2023 13:19:53 -0000 1.30
+++ Makefile 22 Apr 2024 13:11:41 -0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2023/11/08 13:19:53 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2024/22/04 12:00:28 ci4ic4 Exp $
-DISTNAME= zig-0.11.0
-PKGREVISION= 1
+DISTNAME= zig-0.12.0
CATEGORIES= lang
MASTER_SITES= https://ziglang.org/download/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
@@ -43,7 +42,7 @@
--zig-lib-dir ${WRKSRC}/lib
.include "../../devel/cmake/build.mk"
-.include "../../devel/lld/buildlink3.mk"
-.include "../../lang/clang/buildlink3.mk"
-.include "../../lang/llvm/buildlink3.mk"
+.include "../../wip/lld/buildlink3.mk"
+.include "../../wip/clang/buildlink3.mk"
+.include "../../wip/llvm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Index: application.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/zig/application.mk,v
retrieving revision 1.6
diff -u -r1.6 application.mk
--- application.mk 6 Jun 2023 12:41:47 -0000 1.6
+++ application.mk 22 Apr 2024 13:11:41 -0000
@@ -25,7 +25,7 @@
ZIGBUILDARGS?=
ZIGTESTARGS?=
-TOOL_DEPENDS+= zig-[0-9]*:../../lang/zig
+TOOL_DEPENDS+= zig-[0-9]*:../../wip/zig
USE_LANGUAGES= c
#MAKE_ENV+= ZIG_GLOBAL_CACHE_DIR=${WRKSRC}/tmp
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/zig/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- distinfo 6 Oct 2023 19:21:35 -0000 1.13
+++ distinfo 22 Apr 2024 13:11:41 -0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2023/10/06 19:21:35 adam Exp $
+$NetBSD: distinfo,v 1.14 2024/04/22 12:01:35 ci4ic4 Exp $
-BLAKE2s (zig-0.11.0.tar.xz) = 31a769b75ca26f9bc669567b2b015b074f4f98d1eef6f303dfee10bc15307f0d
-SHA512 (zig-0.11.0.tar.xz) = c19a8ae6d440a16dd5e77941fc77c036d1f284f1784376625e63b65f30b4acad62f9f4217bc818c401f88c2c33f8722f26fc467c3e23c29a89178c4b1882d1c4
-Size (zig-0.11.0.tar.xz) = 15275316 bytes
+BLAKE2s (zig-0.12.0.tar.xz) = 3ba6fcde0661556ebedfca36ca5b6d3b0674f3987dbf972669518453f99d089d
+SHA512 (zig-0.12.0.tar.xz) = 0c3d9396fea4905245c7e32ce6bd9b4ff140f061cd8a957929e4c84cf105f5bbcbf2e7c030013ac649edb569e909f65d928b3e8a86f35c9076fb62e996feea14
+Size (zig-0.12.0.tar.xz) = 17099152 bytes
Home |
Main Index |
Thread Index |
Old Index