# Crash when building zls-0.11.0 on FreeBSD-13.2

**URL:** <https://ziggit.dev/t/crash-when-building-zls-0-11-0-on-freebsd-13-2/1535>\
**Category:** Help\
**Created:** [August 20, 2023, 3:30am UTC](https://ziggit.dev/t/crash-when-building-zls-0-11-0-on-freebsd-13-2/1535 "2023-08-20T03:30:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeang3nie](https://ziggit.dev/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jeang3nie](https://ziggit.dev/u/jeang3nie)\
**Post date:** [August 20, 2023, 3:30am UTC](https://ziggit.dev/t/crash-when-building-zls-0-11-0-on-freebsd-13-2/1535/1 "2023-08-20T03:30:21Z")

</div>

```zig
morgoth% zig build
Semantic Analysis [4513] thread 100637 panic: attempt to use null value
Analyzing /home/nathan/.cache/zig/p/122089a8247a693cad53beb161bde6c30f71376cd4298798d45b32740c3581405864/build.zig: build.zig:build
    > %5 = decl_val("std")
      %6 = field_val(%4, "Build")
      %7 = ptr_type(%5, One)
      %8 = break_inline(%9, %6)
    For full context, use the command
      zig ast-check -t /home/nathan/.cache/zig/p/122089a8247a693cad53beb161bde6c30f71376cd4298798d45b32740c3581405864/build.zig

  in /home/nathan/.cache/zig/p/122089a8247a693cad53beb161bde6c30f71376cd4298798d45b32740c3581405864/build.zig: build.zig:build
    > %9 = param("b", {%5..%8})
  in /home/nathan/zig/lib/zig/std/Build.zig: Build.zig:runBuild__anon_47666
    > %9805 = field_val(%9796, "build") node_offset:1637:41 to :1637:56
  in /home/nathan/zig/lib/zig/std/Build.zig: Build.zig:runBuild__anon_47666
    > %9803 = typeof_builtin({%9804..%9806}) node_offset:1637:33 to :1637:57
  in /home/nathan/zig/lib/zig/std/Build.zig: Build.zig:runBuild__anon_47666
    > %9802 = block_comptime({%9803..%9811}) node_offset:1637:23 to :1637:75
  in /home/nathan/zig/lib/zig/std/Build.zig: Build.zig:runBuild__anon_47666
    > %9799 = block({%9800..%9846}) node_offset:1636:62 to :1636:63

Unwind information for `libc.so.7:0x811fcade0` was not available, trace may be incomplete

zsh: abort (core dumped) zig build

```

No idea where to begin here. I’m not even sure if this is a zls problem or a zig problem (my best guess is zig itself).

---

<div class="post-metadata">

**Author:** ![kristoff](https://ziggit.dev/user_avatar/ziggit.dev/kristoff/32/9_2.png) [@kristoff](https://ziggit.dev/u/kristoff)\
**Post date:** [August 20, 2023, 9:24am UTC](https://ziggit.dev/t/crash-when-building-zls-0-11-0-on-freebsd-13-2/1535/2 "2023-08-20T09:24:09Z")

</div>

Yes that’s a crash in the compiler. Can you clean both the local `zig-cache` and the global one? Which version of Zig are you using?

---

<div class="post-metadata">

**Author:** ![jeang3nie](https://ziggit.dev/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jeang3nie](https://ziggit.dev/u/jeang3nie)\
**Post date:** [August 21, 2023, 1:22am UTC](https://ziggit.dev/t/crash-when-building-zls-0-11-0-on-freebsd-13-2/1535/3 "2023-08-21T01:22:59Z")

</div>

It will have to wait until I’m home in a couple of hours. It’s version 0.11.0.

---

<div class="post-metadata">

**Author:** ![jeang3nie](https://ziggit.dev/letter_avatar_proxy/v4/letter/j/b2d939/32.png) [@jeang3nie](https://ziggit.dev/u/jeang3nie)\
**Post date:** [August 21, 2023, 3:00am UTC](https://ziggit.dev/t/crash-when-building-zls-0-11-0-on-freebsd-13-2/1535/4 "2023-08-21T03:00:36Z")

</div>

Cleaning the global cache fixed it. Thanks kristoff.

Now I need to figure out why it immediately exits, but that’s another story…
