and now the error has gone away for me as well.  something cached in ~/.emacs.d must have been the source of the problem.  sorry for the fire drill.
/mark

On Sun, May 1, 2022 at 4:52 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Mark Kennedy <mark.t.kennedy@gmail.com> writes:

> this is one of those "too complicated for a -Q recipe" stories.
>
> running "package-list-packages" with a native-comp emacs binary
> fails with a "too many open files" message.  if lsof is used to examine
> the emacs process, there are hundreds of read-only file descriptors bound to
> "tramp-archive.elc".  if the same .emacs.d tree is run against an emacs
> binary built *without* native compilation, it works correctly.

[...]

> System Description: Fedora Linux 35 (Workstation Edition)

I tried that just now (nativecomp on Debian/bookworm), and I didn't get
any errors.

Are you saying you don't get the error if you say `M-x
package-list-packages' in an "emacs -Q", but you get it with a non-Q
Emacs?

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no