-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failing on NetBSD due to error.NetworkUnreachable
#2143
Comments
The The http implementation is provided by the Zig standard library which can be tested like this: const std = @import("std");
pub fn main() !void {
var general_purpose_allocator: std.heap.GeneralPurposeAllocator(.{}) = .{};
defer _ = general_purpose_allocator.deinit() == .ok;
const gpa = general_purpose_allocator.allocator();
var arena_allocator = std.heap.ArenaAllocator.init(gpa);
defer arena_allocator.deinit();
var client: std.http.Client = .{ .allocator = gpa };
defer client.deinit();
try client.initDefaultProxies(arena_allocator.allocator());
var server_header_buffer: [16 * 1024]u8 = undefined;
var request = try client.open(
.GET,
try std.Uri.parse("https://raw.githubusercontent.com/ziglang/zig/0.13.0/doc/langref.html.in"),
.{ .server_header_buffer = &server_header_buffer },
);
defer request.deinit();
try request.send();
try request.finish();
try request.wait();
std.debug.print("status: {}", .{request.response.status});
} This should reproduce your issue with Zig 0.13.0. If this still fails with the latest nightly build of Zig, I would suggest to open an issue with Zig. |
Thanks. Will have to try that. In the meanwhile, for 0.13.0 on NetBSD, based on the PR, I prepared a patch that successfully builds:
|
Zig Version
0.13.0
ZLS Version
a267180
Client / Code Editor / Extensions
No response
Steps to Reproduce and Observed Behavior
pkgin
to install from reposzig
(e.g.pkgin in zig
. This currently installs0.13.0
)0.13.0
release tag:git clone -b 0.13.0 https://github.com/zigtools/zls && cd zls
zig build -Doptimize=ReleaseSafe
Build is failing on NetBSD for some reason. Tried the build same way on FreeBSD 14.1 amd64 (also on zig 0.13.0, same tag, same internet connection) which completed without errors.
Currently it fails with:
Expected Behavior
Complete build without errors
Relevant log output
No response
The text was updated successfully, but these errors were encountered: