Skip to content

x86_64-linux builds hang at random, defunct processes in ps #28

@booxter

Description

@booxter

For some packages, I get builds hang without making progress. For example, if I build python312Packages.llama-cpp-python, the last messages for the build I see are:

llama-cpp-python-x86_64-linux> -- Check for working C compiler: /nix/store/gj9lra51hwhxnhz05jqk5lh03wipamv0-gcc-wrapper-14-20241116/bin/gcc - skipped
llama-cpp-python-x86_64-linux> -- Check for working C compiler: /nix/store/gj9lra51hwhxnhz05jqk5lh03wipamv0-gcc-wrapper-14-20241116/bin/gcc - skipped
llama-cpp-python-x86_64-linux> -- Detecting C compile features
llama-cpp-python-x86_64-linux> -- Detecting C compile features
llama-cpp-python-x86_64-linux> -- Detecting C compile features - done
llama-cpp-python-x86_64-linux> -- Detecting C compile features - done
llama-cpp-python-x86_64-linux> -- Detecting CXX compiler ABI info

And if I inspect the list of processes, I see:

1039 ?        Ss     0:00 /run/binfmt/rosetta /nix/store/ki4if6b0w5bqv8dc5lrjp8xm7wjy9dlf-bash-5.2p37/bin/bash -e /nix/store/vj1c3wf9c11a0qs6p3ymfvrnsdgsdcbq-source-stdenv.sh
   1045 ?        Ss     0:00 /run/binfmt/rosetta /nix/store/ki4if6b0w5bqv8dc5lrjp8xm7wjy9dlf-bash-5.2p37/bin/bash -e /nix/store/vj1c3wf9c11a0qs6p3ymfvrnsdgsdcbq-source-stdenv.sh
   1159 ?        S      0:00 /run/binfmt/rosetta /nix/store/wz0j2zi02rvnjiz37nn28h3gfdq61svz-python3-3.12.9/bin/python3.12 /nix/store/bzv2mj9f8hy89azfg44pggnn8mina9x5-python3.12
   1161 ?        S      0:00 /run/binfmt/rosetta /nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/bin/python3.13 /nix/store/dk10yg5zz30yjn5wjz9ciy4bggnqm7av-python3.13
   1164 ?        S      0:00 /run/binfmt/rosetta /nix/store/1031nlccnpdp7ljbjm4ja0q7gqadsl3m-python3-3.13.2/bin/python3.13 /nix/store/gxwbfwdiygi92k2l8lj757fr4k66kh81-python3.13
   1165 ?        S      0:00 /run/binfmt/rosetta /nix/store/wz0j2zi02rvnjiz37nn28h3gfdq61svz-python3-3.12.9/bin/python3.12 /nix/store/h9y0b0g4h0gqd699pdyxss7xq8gg0kvh-python3.12
   1172 ?        S      0:00 /run/binfmt/rosetta /nix/store/j3f4j0i2h5d7h3sbfnlgva8nk0cydvwq-cmake-3.31.5/bin/cmake -S. -B/build/tmp7hogwqg0/build -DCMAKE_BUILD_TYPE:STRING=Rele
   1173 ?        S      0:00 /run/binfmt/rosetta /nix/store/j3f4j0i2h5d7h3sbfnlgva8nk0cydvwq-cmake-3.31.5/bin/cmake -S. -B/build/tmp34uqs_rf/build -DCMAKE_BUILD_TYPE:STRING=Rele
   1321 ?        Z      0:00 [ld] <defunct>
   1340 ?        Z      0:00 [ninja] <defunct>

This doesn't happen to all builds, only to some. (AFAIU these are always builds involving actual compilation. Regular python packages build fine for what I see.)

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