kristoff-it / superhtml

HTML Language Server & Templating Language Library
MIT License
172 stars 11 forks source link

v0.4.0 Build Fails due to AFL #21

Closed EliSauder closed 1 month ago

EliSauder commented 1 month ago

The new v0.4.0 build fails

The line that fails is 117 of build.zig (not in the error message, but the many std.debug.print("here#\n", .{}) say it is this line 🤣). https://github.com/kristoff-it/superhtml/blob/4c20f0b2570e99b43bd85783fb306411e775e56e/build.zig#L117

unable to spawn the following command: FileNotFound
llvm-config --version
error: the following build command failed with exit code 1:
/Users/esauder/source/repos/personal/superhtml/.zig-cache/o/d1e56a8d062b567fb6786b74e3e02a26/build /Users/esauder/.zvm/0.13.0/zig /Users/esauder/source/repos/personal/superhtml /Users/esauder/source/repos/personal/superhtml/.zig-cache /Users/esauder/.cache/zig --seed 0xcb9dae9f -Z28ec7a187d155df7

This can also be seen in the ci:

image
EliSauder commented 1 month ago

I had time to get my path variable working (I have llvm installed, but bc apple, I normally reference the path directly). Even after getting llvm-config, I get this error when building.

image
EliSauder commented 1 month ago

Adding: pub const version = build_options.version; to the cli.zig file works, though idk if that is what you want with the project.

I made a PR in case you want it: #22

kristoff-it commented 1 month ago

The overly aggressive dependency on llvm-config has been fixed, let's continue the discussion in #22