Excerpts from Michael Tokarev's message of Tue Nov 11 09:15:15 +0100 2014:
> 11.11.2014 11:02, Michal Suchanek wrote:
> []
> > 
> > I found that I have qemu-user-static instead of qemu-user-binfmt on
> > system where this works. I can run armhf binaries on a PC but the
> 
> Yes, I've seen that.
> 
> > reverse does not work. There is a handler for PC binaries registered but
> > bash still reports it cannot execute binary file.
> > 
> > Is the magic for PC binaries correct? How do I check?
> 
> I replied to that at the time, -- the same magic strings are used in
> both packages (qemu-user-static and qemu-user-binfmt), these are
> generated (using simple substitutions) from a common file.

Yes, neither works, unsurprisingly.

> 
> >> Hello  Michal.  A friendly ping?  Do you have any additional information
> >> for this bugreport?  I can't do anything with it without your input...
> > 
> > I did send another email in the bug report, right?
> 
> Yes, and I replied to that, see
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763043#22
> 
> 
> So, to rehash, do I understand it right that you're having
> probs with running x86 binaries on arm, when using -user-binfmt
> but not when using -user-static ?

I am having problem running x86 binaries on arm with either package.

# strace ./app 
execve("./app", ["./app"], [/* 17 vars */]) = -1 ENOEXEC (Exec format
error)
write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec
format error
) = 32
exit_group(1)                           = ?
+++ exited with 1 +++

# file app
app: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
statically linked, stripped

# uname -a
Linux sun5i 3.4.103+ #36 PREEMPT Thu Aug 28 17:40:10 CEST 2014 armv7l
GNU/Linux

There is probably problem with static binaries:

# apt-get install unrar:amd64
...
ldconfig: /lib/x86_64-linux-gnu/libz.so.1 is for unknown machine 62.
...
ldconfig: /lib/ld-linux.so.2 is for unknown machine 3.
...

# unrar /?
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault

# apt-get install cdebootstrap-static:amd64

# cdebootstrap-static /?
-bash: /usr/bin/cdebootstrap-static: cannot execute binary file

Thanks

Michal


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to