Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Updating Zig to 0.11.0
@ 2023-08-04 17:17 booniepepper
  2023-08-04 17:38 ` booniepepper
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: booniepepper @ 2023-08-04 17:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

New issue by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424

Description:
Opening this issue to discuss an upgrade of Zig from 0.10.1 to 0.11.0

Zig 0.11.0 was released yesterday: https://ziglang.org/download/0.11.0/release-notes.html

It's backwards-incompatible with 0.10.1 which should be no big surprise. What I'm
interested in talking about is how to handle the transition. A lot of Zig software
has been tracking the changes for 0.11.0 in particular because it came with some
package management abilities that really made owning a zig-built library or executable
a lot cheaper.

Is it acceptable to have two versions of Zig in void-packages while projects are transitioning?


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
@ 2023-08-04 17:38 ` booniepepper
  2023-08-04 18:59 ` icp1994
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: booniepepper @ 2023-08-04 17:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

New comment by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1665965411

Comment:
cc @ifreund

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
  2023-08-04 17:38 ` booniepepper
@ 2023-08-04 18:59 ` icp1994
  2023-08-04 20:29 ` booniepepper
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: icp1994 @ 2023-08-04 18:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1666049769

Comment:
For a start, it requires llvm v16.x which will take a non-trivial amount of effort to get into Void repos. It's highly likely that by the time the latest llvm hits the repos, the existing zig packages would have already migrated to zig v0.11.x

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
  2023-08-04 17:38 ` booniepepper
  2023-08-04 18:59 ` icp1994
@ 2023-08-04 20:29 ` booniepepper
  2023-08-13 11:56 ` voidbert
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: booniepepper @ 2023-08-04 20:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

New comment by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1666144771

Comment:
That makes sense to me, thanks!

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (2 preceding siblings ...)
  2023-08-04 20:29 ` booniepepper
@ 2023-08-13 11:56 ` voidbert
  2023-08-13 14:02 ` icp1994
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: voidbert @ 2023-08-13 11:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

New comment by voidbert on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1676336186

Comment:
@icp1994  Are there any plans to package LLVM 16? Packaging something as massive as LLVM is a massive endeavor (see #40821, for LLVM 15), and involves updating many packages that depend on LLVM (Zig, for example). With LLVM 17 just around the corner in September (https://llvm.org/), is it worth it to make an effort, or should Void just skip v16 and go straight to 17?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (3 preceding siblings ...)
  2023-08-13 11:56 ` voidbert
@ 2023-08-13 14:02 ` icp1994
  2023-08-13 15:41 ` voidbert
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: icp1994 @ 2023-08-13 14:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1676369312

Comment:
Honestly, I don't know what the best strategy is. If you are asking for zig only, iirc each major version of zig is compatible with only one major version of llvm so I think if you skip llvm v16 you cannot build zig v0.11.x. But I feel only zig (and related softwares) being blocked on it might not cut for the effort of a llvm update. For example, the last time llvm was updated, rust was also blocked on it.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (4 preceding siblings ...)
  2023-08-13 14:02 ` icp1994
@ 2023-08-13 15:41 ` voidbert
  2023-08-13 15:46 ` booniepepper
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: voidbert @ 2023-08-13 15:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

New comment by voidbert on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1676395432

Comment:
@icp1994 The best strategy would be for the folks at LLVM to make their software backwards / forwards compatible, but we all know that's not gonna happen. Nevertheless, Zig will be coming out with some alternative backends (C, x86, ARM and LLVM bitcode, instead of linking to LLVM libraries). This would remove the mandatory LLVM dependency, making a zig update just a version bump + new checksum.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (5 preceding siblings ...)
  2023-08-13 15:41 ` voidbert
@ 2023-08-13 15:46 ` booniepepper
  2023-08-13 15:57 ` voidbert
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: booniepepper @ 2023-08-13 15:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 424 bytes --]

New comment by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1676396633

