20.10.2015 15:45, Philipp Marek wrote:
> Package: qemu-user-static
> Version: 1:2.4+dfsg-4
> Severity: normal
> 
> I've got a chroot with a foreign architecture; I copied the various
> /usr/bin/qemu-*-static binaries over, but not all programs work.
> 
> Most of the build stack works fine; but then there is this:
> 
>     # chroot debian-jessie-ppc64el/ bash -c 'cd /tmp && gcc a.c'
>     gcc: error trying to exec '/usr/lib/gcc/powerpc64le-linux-gnu/4.9/cc1':
>         execv: Exec format error
> 
> Looks like the registration of file formats is somehow broken

We had this already, there was similar bug.
Does the prob persist when you just re-install qemu-user-static
package using dpkg (without removing it first)?  The question
here is that update-binfmt does not refresh changed definitions
at the first run.

> 
> # file debian-jessie-ppc64el/usr/lib/gcc/powerpc64le-linux-gnu/4.9/cc1
>     debian-jessie-ppc64el/usr/lib/gcc/powerpc64le-linux-gnu/4.9/cc1: ELF 
> 64-bit LSB executable, 64-bit PowerPC or cisco 7500, version 1 (GNU/Linux), 
> dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 2.6.32, 
> BuildID[sha1]=3bea2777c40886422ecd521a04141dbeeb194afb, stripped
> # objdump -f debian-jessie-ppc64el/usr/lib/gcc/powerpc64le-linux-gnu/4.9/cc1
>     
>     debian-jessie-ppc64el/usr/lib/gcc/powerpc64le-linux-gnu/4.9/cc1:     file 
> format elf64-little
>     architecture: UNKNOWN!, flags 0x00000112:
>     EXEC_P, HAS_SYMS, D_PAGED
>     start address 0x0000000010117ec8

Please dump first 64 bytes of the executable using hexdump -C --
hexdump -C -l 64 debian-jessie-ppc64el/usr/lib/gcc/powerpc64le-linux-gnu/4.9/cc1

(64bytes is a bit more than needed, but I don't have elf header layout
handy and don't remember the size needed).  Interesting is that it says
architecture is unknown.

Thanks,

/mjt

Reply via email to