nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Build failure: zsync

Open ryand56 opened this issue 1 year ago • 0 comments

Steps To Reproduce

Steps to reproduce the behavior:

  1. build zsync

Build log

Build Log
error: builder for '/nix/store/rsvzh1sz4ln7j4jvj0p2g04kh8xmv384-zsync-0.6.2.drv' failed with exit code 2;
       last 25 log lines:
       > zsync.c:928:42: warning: comparison of integer expressions of different signedness: 'off_t' {aka 'long int'} and 'uLong' {aka 'long unsigned int'} [-Wsign-compare]
       >   928 |     if (zr->strm.total_in == 0 || offset != zr->strm.total_in) {
       >       |                                          ^~
       > zsync.c:930:43: error: passing argument 4 of 'zsync_configure_zstream_for_zdata' from incompatible pointer type [-Wincompatible-pointer-types]
       >   930 |                                           &(zr->outoffset));
       >       |                                           ^~~~~~~~~~~~~~~~
       >       |                                           |
       >       |                                           off_t * {aka long int *}
       > zsync.c:771:65: note: expected 'long long int *' but argument is of type 'off_t *' {aka 'long int *'}
       >   771 |                                        long zoffset, long long *poutoffset) {
       >       |                                                      ~~~~~~~~~~~^~~~~~~~~~
       > zsync.c:942:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       >   942 |         zr->strm.next_in = buf;
       >       |                          ^
       > zsync.c:954:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
       >   954 |             eoz = 1;
       >       |             ~~~~^~~
       > zsync.c:955:9: note: here
       >   955 |         case Z_BUF_ERROR:
       >       |         ^~~~
       > make[2]: *** [Makefile:244: zsync.o] Error 1
       > make[2]: Leaving directory '/build/zsync-0.6.2/libzsync'
       > make[1]: *** [Makefile:434: all-recursive] Error 1
       > make[1]: Leaving directory '/build/zsync-0.6.2'
       > make: *** [Makefile:279: all] Error 2
       For full logs, run 'nix log /nix/store/rsvzh1sz4ln7j4jvj0p2g04kh8xmv384-zsync-0.6.2.drv'.

Additional context

Found while compiling quickemu.

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.66, NixOS, 25.05 (Warbler), 25.05.20241219.d70bd19
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.91.1

Notify maintainers

@viric @FedX-sudo @flexiondotorg (From quickemu maintainers)


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

ryand56 avatar Dec 28 '24 00:12 ryand56