FS#68124 - [zig] programs linking against glibc do not compile
Attached to Project:
Community Packages
Opened by Matthew G (djmattyg007) - Tuesday, 06 October 2020, 22:34 GMT
Last edited by Daurnimator (daurnimator) - Tuesday, 13 October 2020, 21:45 GMT
Opened by Matthew G (djmattyg007) - Tuesday, 06 October 2020, 22:34 GMT
Last edited by Daurnimator (daurnimator) - Tuesday, 13 October 2020, 21:45 GMT
|
Details
Description:
Zig programs that link against glibc (by using '--library c' or equivalent through a build.zig script) cannot be successfully compiled right now. I get the following error messages: Unrecognized glibc version: 2.32.0 unrecognized C ABI Package versions: zig 0.6.0-2, glibc 2.32-4 Link to upstream bug report: It appears to be related to this: https://github.com/ziglang/zig/issues/6192 While a fix appears to have already been merged upstream, it appears as though a new release is still at least a few weeks away. Steps to reproduce: Put the following into a file named "test.zig": const stdio = @cImport(@cInclude("stdio.h")); pub fn main() !void { _ = stdio.printf("Hello %s!\n", "World"); } Then run the following command: zig build-exe test.zig --library c |
This task depends upon
Closed by Daurnimator (daurnimator)
Tuesday, 13 October 2020, 21:45 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#67911
Tuesday, 13 October 2020, 21:45 GMT
Reason for closing: Duplicate
Additional comments about closing: