NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.86k stars 13.23k forks source link

sysdig: failure to build #42660

Closed deepfire closed 5 years ago

deepfire commented 6 years ago

Issue description

builder for '/nix/store/wdy69i1ag6r62vmyjb1xc57x2mpvbvqc-sysdig-0.21.0.drv' failed with exit code 2; last 10 log lines:
  In file included from /nix/store/abvgccgkmw76bdd8gx0nll94lfrzxic8-jsoncpp-1.8.4/include/json/json.h:11:0,
                   from /build/source/userspace/libsinsp/event.h:20,
                   from /build/source/userspace/libsinsp/sinsp.h:72,
                   from /build/source/userspace/libsinsp/viewinfo.cpp:19:
  /nix/store/abvgccgkmw76bdd8gx0nll94lfrzxic8-jsoncpp-1.8.4/include/json/reader.h:35:83: note: declared here
   class JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead") JSON_API Reader {
                                                                                     ^~~~~~
  [ 93%] Linking CXX static library libsinsp.a
  [ 93%] Built target sinsp
  make: *** [Makefile:152: all] Error 2
cannot build derivation '/nix/store/jk4yg7zlwmcnb81gy6nl36q99h5nj612-kernel-modules.drv': 1 dependencies couldn't be built

Steps to reproduce

nixos-rebuild switch-ing my machine from Nixpkgs commit 94bdeac70b34428108166e061db58712b179b404 to 14ca98e51e41dfa919f27a550b44d323f2d9900b (tip of master as of Jun 27).

Technical details

matthewbauer commented 6 years ago

That's not the critical part of the log. If you want the full log you can do:

nix log /nix/store/wdy69i1ag6r62vmyjb1xc57x2mpvbvqc-sysdig-0.21.0.drv
orivej commented 6 years ago

The current version of sysdig supports Linux 4.16 and older; it does not support linuxPackages_latest (4.17): https://hydra.nixos.org/jobset/nixpkgs/trunk/jobs-tab?filter=sysdig

deepfire commented 6 years ago

@matthewbauer, indeed, sorry, I was a bit too hasty.

/build/source/driver/ppm_events.c:258:72: warning: passing argument 3 of 'sock->ops->getname' makes integer from pointer without a cast [-Wint-conversion]
       err = sock->ops->getname(sock, (struct sockaddr *)&peer_address, &peer_address_len, 1);
                                                                        ^
/build/source/driver/ppm_events.c:258:72: note: expected 'int' but argument is of type 'int *'
/build/source/driver/ppm_events.c:258:13: error: too many arguments to function 'sock->ops->getname'
       err = sock->ops->getname(sock, (struct sockaddr *)&peer_address, &peer_address_len, 1);
             ^~~~

...

/build/source/driver/ppm_events.c:1123:11: error: too many arguments to function 'sock->ops->getname'
     err = sock->ops->getname(sock, (struct sockaddr *)&peer_address, &peer_address_len, 1);
           ^~~~
make[7]: *** [/nix/store/ky2fknnp4pb711cmscaxmx6gd32mlnb0-linux-4.17.3-dev/lib/modules/4.17.3/source/scripts/Makefile.build:312: /build/source/driver/ppm_events.o] Error 1
make[6]: *** [/nix/store/ky2fknnp4pb711cmscaxmx6gd32mlnb0-linux-4.17.3-dev/lib/modules/4.17.3/source/Makefile:1571: _module_/build/source/driver] Error 2
make[5]: *** [Makefile:146: sub-make] Error 2
make[4]: *** [Makefile:24: __sub-make] Error 2
make[3]: *** [Makefile:9: all] Error 2
make[2]: *** [driver/CMakeFiles/driver.dir/build.make:58: driver/CMakeFiles/driver] Error 2
make[1]: *** [CMakeFiles/Makefile2:89: driver/CMakeFiles/driver.dir/all] Error 2
c0bw3b commented 5 years ago

sysdig was updated to 0.23.1 since