Build fails with missing dependency only when using -fincremental

I’m trying to build this package with zig 0.16.0, which builds just fine with zig build --watch but when adding -fincrementalI get the following error:

getPath() was called on a GeneratedFile that wasn't built yet.
  source package path: /home/ab/test/skb
  Is there a missing Step dependency on step 'compile lib skribidi Debug native'?
    The step was created by this stack trace:
name: 'compile lib skribidi Debug native'. creation stack trace:
/home/ab/.zvm/0.16.0/lib/std/Build/Step/Compile.zig:420:22: 0x1566a66 in create (std.zig)
        .step = .init(.{
                     ^
/home/ab/.zvm/0.16.0/lib/std/Build.zig:843:19: 0x15657a1 in addLibrary (std.zig)
    return .create(b, .{
                  ^
/home/ab/test/skb/build.zig:58:29: 0x155a1ed in build (build.zig)
    const lib = b.addLibrary(.{ .name = "skribidi", .root_module = mod });
                            ^
/home/ab/.zvm/0.16.0/lib/std/Build.zig:2264:33: 0x1558e0a in runBuild__anon_34165 (std.zig)
        .void => build_zig.build(b),
                                ^
/home/ab/.zvm/0.16.0/lib/compiler/build_runner.zig:463:29: 0x1278524 in main (build_runner.zig)
        try builder.runBuild(root);
                            ^
/home/ab/.zvm/0.16.0/lib/std/start.zig:699:88: 0x127e040 in callMain (std.zig)
    if (fn_info.params[0].type.? == std.process.Init.Minimal) return wrapMain(root.main(.{
                                                                                       ^
/home/ab/.zvm/0.16.0/lib/std/start.zig:190:5: 0x1262201 in _start (std.zig)
    asm volatile (switch (native_arch) {
    ^
    The step 'install skribidi' that is missing a dependency on the above step was created by this stack trace:
name: 'install skribidi'. creation stack trace:
/home/ab/.zvm/0.16.0/lib/std/Build/Step/InstallArtifact.zig:71:26: 0x155b62f in create (std.zig)
        .step = Step.init(.{
                         ^
/home/ab/.zvm/0.16.0/lib/std/Build.zig:1671:39: 0x155b114 in addInstallArtifact (std.zig)
    return Step.InstallArtifact.create(b, artifact, options);
                                      ^
/home/ab/.zvm/0.16.0/lib/std/Build.zig:1661:54: 0x155ac56 in installArtifact (std.zig)
    b.getInstallStep().dependOn(&b.addInstallArtifact(artifact, .{}).step);
                                                     ^
/home/ab/test/skb/build.zig:59:22: 0x155a222 in build (build.zig)
    b.installArtifact(lib);
                     ^
/home/ab/.zvm/0.16.0/lib/std/Build.zig:2264:33: 0x1558e0a in runBuild__anon_34165 (std.zig)
        .void => build_zig.build(b),
                                ^
/home/ab/.zvm/0.16.0/lib/compiler/build_runner.zig:463:29: 0x1278524 in main (build_runner.zig)
        try builder.runBuild(root);
                            ^
/home/ab/.zvm/0.16.0/lib/std/start.zig:699:88: 0x127e040 in callMain (std.zig)
    if (fn_info.params[0].type.? == std.process.Init.Minimal) return wrapMain(root.main(.{
                                                                                       ^
/home/ab/.zvm/0.16.0/lib/std/start.zig:190:5: 0x1262201 in _start (std.zig)
    asm volatile (switch (native_arch) {
    ^
(additional stack frames may have been skipped...)
    Proceeding to panic.
thread 206105 panic: misconfigured build script
/home/ab/.zvm/0.16.0/lib/std/Build.zig:2521:25: 0x138d105 in getPath4 (std.zig)
                        @panic("misconfigured build script");
                        ^
/home/ab/.zvm/0.16.0/lib/std/Build.zig:2489:24: 0x138c96d in getPath3 (std.zig)
        return getPath4(lazy_path, src_builder, asking_step) catch |err| switch (err) {
                       ^
/home/ab/.zvm/0.16.0/lib/std/Build/Step.zig:528:44: 0x155db37 in installFile (std.zig)
    const src_path = src_lazy_path.getPath3(b, s);
                                           ^
/home/ab/.zvm/0.16.0/lib/std/Build/Step/InstallArtifact.zig:140:39: 0x155f795 in make (std.zig)
        const p = try step.installFile(install_artifact.emitted_bin.?, full_dest_path);
                                      ^
/home/ab/.zvm/0.16.0/lib/std/Build/Step.zig:278:33: 0x147da7f in make (std.zig)
    const make_result = s.makeFn(s, options);
                                ^
/home/ab/.zvm/0.16.0/lib/compiler/build_runner.zig:1345:26: 0x147babe in makeStep (build_runner.zig)
        } else if (s.make(.{
                         ^
/home/ab/.zvm/0.16.0/lib/std/Io.zig:1245:17: 0x147b6e5 in start (std.zig)
                _ = @as(Cancelable!void, @call(.auto, function, args_casted.*)) catch {};
                ^
/home/ab/.zvm/0.16.0/lib/std/Io/Threaded.zig:552:22: 0x1234285 in start (std.zig)
            task.func(task.contextPointer());
                     ^
/home/ab/.zvm/0.16.0/lib/std/Io/Threaded.zig:1797:29: 0x1232484 in worker (std.zig)
            runnable.startFn(runnable, &thread, t);
                            ^
/home/ab/.zvm/0.16.0/lib/std/Thread.zig:422:13: 0x1232165 in callFn__anon_27721 (std.zig)
            @call(.auto, f, args);
            ^
/home/ab/.zvm/0.16.0/lib/std/Thread.zig:1431:30: 0x1231f20 in entryFn (std.zig)
                return callFn(f, self.fn_args);
                             ^
/home/ab/.zvm/0.16.0/lib/std/os/linux/x86_64.zig:105:5: 0x1232085 in clone (std.zig)
    asm volatile (
    ^
error: the following build command terminated with signal ABRT:
.zig-cache/o/10852ef6a2fe8aed76def13059cf5343/build /home/ab/.zvm/0.16.0/zig /home/ab/.zvm/0.16.0/lib /home/ab/test/skb .zig-cache /home/ab/.cache/zig --seed 0xca2f6f09 -Zc62203c48c784255 --watch -fincremental

with zig build -fincrementalI get:

install
└─ install skribidi
   └─ compile lib skribidi Debug native
      └─ compile lib sheen Debug native failure
error: process terminated with signal FPE
failed command: /home/ab/.zvm/0.16.0/zig build-lib -cflags -ansi -DSB_CONFIG_UNITY -- /home/ab/test/skb/zig-pkg/N-V-__8AAHe8LwF6n4S3jDUlzJLIka4vXuAcDZnCnNpaR1-l/Source/SheenBidi.c -ODebug -I /home/ab/test/skb/zig-pkg/N-V-__8AAHe8LwF6n4S3jDUlzJLIka4vXuAcDZnCnNpaR1-l/Headers -I /home/ab/test/skb/zig-pkg/N-V-__8AAHe8LwF6n4S3jDUlzJLIka4vXuAcDZnCnNpaR1-l/Source -Mroot=/home/ab/test/skb/deps/sheen/sheen.zig -lc --cache-dir .zig-cache --global-cache-dir /home/ab/.cache/zig --name sheen -static --zig-lib-dir /home/ab/.zvm/0.16.0/lib/ -fincremental --listen=-

Build Summary: 9/13 steps succeeded (1 failed)
install transitive failure
└─ install skribidi transitive failure
   └─ compile lib skribidi Debug native transitive failure
      ├─ compile lib sheen Debug native failure
      └─ compile lib sheen Debug native (reused)

error: the following build command failed with exit code 1:
.zig-cache/o/10852ef6a2fe8aed76def13059cf5343/build /home/ab/.zvm/0.16.0/zig /home/ab/.zvm/0.16.0/lib /home/ab/test/skb .zig-cache /home/ab/.cache/zig --seed 0xe46b4177 -Z27709648e594e566 -fincremental

Can’t figure out what the problem is, but it seems to be related to the SheenBidi dependency ?