Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot execute binary file: Exec format error #60

Closed
ulist opened this issue Apr 6, 2019 · 5 comments
Closed

cannot execute binary file: Exec format error #60

ulist opened this issue Apr 6, 2019 · 5 comments

Comments

@ulist
Copy link

ulist commented Apr 6, 2019

When I executed any of qemu

@junaruga
Copy link
Member

@ulist which commands did you run it?
What is your host architecture? (result of uname -m)

@ulist
Copy link
Author

ulist commented May 28, 2019

$ uname  -am
Linux localhost 3.10.86-g0c14827 #2 SMP PREEMPT Thu Jul 12 13:13:34 CST 2018 aarch64 Android

@junaruga
Copy link
Member

@ulist I understand why you got error.

Sorry, currently qemu-user-static supports only host architecture x86_64.
Does not support aarch64 (your environment).
#36 (comment)
#8

I would close this ticket.

@ulist
Copy link
Author

ulist commented May 28, 2019

Why does this work then?

usage: qemu-i386 [options] program [arguments...]
Linux CPU emulator (compiled for i386 emulation)

Options and associated environment variables:

Argument      Env-variable      Description
-h                              print this help
-g port       QEMU_GDB          wait gdb connection to 'port'
-L path       QEMU_LD_PREFIX    set the elf interpreter prefix to 'path'
-s size       QEMU_STACK_SIZE   set the stack size to 'size' bytes
-cpu model    QEMU_CPU          select CPU (-cpu help for list)
-E var=value  QEMU_SET_ENV      sets targets environment variable (see below)
-U var        QEMU_UNSET_ENV    unsets targets environment variable (see below)
-0 argv0      QEMU_ARGV0        forces target process argv[0] to be 'argv0'
-r uname      QEMU_UNAME        set qemu uname release string to 'uname'
-B address    QEMU_GUEST_BASE   set guest_base address to 'address'
-R size       QEMU_RESERVED_VA  reserve 'size' bytes for guest virtual address space
-d item[,...] QEMU_LOG          enable logging of specified items (use '-d help' for a list of items)
-D logfile    QEMU_LOG_FILENAME write logs to 'logfile' (default stderr)
-p pagesize   QEMU_PAGESIZE     set the host page size to 'pagesize'
-singlestep   QEMU_SINGLESTEP   run in singlestep mode
-strace       QEMU_STRACE       log system calls
-seed         QEMU_RAND_SEED    Seed for pseudo-random number generator
-version      QEMU_VERSION      display version information and exit

Defaults:
QEMU_LD_PREFIX  = /etc/qemu-binfmt/i386
QEMU_STACK_SIZE = 8388608 byte

You can use -E and -U options or the QEMU_SET_ENV and
QEMU_UNSET_ENV environment variables to set and unset
environment variables for the target process.
It is possible to provide several variables by separating them
by commas in getsubopt(3) style. Additionally it is possible to
provide the -E and -U options multiple times.
The following lines are equivalent:
    -E var1=val2 -E var2=val2 -U LD_PRELOAD -U LD_DEBUG
    -E var1=val2,var2=val2 -U LD_PRELOAD,LD_DEBUG
    QEMU_SET_ENV=var1=val2,var2=val2 QEMU_UNSET_ENV=LD_PRELOAD,LD_DEBUG
Note that if you provide several changes to a single variable
the last change will stay in effect.
$

@junaruga
Copy link
Member

@ulist could you explain more about what you want to do (context)?
I do not understand what you want to do.
You only shows the result of a command above. But it's not enough to understand the situation.
Seeing other issues pages here, you see people reporting a part of the command and result together.

This repository is not for qemu itself or not for qemu-user-static itself.

this repository qemu-user-static is an implementation to run different architecture's (docker) containers on a host architecture (right now only x86_64) with using the qemu-user-static.

If you have an issue about qemu or qemu-user-static, you can check below sites. (It's not our wesite but qemu project's website).
https://www.qemu.org/contribute/report-a-bug/
https://www.qemu.org/
https://github.com/qemu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants