FS#67911 - [zig] Unrecognized glibc version: 2.32.0

Attached to Project: Community Packages
Opened by Alexander F. Rødseth (xyproto) - Wednesday, 16 September 2020, 12:43 GMT
Last edited by Daurnimator (daurnimator) - Wednesday, 16 September 2020, 22:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daurnimator (daurnimator)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

zig package version: 0.6.0-2

Description:

When attempting to build an executable with Zig, I get this error message:

Build Dependencies...Unrecognized glibc version: 2.32.0
unrecognized C ABI

Steps to reproduce:

1. Place this in main.zig:

const std = @import("std");

pub fn main() void {
std.debug.warn("Hello, world!\n", .{});
}

2. zig build-exe -lc main.zig

(This worked before).

The zig package might need a rebuild?
This task depends upon

Closed by  Daurnimator (daurnimator)
Wednesday, 16 September 2020, 22:52 GMT
Reason for closing:  Upstream
Additional comments about closing:  Will get fixed in next zig release (expected in around a month)
Comment by Daurnimator (daurnimator) - Wednesday, 16 September 2020, 22:52 GMT
This is a known issue with zig upstream where the default target doesn't work on glibc 2.32 systems.
See e.g. https://github.com/ziglang/zig/issues/6192

It is fixed in zig master with https://github.com/ziglang/zig/pull/6212

You can workaround it by using an explicit target of glibc 2.31: `zig build-exe src/main.zig -lc -target native-native-gnu.2.31`

Loading...