Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

error: Unreachable code on gyro fetch #145

Closed
linuxy opened this issue Dec 7, 2021 · 1 comment
Closed

error: Unreachable code on gyro fetch #145

linuxy opened this issue Dec 7, 2021 · 1 comment

Comments

@linuxy
Copy link

linuxy commented Dec 7, 2021

It appears that gyro fetch does not wait for certain github submodules to download and hits unreachable code.

zig version

0.9.0-dev.1815+20e19e75f

[linuxy@void zsaga]$ gyro fetch
Segmentation fault at address 0x0
???:?:?: 0x282918 in ??? (???)
src/thread/pthread_create.c:195:2: 0x7fb54676d8cd in start (src/thread/pthread_create.c)
Aborted

[linuxy@void zsaga]$ gyro fetch
git github.com/fengb/wz d0f9221c [ ] 0% thread 1023 panic: reached unreachable code
Aborted

gyro.zzz

deps:
  zCord:
    git:
      url: "https://github.com/fengb/zCord.git"
      ref: master
      root: src/main.zig

build.zig

const Builder = @import("std").build.Builder;
const pkgs = @import("deps.zig").pkgs;

pub fn build(b: *Builder) void {
    const mode = b.standardReleaseOptions();

    const exe = b.addExecutable("main", "src/main.zig");
    exe.setBuildMode(mode);
    pkgs.addAllTo(exe);
    exe.install();

    const run_cmd = exe.run();
    run_cmd.step.dependOn(b.getInstallStep());
    if (b.args) |args| {
        run_cmd.addArgs(args);
    }

    const run_step = b.step("run", "Run the app");
    run_step.dependOn(&run_cmd.step);
}
@mattnite
Copy link
Owner

fixed this one a few weeks ago!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants