'x86-64' is not a recognized processor for this target (ignoring processor)

I’m building release binaries for multiple targets. But I am getting some errors printing after executing zig build release for my project:

jeff@jeff-debian:~/repos/gatorcat$ zig build release
release
└─ install gatorcat
   └─ zig build-exe gatorcat ReleaseSafe aarch64-linux-musl failure
error: 'x86-64' is not a recognized processor for this target (ignoring processor)
'+64bit' is not a recognized feature for this target (ignoring feature)
'+cmov' is not a recognized feature for this target (ignoring feature)
'+cx8' is not a recognized feature for this target (ignoring feature)
'+fxsr' is not a recognized feature for this target (ignoring feature)
'+idivq-to-divl' is not a recognized feature for this target (ignoring feature)
'+macrofusion' is not a recognized feature for this target (ignoring feature)
'+mmx' is not a recognized feature for this target (ignoring feature)
'+nopl' is not a recognized feature for this target (ignoring feature)
'+slow-3ops-lea' is not a recognized feature for this target (ignoring feature)
'+slow-incdec' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+vzeroupper' is not a recognized feature for this target (ignoring feature)
'+x87' is not a recognized feature for this target (ignoring feature)
'-16bit-mode' is not a recognized feature for this target (ignoring feature)
'-32bit-mode' is not a recognized feature for this target (ignoring feature)
'-adx' is not a recognized feature for this target (ignoring feature)
'-allow-light-256-bit' is not a recognized feature for this target (ignoring feature)
'-amx-bf16' is not a recognized feature for this target (ignoring feature)
'-amx-complex' is not a recognized feature for this target (ignoring feature)
'-amx-fp16' is not a recognized feature for this target (ignoring feature)
'-amx-int8' is not a recognized feature for this target (ignoring feature)
'-amx-tile' is not a recognized feature for this target (ignoring feature)
'-avx' is not a recognized feature for this target (ignoring feature)
'-avx10.1-256' is not a recognized feature for this target (ignoring feature)
'-avx10.1-512' is not a recognized feature for this target (ignoring feature)
'-avx2' is not a recognized feature for this target (ignoring feature)
'-avx512bf16' is not a recognized feature for this target (ignoring feature)
'-avx512bitalg' is not a recognized feature for this target (ignoring feature)
'-avx512bw' is not a recognized feature for this target (ignoring feature)
'-avx512cd' is not a recognized feature for this target (ignoring feature)
'-avx512dq' is not a recognized feature for this target (ignoring feature)
'-avx512f' is not a recognized feature for this target (ignoring feature)
'-avx512fp16' is not a recognized feature for this target (ignoring feature)
'-avx512ifma' is not a recognized feature for this target (ignoring feature)
'-avx512vbmi' is not a recognized feature for this target (ignoring feature)
'-avx512vbmi2' is not a recognized feature for this target (ignoring feature)
'-avx512vl' is not a recognized feature for this target (ignoring feature)
'-avx512vnni' is not a recognized feature for this target (ignoring feature)
'-avx512vp2intersect' is not a recognized feature for this target (ignoring feature)
'-avx512vpopcntdq' is not a recognized feature for this target (ignoring feature)
'-avxifma' is not a recognized feature for this target (ignoring feature)
'-avxneconvert' is not a recognized feature for this target (ignoring feature)
'-avxvnni' is not a recognized feature for this target (ignoring feature)
'-avxvnniint16' is not a recognized feature for this target (ignoring feature)
'-avxvnniint8' is not a recognized feature for this target (ignoring feature)
'-bmi' is not a recognized feature for this target (ignoring feature)
'-bmi2' is not a recognized feature for this target (ignoring feature)
'-branch-hint' is not a recognized feature for this target (ignoring feature)
'-branchfusion' is not a recognized feature for this target (ignoring feature)
'-ccmp' is not a recognized feature for this target (ignoring feature)
'-cf' is not a recognized feature for this target (ignoring feature)
'-cldemote' is not a recognized feature for this target (ignoring feature)
'-clflushopt' is not a recognized feature for this target (ignoring feature)
'-clwb' is not a recognized feature for this target (ignoring feature)
'-clzero' is not a recognized feature for this target (ignoring feature)
'-cmpccxadd' is not a recognized feature for this target (ignoring feature)
'-crc32' is not a recognized feature for this target (ignoring feature)
'-cx16' is not a recognized feature for this target (ignoring feature)
'-egpr' is not a recognized feature for this target (ignoring feature)
'-enqcmd' is not a recognized feature for this target (ignoring feature)
'-ermsb' is not a recognized feature for this target (ignoring feature)
'-evex512' is not a recognized feature for this target (ignoring feature)
'-f16c' is not a recognized feature for this target (ignoring feature)
'-false-deps-getmant' is not a recognized feature for this target (ignoring feature)
'-false-deps-lzcnt-tzcnt' is not a recognized feature for this target (ignoring feature)
'-false-deps-mulc' is not a recognized feature for this target (ignoring feature)
'-false-deps-mullq' is not a recognized feature for this target (ignoring feature)
'-false-deps-perm' is not a recognized feature for this target (ignoring feature)
'-false-deps-popcnt' is not a recognized feature for this target (ignoring feature)
'-false-deps-range' is not a recognized feature for this target (ignoring feature)
'-fast-11bytenop' is not a recognized feature for this target (ignoring feature)
'-fast-15bytenop' is not a recognized feature for this target (ignoring feature)
'-fast-7bytenop' is not a recognized feature for this target (ignoring feature)
'-fast-bextr' is not a recognized feature for this target (ignoring feature)
'-fast-dpwssd' is not a recognized feature for this target (ignoring feature)
'-fast-gather' is not a recognized feature for this target (ignoring feature)
'-fast-hops' is not a recognized feature for this target (ignoring feature)
'-fast-imm16' is not a recognized feature for this target (ignoring feature)
'-fast-lzcnt' is not a recognized feature for this target (ignoring feature)
'-fast-movbe' is not a recognized feature for this target (ignoring feature)
'-fast-scalar-fsqrt' is not a recognized feature for this target (ignoring feature)
'-fast-scalar-shift-masks' is not a recognized feature for this target (ignoring feature)
'-fast-shld-rotate' is not a recognized feature for this target (ignoring feature)
'-fast-variable-crosslane-shuffle' is not a recognized feature for this target (ignoring feature)
'-fast-variable-perlane-shuffle' is not a recognized feature for this target (ignoring feature)
'-fast-vector-fsqrt' is not a recognized feature for this target (ignoring feature)
'-fast-vector-shift-masks' is not a recognized feature for this target (ignoring feature)
'-faster-shift-than-shuffle' is not a recognized feature for this target (ignoring feature)
'-fma' is not a recognized feature for this target (ignoring feature)
'-fma4' is not a recognized feature for this target (ignoring feature)
'-fsgsbase' is not a recognized feature for this target (ignoring feature)
'-fsrm' is not a recognized feature for this target (ignoring feature)
'-gfni' is not a recognized feature for this target (ignoring feature)
'-harden-sls-ijmp' is not a recognized feature for this target (ignoring feature)
'-harden-sls-ret' is not a recognized feature for this target (ignoring feature)
'-hreset' is not a recognized feature for this target (ignoring feature)
'-idivl-to-divb' is not a recognized feature for this target (ignoring feature)
'-inline-asm-use-gpr32' is not a recognized feature for this target (ignoring feature)
'-invpcid' is not a recognized feature for this target (ignoring feature)
'-kl' is not a recognized feature for this target (ignoring feature)
'-lea-sp' is not a recognized feature for this target (ignoring feature)
'-lea-uses-ag' is not a recognized feature for this target (ignoring feature)
'-lvi-cfi' is not a recognized feature for this target (ignoring feature)
'-lvi-load-hardening' is not a recognized feature for this target (ignoring feature)
'-lwp' is not a recognized feature for this target (ignoring feature)
'-lzcnt' is not a recognized feature for this target (ignoring feature)
'-movbe' is not a recognized feature for this target (ignoring feature)
'-movdir64b' is not a recognized feature for this target (ignoring feature)
'-movdiri' is not a recognized feature for this target (ignoring feature)
'-mwaitx' is not a recognized feature for this target (ignoring feature)
'-ndd' is not a recognized feature for this target (ignoring feature)
'-nf' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay-blend' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay-mov' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay-shuffle' is not a recognized feature for this target (ignoring feature)
'-pad-short-functions' is not a recognized feature for this target (ignoring feature)
'-pclmul' is not a recognized feature for this target (ignoring feature)
'-pconfig' is not a recognized feature for this target (ignoring feature)
'-pku' is not a recognized feature for this target (ignoring feature)
'-popcnt' is not a recognized feature for this target (ignoring feature)
'-ppx' is not a recognized feature for this target (ignoring feature)
'-prefer-128-bit' is not a recognized feature for this target (ignoring feature)
'-prefer-256-bit' is not a recognized feature for this target (ignoring feature)
'-prefer-mask-registers' is not a recognized feature for this target (ignoring feature)
'-prefer-movmsk-over-vtest' is not a recognized feature for this target (ignoring feature)
'-prefer-no-gather' is not a recognized feature for this target (ignoring feature)
'-prefer-no-scatter' is not a recognized feature for this target (ignoring feature)
'-prefetchi' is not a recognized feature for this target (ignoring feature)
'-prfchw' is not a recognized feature for this target (ignoring feature)
'-ptwrite' is not a recognized feature for this target (ignoring feature)
'-push2pop2' is not a recognized feature for this target (ignoring feature)
'-raoint' is not a recognized feature for this target (ignoring feature)
'-rdpid' is not a recognized feature for this target (ignoring feature)
'-rdpru' is not a recognized feature for this target (ignoring feature)
'-rdrnd' is not a recognized feature for this target (ignoring feature)
'-rdseed' is not a recognized feature for this target (ignoring feature)
'-retpoline' is not a recognized feature for this target (ignoring feature)
'-retpoline-external-thunk' is not a recognized feature for this target (ignoring feature)
'-retpoline-indirect-branches' is not a recognized feature for this target (ignoring feature)
'-retpoline-indirect-calls' is not a recognized feature for this target (ignoring feature)
'-rtm' is not a recognized feature for this target (ignoring feature)
'-sahf' is not a recognized feature for this target (ignoring feature)
'-sbb-dep-breaking' is not a recognized feature for this target (ignoring feature)
'-serialize' is not a recognized feature for this target (ignoring feature)
'-seses' is not a recognized feature for this target (ignoring feature)
'-sgx' is not a recognized feature for this target (ignoring feature)
'-sha' is not a recognized feature for this target (ignoring feature)
'-sha512' is not a recognized feature for this target (ignoring feature)
'-shstk' is not a recognized feature for this target (ignoring feature)
'-slow-lea' is not a recognized feature for this target (ignoring feature)
'-slow-pmaddwd' is not a recognized feature for this target (ignoring feature)
'-slow-pmulld' is not a recognized feature for this target (ignoring feature)
'-slow-shld' is not a recognized feature for this target (ignoring feature)
'-slow-two-mem-ops' is not a recognized feature for this target (ignoring feature)
'-slow-unaligned-mem-16' is not a recognized feature for this target (ignoring feature)
'-slow-unaligned-mem-32' is not a recognized feature for this target (ignoring feature)
'-sm3' is not a recognized feature for this target (ignoring feature)
'-soft-float' is not a recognized feature for this target (ignoring feature)
'-sse3' is not a recognized feature for this target (ignoring feature)
'-sse4.1' is not a recognized feature for this target (ignoring feature)
'-sse4.2' is not a recognized feature for this target (ignoring feature)
'-sse4a' is not a recognized feature for this target (ignoring feature)
'-sse-unaligned-mem' is not a recognized feature for this target (ignoring feature)
'-ssse3' is not a recognized feature for this target (ignoring feature)
'-tbm' is not a recognized feature for this target (ignoring feature)
'-tsxldtrk' is not a recognized feature for this target (ignoring feature)
'-tuning-fast-imm-vector-shift' is not a recognized feature for this target (ignoring feature)
'-uintr' is not a recognized feature for this target (ignoring feature)
'-use-glm-div-sqrt-costs' is not a recognized feature for this target (ignoring feature)
'-use-slm-arith-costs' is not a recognized feature for this target (ignoring feature)
'-usermsr' is not a recognized feature for this target (ignoring feature)
'-vaes' is not a recognized feature for this target (ignoring feature)
'-vpclmulqdq' is not a recognized feature for this target (ignoring feature)
'-waitpkg' is not a recognized feature for this target (ignoring feature)
'-wbnoinvd' is not a recognized feature for this target (ignoring feature)
'-widekl' is not a recognized feature for this target (ignoring feature)
'-xop' is not a recognized feature for this target (ignoring feature)
'-xsave' is not a recognized feature for this target (ignoring feature)
'-xsavec' is not a recognized feature for this target (ignoring feature)
'-xsaveopt' is not a recognized feature for this target (ignoring feature)
'-xsaves' is not a recognized feature for this target (ignoring feature)
'-zu' is not a recognized feature for this target (ignoring feature)
'x86-64' is not a recognized processor for this target (ignoring processor)
'x86-64' is not a recognized processor for this target (ignoring processor)
'+64bit' is not a recognized feature for this target (ignoring feature)
'+cmov' is not a recognized feature for this target (ignoring feature)
'+cx8' is not a recognized feature for this target (ignoring feature)
'+fxsr' is not a recognized feature for this target (ignoring feature)
'+idivq-to-divl' is not a recognized feature for this target (ignoring feature)
'+macrofusion' is not a recognized feature for this target (ignoring feature)
'+mmx' is not a recognized feature for this target (ignoring feature)
'+nopl' is not a recognized feature for this target (ignoring feature)
'+slow-3ops-lea' is not a recognized feature for this target (ignoring feature)
'+slow-incdec' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+vzeroupper' is not a recognized feature for this target (ignoring feature)
'+x87' is not a recognized feature for this target (ignoring feature)
'-16bit-mode' is not a recognized feature for this target (ignoring feature)
'-32bit-mode' is not a recognized feature for this target (ignoring feature)
'-adx' is not a recognized feature for this target (ignoring feature)
'-allow-light-256-bit' is not a recognized feature for this target (ignoring feature)
'-amx-bf16' is not a recognized feature for this target (ignoring feature)
'-amx-complex' is not a recognized feature for this target (ignoring feature)
'-amx-fp16' is not a recognized feature for this target (ignoring feature)
'-amx-int8' is not a recognized feature for this target (ignoring feature)
'-amx-tile' is not a recognized feature for this target (ignoring feature)
'-avx' is not a recognized feature for this target (ignoring feature)
'-avx10.1-256' is not a recognized feature for this target (ignoring feature)
'-avx10.1-512' is not a recognized feature for this target (ignoring feature)
'-avx2' is not a recognized feature for this target (ignoring feature)
'-avx512bf16' is not a recognized feature for this target (ignoring feature)
'-avx512bitalg' is not a recognized feature for this target (ignoring feature)
'-avx512bw' is not a recognized feature for this target (ignoring feature)
'-avx512cd' is not a recognized feature for this target (ignoring feature)
'-avx512dq' is not a recognized feature for this target (ignoring feature)
'-avx512f' is not a recognized feature for this target (ignoring feature)
'-avx512fp16' is not a recognized feature for this target (ignoring feature)
'-avx512ifma' is not a recognized feature for this target (ignoring feature)
'-avx512vbmi' is not a recognized feature for this target (ignoring feature)
'-avx512vbmi2' is not a recognized feature for this target (ignoring feature)
'-avx512vl' is not a recognized feature for this target (ignoring feature)
'-avx512vnni' is not a recognized feature for this target (ignoring feature)
'-avx512vp2intersect' is not a recognized feature for this target (ignoring feature)
'-avx512vpopcntdq' is not a recognized feature for this target (ignoring feature)
'-avxifma' is not a recognized feature for this target (ignoring feature)
'-avxneconvert' is not a recognized feature for this target (ignoring feature)
'-avxvnni' is not a recognized feature for this target (ignoring feature)
'-avxvnniint16' is not a recognized feature for this target (ignoring feature)
'-avxvnniint8' is not a recognized feature for this target (ignoring feature)
'-bmi' is not a recognized feature for this target (ignoring feature)
'-bmi2' is not a recognized feature for this target (ignoring feature)
'-branch-hint' is not a recognized feature for this target (ignoring feature)
'-branchfusion' is not a recognized feature for this target (ignoring feature)
'-ccmp' is not a recognized feature for this target (ignoring feature)
'-cf' is not a recognized feature for this target (ignoring feature)
'-cldemote' is not a recognized feature for this target (ignoring feature)
'-clflushopt' is not a recognized feature for this target (ignoring feature)
'-clwb' is not a recognized feature for this target (ignoring feature)
'-clzero' is not a recognized feature for this target (ignoring feature)
'-cmpccxadd' is not a recognized feature for this target (ignoring feature)
'-crc32' is not a recognized feature for this target (ignoring feature)
'-cx16' is not a recognized feature for this target (ignoring feature)
'-egpr' is not a recognized feature for this target (ignoring feature)
'-enqcmd' is not a recognized feature for this target (ignoring feature)
'-ermsb' is not a recognized feature for this target (ignoring feature)
'-evex512' is not a recognized feature for this target (ignoring feature)
'-f16c' is not a recognized feature for this target (ignoring feature)
'-false-deps-getmant' is not a recognized feature for this target (ignoring feature)
'-false-deps-lzcnt-tzcnt' is not a recognized feature for this target (ignoring feature)
'-false-deps-mulc' is not a recognized feature for this target (ignoring feature)
'-false-deps-mullq' is not a recognized feature for this target (ignoring feature)
'-false-deps-perm' is not a recognized feature for this target (ignoring feature)
'-false-deps-popcnt' is not a recognized feature for this target (ignoring feature)
'-false-deps-range' is not a recognized feature for this target (ignoring feature)
'-fast-11bytenop' is not a recognized feature for this target (ignoring feature)
'-fast-15bytenop' is not a recognized feature for this target (ignoring feature)
'-fast-7bytenop' is not a recognized feature for this target (ignoring feature)
'-fast-bextr' is not a recognized feature for this target (ignoring feature)
'-fast-dpwssd' is not a recognized feature for this target (ignoring feature)
'-fast-gather' is not a recognized feature for this target (ignoring feature)
'-fast-hops' is not a recognized feature for this target (ignoring feature)
'-fast-imm16' is not a recognized feature for this target (ignoring feature)
'-fast-lzcnt' is not a recognized feature for this target (ignoring feature)
'-fast-movbe' is not a recognized feature for this target (ignoring feature)
'-fast-scalar-fsqrt' is not a recognized feature for this target (ignoring feature)
'-fast-scalar-shift-masks' is not a recognized feature for this target (ignoring feature)
'-fast-shld-rotate' is not a recognized feature for this target (ignoring feature)
'-fast-variable-crosslane-shuffle' is not a recognized feature for this target (ignoring feature)
'-fast-variable-perlane-shuffle' is not a recognized feature for this target (ignoring feature)
'-fast-vector-fsqrt' is not a recognized feature for this target (ignoring feature)
'-fast-vector-shift-masks' is not a recognized feature for this target (ignoring feature)
'-faster-shift-than-shuffle' is not a recognized feature for this target (ignoring feature)
'-fma' is not a recognized feature for this target (ignoring feature)
'-fma4' is not a recognized feature for this target (ignoring feature)
'-fsgsbase' is not a recognized feature for this target (ignoring feature)
'-fsrm' is not a recognized feature for this target (ignoring feature)
'-gfni' is not a recognized feature for this target (ignoring feature)
'-harden-sls-ijmp' is not a recognized feature for this target (ignoring feature)
'-harden-sls-ret' is not a recognized feature for this target (ignoring feature)
'-hreset' is not a recognized feature for this target (ignoring feature)
'-idivl-to-divb' is not a recognized feature for this target (ignoring feature)
'-inline-asm-use-gpr32' is not a recognized feature for this target (ignoring feature)
'-invpcid' is not a recognized feature for this target (ignoring feature)
'-kl' is not a recognized feature for this target (ignoring feature)
'-lea-sp' is not a recognized feature for this target (ignoring feature)
'-lea-uses-ag' is not a recognized feature for this target (ignoring feature)
'-lvi-cfi' is not a recognized feature for this target (ignoring feature)
'-lvi-load-hardening' is not a recognized feature for this target (ignoring feature)
'-lwp' is not a recognized feature for this target (ignoring feature)
'-lzcnt' is not a recognized feature for this target (ignoring feature)
'-movbe' is not a recognized feature for this target (ignoring feature)
'-movdir64b' is not a recognized feature for this target (ignoring feature)
'-movdiri' is not a recognized feature for this target (ignoring feature)
'-mwaitx' is not a recognized feature for this target (ignoring feature)
'-ndd' is not a recognized feature for this target (ignoring feature)
'-nf' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay-blend' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay-mov' is not a recognized feature for this target (ignoring feature)
'-no-bypass-delay-shuffle' is not a recognized feature for this target (ignoring feature)
'-pad-short-functions' is not a recognized feature for this target (ignoring feature)
'-pclmul' is not a recognized feature for this target (ignoring feature)
'-pconfig' is not a recognized feature for this target (ignoring feature)
'-pku' is not a recognized feature for this target (ignoring feature)
'-popcnt' is not a recognized feature for this target (ignoring feature)
'-ppx' is not a recognized feature for this target (ignoring feature)
'-prefer-128-bit' is not a recognized feature for this target (ignoring feature)
'-prefer-256-bit' is not a recognized feature for this target (ignoring feature)
'-prefer-mask-registers' is not a recognized feature for this target (ignoring feature)
'-prefer-movmsk-over-vtest' is not a recognized feature for this target (ignoring feature)
'-prefer-no-gather' is not a recognized feature for this target (ignoring feature)
'-prefer-no-scatter' is not a recognized feature for this target (ignoring feature)
'-prefetchi' is not a recognized feature for this target (ignoring feature)
'-prfchw' is not a recognized feature for this target (ignoring feature)
'-ptwrite' is not a recognized feature for this target (ignoring feature)
'-push2pop2' is not a recognized feature for this target (ignoring feature)
'-raoint' is not a recognized feature for this target (ignoring feature)
'-rdpid' is not a recognized feature for this target (ignoring feature)
'-rdpru' is not a recognized feature for this target (ignoring feature)
'-rdrnd' is not a recognized feature for this target (ignoring feature)
'-rdseed' is not a recognized feature for this target (ignoring feature)
'-retpoline' is not a recognized feature for this target (ignoring feature)
'-retpoline-external-thunk' is not a recognized feature for this target (ignoring feature)
'-retpoline-indirect-branches' is not a recognized feature for this target (ignoring feature)
'-retpoline-indirect-calls' is not a recognized feature for this target (ignoring feature)
'-rtm' is not a recognized feature for this target (ignoring feature)
'-sahf' is not a recognized feature for this target (ignoring feature)
'-sbb-dep-breaking' is not a recognized feature for this target (ignoring feature)
'-serialize' is not a recognized feature for this target (ignoring feature)
'-seses' is not a recognized feature for this target (ignoring feature)
'-sgx' is not a recognized feature for this target (ignoring feature)
'-sha' is not a recognized feature for this target (ignoring feature)
'-sha512' is not a recognized feature for this target (ignoring feature)
'-shstk' is not a recognized feature for this target (ignoring feature)
'-slow-lea' is not a recognized feature for this target (ignoring feature)
'-slow-pmaddwd' is not a recognized feature for this target (ignoring feature)
'-slow-pmulld' is not a recognized feature for this target (ignoring feature)
'-slow-shld' is not a recognized feature for this target (ignoring feature)
'-slow-two-mem-ops' is not a recognized feature for this target (ignoring feature)
'-slow-unaligned-mem-16' is not a recognized feature for this target (ignoring feature)
'-slow-unaligned-mem-32' is not a recognized feature for this target (ignoring feature)
'-sm3' is not a recognized feature for this target (ignoring feature)
'-soft-float' is not a recognized feature for this target (ignoring feature)
'-sse3' is not a recognized feature for this target (ignoring feature)
'-sse4.1' is not a recognized feature for this target (ignoring feature)
'-sse4.2' is not a recognized feature for this target (ignoring feature)
'-sse4a' is not a recognized feature for this target (ignoring feature)
'-sse-unaligned-mem' is not a recognized feature for this target (ignoring feature)
'-ssse3' is not a recognized feature for this target (ignoring feature)
'-tbm' is not a recognized feature for this target (ignoring feature)
'-tsxldtrk' is not a recognized feature for this target (ignoring feature)
'-tuning-fast-imm-vector-shift' is not a recognized feature for this target (ignoring feature)
'-uintr' is not a recognized feature for this target (ignoring feature)
'-use-glm-div-sqrt-costs' is not a recognized feature for this target (ignoring feature)
'-use-slm-arith-costs' is not a recognized feature for this target (ignoring feature)
'-usermsr' is not a recognized feature for this target (ignoring feature)
'-vaes' is not a recognized feature for this target (ignoring feature)
'-vpclmulqdq' is not a recognized feature for this target (ignoring feature)
'-waitpkg' is not a recognized feature for this target (ignoring feature)
'-wbnoinvd' is not a recognized feature for this target (ignoring feature)
'-widekl' is not a recognized feature for this target (ignoring feature)
'-xop' is not a recognized feature for this target (ignoring feature)
'-xsave' is not a recognized feature for this target (ignoring feature)
'-xsavec' is not a recognized feature for this target (ignoring feature)
'-xsaveopt' is not a recognized feature for this target (ignoring feature)
'-xsaves' is not a recognized feature for this target (ignoring feature)
'-zu' is not a recognized feature for this target (ignoring feature)
'x86-64' is not a recognized processor for this target (ignoring processor)