Comment:
For what it's worth, in Nix the strategy is to import multiple versions of these foundational things like LLVM. They also do it with Zig since they have software that needs Zig 0.9, 0.10, and now 0.11. Applications and tools and etc tend to only have a single rolling version

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (6 preceding siblings ...)
  2023-08-13 15:46 ` booniepepper
@ 2023-08-13 15:57 ` voidbert
  2023-08-13 17:55 ` booniepepper
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: voidbert @ 2023-08-13 15:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

New comment by voidbert on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1676398817

Comment:
@booniepepper Void already maintains different versions of packages like LLVM (https://github.com/void-linux/void-packages/tree/master/srcpkgs/llvm12, for example). The problem is that there aren't enough human resources to package and maintain all versions of LLVM. Between 12 and 15, there are no other LLVM versions on the repos, for example.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (7 preceding siblings ...)
  2023-08-13 15:57 ` voidbert
@ 2023-08-13 17:55 ` booniepepper
  2023-08-14  9:54 ` tranzystorek-io
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: booniepepper @ 2023-08-13 17:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 235 bytes --]

New comment by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1676424309

Comment:
Looking at the patches and script... Yeah I see how that can be an adventure to set up

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (8 preceding siblings ...)
  2023-08-13 17:55 ` booniepepper
@ 2023-08-14  9:54 ` tranzystorek-io
  2023-10-10 17:26 ` Anachron
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: tranzystorek-io @ 2023-08-14  9:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1677027165

Comment:
> Void already maintains different versions of packages like LLVM

To be precise, we keep the previous llvm version for its libllvm shlib, but all the other subpackages like clang have always had just one version at a time.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (9 preceding siblings ...)
  2023-08-14  9:54 ` tranzystorek-io
@ 2023-10-10 17:26 ` Anachron
  2023-10-10 22:22 ` voidbert
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Anachron @ 2023-10-10 17:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1755914873

Comment:
I hope we will find some volunteers to tackle this task.
While I am not skilled enough to do this myself, I would volunteer for testing.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (10 preceding siblings ...)
  2023-10-10 17:26 ` Anachron
@ 2023-10-10 22:22 ` voidbert
  2023-10-10 23:54 ` booniepepper
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: voidbert @ 2023-10-10 22:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

New comment by voidbert on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1756349377

Comment:
For anyone here that needs Zig 0.11, even if it doesn't get added to Void's repos, **you don't need to build it from source**. Zig's [prebuilt binaries](https://ziglang.org/download/) are statically linked, working perfectly on both musl and glibc systems (I tested it myself).

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (11 preceding siblings ...)
  2023-10-10 22:22 ` voidbert
@ 2023-10-10 23:54 ` booniepepper
  2023-10-11  5:46 ` Anachron
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: booniepepper @ 2023-10-10 23:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1756477288

Comment:
Hmmm maybe that's the thing to do. I was also considering packaging my zig-built projects from binaries too, but I didn't know if that would be frowned upon

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (12 preceding siblings ...)
  2023-10-10 23:54 ` booniepepper
@ 2023-10-11  5:46 ` Anachron
  2024-01-10  1:47 ` github-actions
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Anachron @ 2023-10-11  5:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1756846506

Comment:
Sadly binary releases are nearly impossible to get into Void Packages, but there could maybe be an exception as long as we dont have LLVM16 yet?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (13 preceding siblings ...)
  2023-10-11  5:46 ` Anachron
@ 2024-01-10  1:47 ` github-actions
  2024-01-10  9:10 ` booniepepper
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: github-actions @ 2024-01-10  1:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1884061483

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (14 preceding siblings ...)
  2024-01-10  1:47 ` github-actions
@ 2024-01-10  9:10 ` booniepepper
  2024-02-09 17:35 ` icp1994
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: booniepepper @ 2024-01-10  9:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

New comment by booniepepper on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1884452669

Comment:
I'm still interested in this, but between job hunting and holidays I haven't been able to make the time yet.

IDK if this helps a lot of people, but one note for Zig project owners is that it's possible to support a range of Zig versions even with the breaking changes. Here's an example of me adding Zig 0.10.1 support back into a project that was already upgraded to 0.11.0: https://github.com/so-dang-cool/dt/commit/f58602c5444099c7e63a330f46a21af3cea8844e


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (15 preceding siblings ...)
  2024-01-10  9:10 ` booniepepper
