On 06/03/2018 06:04 PM, Laurent Vivier wrote: > On 01/06/2018 00:49, Richard Henderson wrote: >> If the interp_prefix is a complete chroot, it may have a *lot* of files. >> Setting up the cache for this is quite expensive. >> >> For the most part, we can use the *at versions of various syscalls to >> attempt the operation in the prefix. For the few cases that remain, >> attempt the operation in the prefix via concatenation and then retry >> if that fails. >> > > I like the idea, but it breaks real chroot. > > You can test it with: > > wget > https://github.com/vivier/linux-user-test-scrips/raw/master/create_chroot.sh > > then > > sudo sh ./create_chroot.sh /path/to/static/qemu-s390x stretch
*shrug* Works for me, at least as far as I can test. Your script doesn't work outside debian, lacking debootstrap. At the moment, I can't build on debian *at all*. Some bit of the build infrastructure is off and QEMU_FULL_VERSION gets incorrectly defined. I have no idea how or why it is different than Fedora. On Fedora 28, one can no longer build a static qemu. We depend on libraries for which Fedora no longer ships static versions. Do you have some specific binary that fails? r~