Has anyone seen these errors before? Where do they come from? I think it may have come from accidentally specifying the wrong target for a dependency, but I dont know.

Here is the relevant subsection of my build.zig:

pub fn buildRelease(
    b: *std.Build,
    step: *std.Build.Step,
) void {
    const targets: []const std.Target.Query = &.{
        .{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
        // TODO: re-enable windows
        // .{ .cpu_arch = .x86_64, .os_tag = .windows, .abi = .gnu },
        .{ .cpu_arch = .aarch64, .os_tag = .linux, .abi = .musl },
    };

    for (targets) |target| {
        const options: BuildOptions = .{
            .target = b.resolveTargetQuery(target),
            .optimize = .ReleaseSafe,
        };
        const gatorcat_module = b.addModule("gatorcat", .{
            .root_source_file = b.path("src/module/root.zig"),
            .target = options.target,
            .optimize = options.optimize,
        });
        // depend on the npcap sdk if we are building for windows
        switch (options.target.result.os.tag) {
            .windows => {
                if (b.lazyDependency("npcap", .{
                    .target = options.target,
                    .optimize = options.optimize,
                })) |npcap| {
                    gatorcat_module.addImport("npcap", npcap.module("npcap"));
                }
            },
            else => {},
        }
        const flags_module = b.dependency("flags", .{
            .target = options.target,
            .optimize = options.optimize,
        }).module("flags");
        const zbor_module = b.dependency("zbor", .{
            .target = options.target,
            .optimize = options.optimize,
        }).module("zbor");
        const zenoh_module = b.dependency("zenoh", .{
            .target = options.target,
            .optimize = options.optimize,
        }).module("zenoh");
        buildCli(
            b,
            step,
            .{ .target = options.target, .optimize = options.optimize },
            gatorcat_module,
            flags_module,
            zenoh_module,
            zbor_module,
            .{ .override = .{ .custom = target.zigTriple(b.allocator) catch @panic("oom") } },
        );
    }
}

ok I think somewhere in my project I am compiling for native when I should be cross-compiling…

Ok I enabled --verbose-link and it says elf_x86_64. I don’t actually know what a linker is but I’m pretty sure it shouldn’t be saying that when I am targeting aarch64.

zig build -Dtarget=aarch64-linux-gnu --verbose-link
ld.lld --error-limit=0 -mllvm -float-abi=hard --entry _start -z stack-size=16777216 --image-base=16777216 --eh-frame-hdr -znow -m elf_x86_64 -static -o /home/jeff/repos/gatorcat/.zig-cache/o/94218b8efdc652dab2cc5fffe273e75e/build /home/jeff/repos/gatorcat/.zig-cache/o/94218b8efdc652dab2cc5fffe273e75e/build.o --as-needed /home/jeff/.cache/zig/o/89f318ef06ac1be7588646f2a6852fa6/libcompiler_rt.a

edit: nevermind thats the linking for my build script

this is the link for the exe, which says aarch64linux

ld.lld --error-limit=0 -mllvm -float-abi=hard --entry _start -z stack-size=16777216 --image-base=16777216 --eh-frame-hdr -znow -m aarch64linux -static -o /home/jeff/repos/gatorcat/.zig-cache/o/704080f29d54daff751ee5cceb316031/gatorcat /home/jeff/.cache/zig/o/5d323dd7820be3e1a2063bf3b30c4e41/crt1.o /home/jeff/.cache/zig/p/N-V-__8AAOokVgO0AcAYT3WdXB_sFWghwdMVE1Z291qyaMwo/lib/libzenohc.a /home/jeff/repos/gatorcat/.zig-cache/o/704080f29d54daff751ee5cceb316031/gatorcat.o --as-needed /home/jeff/.cache/zig/o/ee0e840c3718f7ec020e4ccf3e2484ac/libc++abi.a /home/jeff/.cache/zig/o/acbf5aefd3bf18938dc114d3e5dbd3bf/libc++.a /home/jeff/.cache/zig/o/f5c7a5fa587c011d1a03a90a3bed0960/libunwind.a /home/jeff/.cache/zig/o/0e2e916218f578b26525a917b17e3df1/libc.a /home/jeff/.cache/zig/o/bec68fae38215e24edaf804f50eddf22/libcompiler_rt.a --allow-shlib-undefined

Not fully certain this is the problem, but you’re calling addModule with the same name multiple times: once in build and then once for each target in buildRelease. addModule adds to a hash map keyed by the name, so you’re clobbering the module over and over.

Instead, you want to use createModule in buildRelease since you’re not trying to make it available to other packages.

2 Likes

Perhaps this should be turned into an error.

2 Likes

Great tip! I switched to createModule but I am still getting the error. I get it even when I only build a single executable:

$ rm -rf .zig-cache/
$ zig build -Dtarget=aarch64-linux-musl
install
└─ install gatorcat
   └─ zig build-exe gatorcat Debug aarch64-linux-musl failure
error: 'x86-64' is not a recognized processor for this target (ignoring processor)

And when I build multiple:

$ rm -rf .zig-cache/
$ zig build release
release
└─ install gatorcat
   └─ zig build-exe gatorcat ReleaseSafe aarch64-linux-musl failure
error: 'x86-64' is not a recognized processor for this target (ignoring processor)

FYI I am on an x86_64-linux machine.

I found the issue, one of my dependencies (that I wrote) was incorrectly using a translate-c step with a hard-coded target (not sure why I did that)!

const translate_c = b.addTranslateC(.{
    .link_libc = true,
    .optimize = optimize,
    .target = b.resolveTargetQuery(.{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl }),
    .root_source_file = zenoh_c_dep.path("include/zenoh.h"),
});
zenoh.addImport("zenoh_c", translate_c.createModule());

Which I just needed to change to use the default target:

const translate_c = b.addTranslateC(.{
    .link_libc = true,
    .optimize = optimize,
    .target = target,
    .root_source_file = zenoh_c_dep.path("include/zenoh.h"),
});
zenoh.addImport("zenoh_c", translate_c.createModule());
1 Like