Skip to content
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

Add Snap build for armhf/armv7 architecture #2

Open
danielpgross opened this issue Oct 25, 2023 · 1 comment
Open

Add Snap build for armhf/armv7 architecture #2

danielpgross opened this issue Oct 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@danielpgross
Copy link
Owner

Attempting to build the snap on Snapcraft Cloud for armhf produces the following error:

zig build --global-cache-dir /build/friendly-neighbor/parts/friendly-neighbor/build/zig-cache/
thread 9738 panic: integer overflow
/snap/zig/8738/lib/std/process.zig:1222:22: 0xb6a43 in totalSystemMemoryLinux (build)
    return kilobytes * 1024;
                     ^
/snap/zig/8738/lib/std/process.zig:1164:42: 0xa578b in totalSystemMemory (build)
            return totalSystemMemoryLinux() catch return error.UnknownTotalSystemMemory;
                                         ^
/snap/zig/8738/lib/build_runner.zig:316:48: 0xa1dcb in main (build)
        run.max_rss = process.totalSystemMemory() catch std.math.maxInt(usize);
                                               ^
/snap/zig/8738/lib/std/start.zig:370:37: 0x904e3 in posixCallMainAndExit (build)
            var i: usize = 0;
                                    ^
???:?:?: 0x0 in ??? (???)
error: the following build command crashed:
/build/friendly-neighbor/parts/friendly-neighbor/build/zig-cache/o/4fb5c8308bb66929791e1c0a7a99fb3b/build /snap/zig/8738/zig /build/friendly-neighbor/parts/friendly-neighbor/build /build/friendly-neighbor/parts/friendly-neighbor/build/zig-cache /build/friendly-neighbor/parts/friendly-neighbor/build/zig-cache/
'override-build' in part 'friendly-neighbor' failed with code 1.

Seems to be caused by ziglang/zig#17596.

We should ideally support armhf, since many low-power devices use it, including Raspberry Pi version 2 and earlier.

@danielpgross danielpgross added the enhancement New feature or request label Oct 25, 2023
@CommanderTso
Copy link

Just ran into this trying to install on my Pi 3; I'd love to be able to use this on there. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants