Skip to content

How do I find which file is causing this error? #14

Open
@Tralalero-Tralalal

Description

@Tralalero-Tralalal

Error

error: builder for '/nix/store/r7sdgmpdxla5mflazs05ynnyyqh6lgpn-libsemanage-3.7.drv' failed with exit code 2;
       last 25 log lines:
       >       | ^~~~~~~~~~~~~~~~~~~~~~~~
       > semanageswig_wrap.c: In function '_wrap_semanage_node_list_local':
       > semanageswig_wrap.c:17123:21: error: too few arguments to function 'SWIG_Python_AppendOutput'
       > 17123 |         resultobj = SWIG_Python_AppendOutput(resultobj, plist);
       >       |                     ^~~~~~~~~~~~~~~~~~~~~~~~
       > semanageswig_wrap.c:1259:1: note: declared here
       >  1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
       >       | ^~~~~~~~~~~~~~~~~~~~~~~~
       > semanageswig_wrap.c: In function '_wrap_semanage_node_query':
       > semanageswig_wrap.c:17170:17: error: too few arguments to function 'SWIG_Python_AppendOutput'
       > 17170 |     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(*arg3, SWIGTYPE_p_semanage_node, 0));
       >       |                 ^~~~~~~~~~~~~~~~~~~~~~~~
       > semanageswig_wrap.c:1259:1: note: declared here
       >  1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
       >       | ^~~~~~~~~~~~~~~~~~~~~~~~
       > semanageswig_wrap.c: In function '_wrap_semanage_node_list':
       > semanageswig_wrap.c:17350:21: error: too few arguments to function 'SWIG_Python_AppendOutput'
       > 17350 |         resultobj = SWIG_Python_AppendOutput(resultobj, plist);
       >       |                     ^~~~~~~~~~~~~~~~~~~~~~~~
       > semanageswig_wrap.c:1259:1: note: declared here
       >  1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
       >       | ^~~~~~~~~~~~~~~~~~~~~~~~
       > make[1]: *** [Makefile:77: pythonsemanageswig_wrap.lo] Error 1
       > make[1]: Leaving directory '/build/libsemanage-3.7/src'
       > make: *** [Makefile:20: install-pywrap] Error 2

Steps to reproduce:

  1. I cloned the repository

  2. installed fish and ripgrep

  3. set usbguard to false

  4. enabled flake permanently

  5. replaced username 'xnm' with my username (only in the nixos directory, as I just want to get sudo nixos-rebuild switch --flake /etc/nixos#your-hostname --update-input nixpkgs --update-input rust-overlay --commit-lock-file --upgrade to work

  6. I cloned the home folder into my home directory and nixos into nixos directory

  7. ran sudo nixos-rebuild switch --flake /etc/nixos#isitreal-laptop --update-input nixpkgs --update-input rust-overlay --commit-lock-file --upgrade

My system.stateVersion = 24.11

Question:
My current goal is to comment out the faulty file using flake.nix, however, it'll be a long process of trial and error. These are the files I have commented out in flake.nix

nvidia
disable-nvidia
fingerprint-scanner
clamav
yubi
auto-upgrade
location
internalization
printing
gnome
mac-randomize
open-ssh
mosh
vpn
virtualization
programming-languages
lsp
rust
wasm
info-fetchers

These are what I've tried so far, however, I will try some more in a couple hours and comment my findings here. Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions