#Build process failing
1 messages · Page 1 of 1 (latest)
The errors for fmt and print functions can be pretty bad. You can try adding the -freference-trace flag when building which can help show the line that this error originated from. If not you could post your code.
The error is coming from a call to fmt with fewer arguments than specified in the format string. E.g. calling std.debug.print("{}\n", .{}) will produce this error.
thank you so much. Unfortunately it did not provided more info.
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
const arm_lib_dir = "/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/33";
const arm_include_dir = "/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include";
const target = std.zig.CrossTarget{
.cpu_arch = .arm,
.os_tag = .linux,
.abi = .android,
.cpu_model = .baseline,
.cpu_features_add = std.Target.arm.featureSet(&.{.v7a}),
};
// const target = b.standardTargetOptions(.{});
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
// const mode = b.standardReleaseOptions();
const optimize = b.standardOptimizeOption(.{});
const lib = b.addSharedLibrary(.{
.name = "PabloDroid",
.root_source_file = .{ .path = "src/main.zig" },
.target = target,
.optimize = optimize,
.link_libc = true,
});
lib.addLibraryPath(.{ .path = arm_lib_dir });
lib.addIncludePath(.{ .path = arm_include_dir });
lib.linkSystemLibrary("EGL");
lib.linkSystemLibrary("android");
lib.linkSystemLibrary("log");
lib.linkSystemLibrary("GLESv3");
lib.defineCMacro("ANDROID", null);
b.installArtifact(lib);
}
that is the build.zig that fails to execute
Nothing sticks out to me in what you've posted, are you sure it is the build.zig itself that is failing and not the code being built from main.zig etc?
yep