Skip to contentSkip to conversation

Help needed! dyngen: Unsupported ELF class

Qemu-devel test test 3 participants 3 messages Nov 15, 2007

lore
Share & tools
lore

test test

author
#0 lore raw

Hi,

I am new to QEMU and tried to build qemu 0.9.0.

I did ./configure and then make, then I got the following error message:

gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I.. -I/home/xxx/work/qemu/qemu-0.9.0/target-i386 -I/home/xxx/work/qemu/qemu-0.9.0 -I/home/xxx/work/qemu/qemu-0.9.0/linux-user -I/home/xxx/work/qemu/qemu-0.9.0/linux-user/i386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/xxx/work/qemu/qemu-0.9.0/fpu -DHAS_AUDIO -I/home/xxx/work/qemu/qemu-0.9.0/slirp -c -o op.o /home/xxx/work/qemu/qemu-0.9.0/target-i386/op.c ../dyngen -o op.h op.o

--------------------------------------------------------------------------------
dyngen: Unsupported ELF class
make[1]: *** [op.h] Error 1
--------------------------------------------------------------------------------

What's the problem? Please help!

Thanks in advance!
Xin

For better analysis of the problem, I put the result of configure as below:

WARNING: "gcc" looks like gcc 4.x
Looking for gcc 3.x
Found "gcc-3.3"

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /home/xxx/work/qemu/qemu-0.9.0
C compiler        gcc-3.3
Host C compiler   gcc
make              make
install           install
host CPU          x86_64
host big endian   no
target list       i386-linux-user arm-linux-user armeb-linux-user
sparc-linux-user ppc-linux-user mips-linux-user mipsel-linux-user
m68k-linux-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
mips-softmmu mipsel-softmmu arm-softmmu
gprof enabled     no
profiler          no
static build      no
SDL support       yes
SDL static link   no
mingw32 support   no
Adlib support     no
CoreAudio support no
ALSA support      no
DSound support    no
FMOD support      no
kqemu support     yes
Documentation     no
#1 lore raw
Quoted 14 lines · test test

----------------------------------------------------------------------
---------- dyngen: Unsupported ELF class
make[1]: *** [op.h] Error 1
----------------------------------------------------------------------
----------

What's the problem? Please help!

For better analysis of the problem, I put the result of configure as below:

WARNING: "gcc" looks like gcc 4.x
Looking for gcc 3.x
Found "gcc-3.3"

[...]

Quoted 1 line

host CPU x86_64

Is it possible that your gcc-3.3 is an i386 compiler? If so, edit config-host.mak and replace "ARCH=x86_64" with ARCH="i386", then rebuild.

CU
Uli

Signature · 1 line
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
#2 lore raw

I tried it, but still got the same error. Any further suggestion?

Thanks,
-x

Quoted 30 lines · Ulrich Hecht
Quoted 14 lines · test test

----------------------------------------------------------------------
---------- dyngen: Unsupported ELF class
make[1]: *** [op.h] Error 1
----------------------------------------------------------------------
----------

What's the problem? Please help!

For better analysis of the problem, I put the result of configure as below:

WARNING: "gcc" looks like gcc 4.x
Looking for gcc 3.x
Found "gcc-3.3"

[...]

Quoted 1 line

host CPU x86_64

Is it possible that your gcc-3.3 is an i386 compiler? If so, edit config-host.mak and replace "ARCH=x86_64" with ARCH="i386", then rebuild.

CU
Uli

--
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)