Tested the proposed patch from Sergei Trofimovich, and it solves the problem, while doesn't break the other archs I use (mips64,arm,aarch64 also tested).
Thank you! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1872847 Title: qemu-alpha linux-user breaks python3.6 Status in QEMU: New Status in Gentoo Linux: New Bug description: Running on Gentoo Linux in a chroot environment: # python3 -c 'import selectors; selectors.DefaultSelector()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.7/selectors.py", line 349, in __init__ self._selector = self._selector_cls() OSError: [Errno 22] Invalid argument However, on real hardware, with the same binaries there is no exception. This impacts whole python3 based Gentoo ebuild system (package management), and renders linux user mode alpha emulation in chroot environment building useless, more or less. The used systems: # qemu-alpha --version qemu-alpha version 4.2.0 Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers # uname -a Linux blackbird 5.4.28-gentoo-blackbird-06 #2 SMP Sat Apr 4 13:13:10 CEST 2020 x86_64 AMD Ryzen 5 3600 6-Core Processor AuthenticAMD GNU/Linux (chroot)# python3 --version Python 3.7.7 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1872847/+subscriptions