zig-bootstrap icon indicating copy to clipboard operation
zig-bootstrap copied to clipboard

Bootstrapping fails for v0.9.1, no member named 'eql' in struct 'std.zig.Loc'

Open fschutt opened this issue 3 years ago • 0 comments

I've tried bootstrapping zig (both the latest and the master version) and compiling it to WASM in order to run it in a browser context

Repo: https://github.com/fschutt/zig2wapm/blob/b21366afede6ec3b334023705fe79e9ee299c433/.github/workflows/push.yaml

      - name: Bootstrap zig compiler
        run: |
          cd ./zig-bootstrap &&
          git checkout $(git tag | tail -n1) && 
          ./build -j8 native-linux-gnu baseline
      - name: Compile zig to wasm
        run: |
          cd ./zig &&
          git checkout $(git tag | tail -n1) &&
          ../zig-bootstrap/out/host/bin/zig build -Dtarget=wasm32-wasi
      - uses: actions/upload-artifact@v3

Failure: https://github.com/fschutt/zig2wapm/runs/7410617342?check_suite_focus=true

./src/Compilation.zig:553:47: error: no member named 'eql' in struct 'std.zig.Loc'
                    .source_line = if (err_loc.eql(loc)) null else try allocator.dupe(u8, loc.source_line),
                                              ^
./src/Compilation.zig:641:51: error: no member named 'eql' in struct 'std.zig.Loc'
                            .source_line = if (loc.eql(err_loc)) null else try arena.dupe(u8, loc.source_line),

I get the same error on my local machine, too. I'm not sure what to do about this.

fschutt avatar Jul 20 '22 09:07 fschutt