14.11.2014 12:35, Michal Suchanek wrote: [] > # qemu-x86_64 /usr/bin/cdebootstrap-static > /usr/bin/cdebootstrap-static: missing suite argument > Try `/usr/bin/cdebootstrap-static --help' for more information. > # cdebootstrap-static > -bash: /usr/bin/cdebootstrap-static: cannot execute binary file: Exec > format error
Aha. So it is just the binfmt registration problem -- the magic strings. I'll take a look at this. [] >> Please note that x86 qemu user target is one of less tested targets, >> because it is rather uncommon to run x86 hw on non-x86 platform, usually >> it is the opposite. > > If somebody was using the emulation bug like this would not exist. The > emulation also does not work that well - the unrar binary is crashing > in the emulation and presumably just runs normally on x86. There are *many* issues with user-mode emulation in qemu today. For one, threaded applications does not work (they work sometimes by pure luck), because qemu does not even try to implement multi-threaded support, but in modern world, lots of non-multithreaded apps uses clone() or some thread primitives internally behind the scenes, so many even non-MT apps doesn't work. Implementing mt mode in qemu means major redesign of whole thing. This is probably a reason why unrar is crashing. Also, qemu does not implement many system calls, especially more modern ones. So it is not that simple -- "if someone was using, it would work" -- no, not at all, things are much more complex, someone should actually do the work. > CPU is Allwinner A13 sun5i ARM Cortex A8 ARMv7, armhf architecture: > > # dpkg-architecture > DEB_BUILD_ARCH=armhf Ok, thank you. I'll see if I can fix the magic strings -- after that, static executables should work. Thanks, /mjt -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org