#Nix: Building nightly (docgen issue?)

1 messages ยท Page 1 of 1 (latest)

violet estuary
#

๐Ÿ‘‹ I'm trying to adapt the nixpkgs 0.11 derivation for 0.12 (nightly/master), using @dreamy mauve's LLVM 17 draft. I think almost everything works, except for the postBuild, which is:

  postBuild = ''
    stage3/bin/zig run ../tools/docgen.zig -- ../doc/langref.html.in langref.html --zig $PWD/stage3/bin/zig
  '';

Last bit of the log is:

Generating docgen examples [1874/5445] error: unable to generate DLL import .lib file for ntdll: FileNotFound

The following command exited with code 1:
/build/zig-0.12.0-dev.1643+91329ce94/build/stage3/bin/zig test docgen_tmp/test_noreturn_from_exit.zig -target x86_64-windows --test-no-exec 
../doc/langref.html.in:5211:25: error: test failed
      {#target_windows#}
                        
Generating docgen examples [1880/5445] error: ParseError
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:1864:17: 0x288f59 in run (docgen)
                return error.ChildExitError;
                ^
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:289:5: 0x2a3d2e in parseError__anon_6475 (docgen)
    return error.ParseError;
    ^
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:1585:29: 0x29bf38 in genHtml__anon_4641 (docgen)
                            return parseError(tokenizer, code.source_token, "test failed", .{});
                            ^
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:106:5: 0x2a8190 in main (docgen)
    try genHtml(allocator, &tokenizer, &toc, buffered_writer.writer(), zig_exe, opt_zig_lib_dir, do_code_tests);
    ^
/nix/store/wr08yanv2bjrphhi5aai12hf2qz5kvic-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context

@dreamy mauve were you able to get Zig building yet with your branch? Not too sure if this is drift anywhere or if something else is missing. Any clues are appreciated ๐Ÿ™‚

#

The odd thing here is the Windows stuff, given I'm building for Linux, but I'm just going off of the assumption that this is a cross-compilation thing. I haven't changed the derivation with the exception of swapping out the GH fetcher for fetchurl.

dreamy mauve
violet estuary
#

Nice ty ๐Ÿ™‚ Also looks like the build worked too just with --skip-code-tests added to docgen, and switching up to fetchzip to get the check phase to pass

dreamy mauve
violet estuary
#

OK that's good to know. That's a thread I can probably pull more on later

violet estuary
#

ty for the LLVM work too... looks like this is getting Zig built for me and working for what I need it for!