@ 2024-02-09 17:35 ` icp1994
  2024-02-09 17:37 ` tranzystorekk
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: icp1994 @ 2024-02-09 17:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1936319679

Comment:
Now that llvm17 is merged, you can start working on zig-0.11 if you want.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (16 preceding siblings ...)
  2024-02-09 17:35 ` icp1994
@ 2024-02-09 17:37 ` tranzystorekk
  2024-02-09 18:58 ` icp1994
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: tranzystorekk @ 2024-02-09 17:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

New comment by tranzystorekk on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1936326041

Comment:
zig unfortunately pins LLVM version strictly, and 0.11 wants LLVM 16

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (17 preceding siblings ...)
  2024-02-09 17:37 ` tranzystorekk
@ 2024-02-09 18:58 ` icp1994
  2024-02-10 12:42 ` Anachron
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: icp1994 @ 2024-02-09 18:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1936449007

Comment:
Ah right, forgot it's not forward compatible either.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (18 preceding siblings ...)
  2024-02-09 18:58 ` icp1994
@ 2024-02-10 12:42 ` Anachron
  2024-02-11 20:49 ` voidbert
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: Anachron @ 2024-02-10 12:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1936998384

Comment:
So we have to wait for zig0.12 and hope it uses llvm17? What if it uses 18? This is ridiculous (not our fault though).

Maybe zig has their own Compiler until then.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (19 preceding siblings ...)
  2024-02-10 12:42 ` Anachron
@ 2024-02-11 20:49 ` voidbert
  2024-02-12  3:59 ` Calandracas606
  2024-02-12  4:46 ` Anachron
  22 siblings, 0 replies; 24+ messages in thread
From: voidbert @ 2024-02-11 20:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

New comment by voidbert on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1937865711

Comment:
> So we have to wait for zig0.12 and hope it uses llvm17? What if it uses 18? This is ridiculous (not our fault though).
> 
> Maybe zig has their own Compiler until then.

Currently, C, x86 and ARM backups are on the works. Zig is also removing the hard dependency from LLVM: it'll output IR which can then be compiled by LLVM, and it won't need `libllvm` anymore. I do not know, however, if the produced IR will require a specific LLVM version.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (20 preceding siblings ...)
  2024-02-11 20:49 ` voidbert
@ 2024-02-12  3:59 ` Calandracas606
  2024-02-12  4:46 ` Anachron
  22 siblings, 0 replies; 24+ messages in thread
From: Calandracas606 @ 2024-02-12  3:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

New comment by Calandracas606 on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1938035683

Comment:
I'm already working on llvm18 #48661 

Hopefully it will ready for zig0.12


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: Updating Zig to 0.11.0
  2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
                   ` (21 preceding siblings ...)
  2024-02-12  3:59 ` Calandracas606
@ 2024-02-12  4:46 ` Anachron
  22 siblings, 0 replies; 24+ messages in thread
From: Anachron @ 2024-02-12  4:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/45424#issuecomment-1938060961

Comment:
Normally it takes a lot of time until all packages are ready and then zig0.12 will probably be old again.

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-02-12  4:46 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04 17:17 [ISSUE] Updating Zig to 0.11.0 booniepepper
2023-08-04 17:38 ` booniepepper
2023-08-04 18:59 ` icp1994
2023-08-04 20:29 ` booniepepper
2023-08-13 11:56 ` voidbert
2023-08-13 14:02 ` icp1994
2023-08-13 15:41 ` voidbert
2023-08-13 15:46 ` booniepepper
2023-08-13 15:57 ` voidbert
2023-08-13 17:55 ` booniepepper
2023-08-14  9:54 ` tranzystorek-io
2023-10-10 17:26 ` Anachron
2023-10-10 22:22 ` voidbert
2023-10-10 23:54 ` booniepepper
2023-10-11  5:46 ` Anachron
2024-01-10  1:47 ` github-actions
2024-01-10  9:10 ` booniepepper
2024-02-09 17:35 ` icp1994
2024-02-09 17:37 ` tranzystorekk
2024-02-09 18:58 ` icp1994
2024-02-10 12:42 ` Anachron
2024-02-11 20:49 ` voidbert
2024-02-12  3:59 ` Calandracas606
2024-02-12  4:46 ` Anachron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).