$ git clean -ffdx
$ snapcraft -d cleanbuild --debug
Starting snapcraft 2.34 from /usr/lib/python3/dist-packages/snapcraft/cli.
Setting up part 'firmware' with plugin 'nil' and properties {'stage': [], 'prime': ['-usr', '-lib'], 'organize': {'lib/firmware': 'firmware'}, 'stage-packages': ['linux-firmware'], 'build-packages': ['cpio', 'libssl-dev'], 'plugin': 'nil'}.
Setting up part 'kernel' with plugin 'kernel' and properties {'kconfigflavour': 'generic', 'kconfigs': ['CONFIG_DEBUG_INFO=n'], 'prime': [], 'stage': [], 'source-type': 'git', 'source': '.', 'plugin': 'kernel'}.
[stuck here, 100% cpu, no output at all]
$ ps -auxww | grep -e lxc -e snapcr
root 17092 0.0 0.0 160904 1396 ? Ssl 14:00 0:00 /usr/bin/lxcfs /var/lib/lxcfs/
root 18245 0.0 0.0 95016 5472 ? Ss 14:02 0:00 [lxc monitor] /var/lib/lxd/containers first
flag 19422 97.2 0.5 346624 89224 pts/19 R+ 15:07 2:21 /usr/bin/python3 /usr/bin/snapcraft -d cleanbuild --debug
flag 19634 0.0 0.0 130284 980 pts/20 R+ 15:09 0:00 grep --color=auto -e lxc -e snapcr