> 1) qemu usermode emulation is broken when emulating a 32bit arch from a 64bit > arch, bug 23960 This is bug 23960 [2] on the sourceware bugzilla. As you can see it's been around for a bit, and breaks emulating a 32bit architecture on a 64bit architecture. Fear not, there is a fix, a patchset by Adhemerval Zanella [3]. It's been part of Gentoo's glibc for several years now, solves the problem fully, and has not led to any problems. (We are in Gentoo Release Engineering heavy qemu usermode emulation users, building for riscv, mips, loongarch64, m68k, alpha...) Pre-2.37 the patchset stopped applying. To my best knowledge the azanella/bz23960-dirent branch [4] provides an updated version. I tried to verify that with Adhemerval, however unfortunately he never replied to my pings on IRC, so that confirmation is still missing. * Is that the current fix? * Can we please merge it? [2] https://sourceware.org/bugzilla/show_bug.cgi?id=23960 [3] https://gitweb.gentoo.org/fork/glibc.git/log/?h=gentoo/glibc-2.36-1 [4] https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/azanella/bz23960-dirent Am Donnerstag, 26. Januar 2023, 00:57:31 CET schrieb Andreas K. Huettel: > Dear all, > > now that the 2.37 release and with that another half year of delay is near, > I'd like to remind everyone that we still need to find some decent solution > for the remaining problems associated with time64 and LFS as discussed > earlier [1]. > > As far as I can see at the moment there are two things that need a solution. > > 1) qemu usermode emulation is broken when emulating a 32bit arch from a 64bit > arch, bug 23960 > > 2) the transition to default time64 breaks legacy 32bit binaries in > unpredictable ways > > I'm going to reply with two separate e-mails for these issues, and would be > very happy for your opinions and contributions on the respective threads. > > Cheers, > Andreas > (Gentoo toolchain team) > > [1] https://sourceware.org/pipermail/libc-alpha/2022-November/143386.html > > -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice)