Building Qemu 0.10.5 fails with an error about missing tcg-target.h
Hello all!
I've tried to build Qemu 0.10.5 and it fails with:
...
error: tcg-target.h: No such file or directory
warning: "TCG_TARGET_REG_BITS" is not defined
...
I've attached a file that contains both build commands and output.
I'm on Debian Lenny i386 with a 2.6.30 kernel, and GCC 4.2. I've tried also Qemu 0.10.0 and the same thing happens. (I've also pasted below only the build script.)
Am I missing something?
Thank you,
Ciprian Craciun.
----
#!/bin/bash
# qemu--0.10.5--0
set -e -u -o pipefail || exit 1
test "${#}" -eq 0 || exit 1
test ! -e ./_deploy_ || find ./_deploy_ -delete
mkdir -p ./_deploy_
test ! -e ./_build_ || find ./_build_ -delete
mkdir -p ./_build_
export PATH='/bin:/usr/bin:/usr/local/bin'
export LD_LIBRARY_PATH='/lib:/usr/lib:/usr/local/lib'
export PKG_CONFIG_PATH='/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig' export DESTDIR="$( realpath ./_deploy_ )"
export CPPFLAGS='-I/usr/include -I/usr/local/include' export CFLAGS='-O0'
export LDFLAGS='-L/lib -L/usr/lib -L/usr/local/lib'
cd ./_build_
../configure \ --prefix=/packages/qemu--0.10.5--0 \ --kerneldir="/usr/src/linux-headers-$( uname -r )/include" \ --cc=gcc-4.2 \ --host-cc=gcc-4.2 \ --target-list=i386-softmmu \ --static \ --audio-drv-list=alsa \ --audio-card-list=ac97 \ --disable-sparse \ --disable-werror \ --disable-brlapi \ --disable-bluez \ --disable-kvm \ --disable-system \ --enable-linux-user \ --disable-darwin-user \ --disable-bsd-user
make -j 4
make -j 4 install
exit 0
#!/bin/bash
# qemu--0.10.5--0
set -e -u -o pipefail || exit 1
test "${#}" -eq 0 || exit 1
test ! -e ./_deploy_ || find ./_deploy_ -delete
mkdir -p ./_deploy_
test ! -e ./_build_ || find ./_build_ -delete
mkdir -p ./_build_
export PATH='/bin:/usr/bin:/usr/local/bin'
export LD_LIBRARY_PATH='/lib:/usr/lib:/usr/local/lib'
export PKG_CONFIG_PATH='/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig' export DESTDIR="$( realpath ./_deploy_ )"
realpath ./_deploy_
export CPPFLAGS='-I/usr/include -I/usr/local/include' export CFLAGS='-O0'
export LDFLAGS='-L/lib -L/usr/lib -L/usr/local/lib'
cd ./_build_
../configure \ --prefix=/packages/qemu--0.10.5--0 \ --kerneldir="/usr/src/linux-headers-$( uname -r )/include" \ --cc=gcc-4.2 \ --host-cc=gcc-4.2 \ --target-list=i386-softmmu \ --static \ --audio-drv-list=alsa \ --audio-card-list=ac97 \ --disable-sparse \ --disable-werror \ --disable-brlapi \ --disable-bluez \ --disable-kvm \ --disable-system \ --enable-linux-user \ --disable-darwin-user \ --disable-bsd-user uname -r Install prefix /packages/qemu--0.10.5--0 BIOS directory /packages/qemu--0.10.5--0/share/qemu binary directory /packages/qemu--0.10.5--0/bin Manual directory /packages/qemu--0.10.5--0/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/ciprian/desktop/projects/vpm-archives C compiler gcc-4.2 Host C compiler gcc-4.2 ARCH_CFLAGS -m32 make make install install host CPU i386 host big endian no target list i386-softmmu gprof enabled no sparse enabled no profiler no static build yes -Werror enabled no SDL support yes SDL static link yes curses support yes mingw32 support no Audio drivers alsa
Extra audio cards ac97
Mixer emulation no
VNC TLS support yes
TLS CFLAGS
TLS LIBS -lgnutls
kqemu support yes brlapi support no Documentation no NPTL support yes vde support yes AIO support yes Install blobs yes KVM support no fdt support no
make -j 4
CC qemu-nbd.o CC qemu-tool.o CC osdep.o CC cutils.o CC qemu-malloc.o CC block-cow.o CC block-qcow.o CC aes.o CC block-vmdk.o CC block-cloop.o CC block-dmg.o CC block-bochs.o CC block-vpc.o CC block-vvfat.o CC block-qcow2.o CC block-parallels.o CC nbd.o CC block-nbd.o CC block.o CC aio.o CC posix-aio-compat.o CC block-raw-posix.o CC qemu-img.o CC readline.o CC console.o CC irq.o CC i2c.o CC smbus.o CC smbus_eeprom.o CC max7310.o CC max111x.o CC wm8750.o CC ssd0303.o CC ssd0323.o CC ads7846.o CC stellaris_input.o CC twl92230.o CC lm832x.o CC tmp105.o CC scsi-disk.o CC cdrom.o CC scsi-generic.o CC usb.o CC usb-hub.o CC usb-linux.o CC usb-hid.o CC usb-msd.o CC usb-wacom.o CC usb-serial.o CC usb-net.o CC sd.o CC ssi-sd.o CC bt.o CC bt-host.o CC bt-vhci.o CC bt-l2cap.o CC bt-sdp.o CC bt-hci.o CC bt-hid.o CC usb-bt.o CC buffered_file.o CC migration.o CC migration-tcp.o CC net.o CC qemu-sockets.o /home/ciprian/desktop/projects/vpm-archives/net.c: In function ‘net_vde_init’: /home/ciprian/desktop/projects/vpm-archives/net.c:1078: warning: passing argument 2 of ‘vde_open_real’ discards qualifiers from pointer target type CC net-checksum.o CC qemu-char.o CC savevm.o CC cache-utils.o CC migration-exec.o CC audio/audio.o CC audio/noaudio.o CC audio/wavaudio.o CC audio/mixeng.o CC audio/sdlaudio.o CC audio/alsaaudio.o CC audio/wavcapture.o CC sdl.o CC x_keymap.o CC curses.o CC vnc.o CC d3des.o CC slirp/cksum.o CC slirp/if.o CC slirp/ip_icmp.o CC slirp/ip_input.o CC slirp/ip_output.o CC slirp/slirp.o CC slirp/mbuf.o CC slirp/misc.o CC slirp/sbuf.o CC slirp/socket.o CC slirp/tcp_input.o CC slirp/tcp_output.o CC slirp/tcp_subr.o CC slirp/tcp_timer.o CC slirp/udp.o CC slirp/bootp.o CC slirp/debug.o CC slirp/tftp.o LINK qemu-nbd LINK qemu-img AR libqemu_common.a
make[1]: Entering directory `/stores/eros/ciprian/projects/vpm-archives/_build_/i386-softmmu'
CC i386-softmmu/osdep.o
CC i386-softmmu/vl.o
nbd.o: In function `tcp_socket_outgoing':/home/ciprian/desktop/projects/vpm-archives/nbd.c:122: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking nbd.o: In function `tcp_socket_outgoing':/home/ciprian/desktop/projects/vpm-archives/nbd.c:122: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
CC i386-softmmu/monitor.o CC i386-softmmu/pci.o CC i386-softmmu/loader.o CC i386-softmmu/isa_mmio.o CC i386-softmmu/machine.o CC i386-softmmu/dma-helpers.o CC i386-softmmu/virtio.o CC i386-softmmu/virtio-blk.o CC i386-softmmu/virtio-balloon.o CC i386-softmmu/virtio-net.o CC i386-softmmu/virtio-console.o CC i386-softmmu/fw_cfg.o CC i386-softmmu/posix-aio-compat.o CC i386-softmmu/block-raw-posix.o CC i386-softmmu/lsi53c895a.o CC i386-softmmu/esp.o CC i386-softmmu/usb-ohci.o CC i386-softmmu/eeprom93xx.o CC i386-softmmu/eepro100.o CC i386-softmmu/ne2000.o CC i386-softmmu/pcnet.o CC i386-softmmu/rtl8139.o CC i386-softmmu/e1000.o CC i386-softmmu/msmouse.o CC i386-softmmu/ide.o CC i386-softmmu/pckbd.o CC i386-softmmu/ps2.o CC i386-softmmu/vga.o CC i386-softmmu/sb16.o CC i386-softmmu/es1370.o CC i386-softmmu/ac97.o CC i386-softmmu/dma.o CC i386-softmmu/fdc.o CC i386-softmmu/mc146818rtc.o CC i386-softmmu/serial.o CC i386-softmmu/i8259.o CC i386-softmmu/i8254.o CC i386-softmmu/pcspk.o CC i386-softmmu/pc.o CC i386-softmmu/cirrus_vga.o CC i386-softmmu/apic.o /home/ciprian/desktop/projects/vpm-archives/hw/pc.c: In function ‘pc_init1’: /home/ciprian/desktop/projects/vpm-archives/hw/pc.c:837: warning: large integer implicitly truncated to unsigned type CC i386-softmmu/parallel.o CC i386-softmmu/acpi.o CC i386-softmmu/piix_pci.o CC i386-softmmu/usb-uhci.o CC i386-softmmu/vmmouse.o CC i386-softmmu/vmport.o CC i386-softmmu/vmware_vga.o CC i386-softmmu/hpet.o CC i386-softmmu/device-hotplug.o CC i386-softmmu/pci-hotplug.o CC i386-softmmu/gdbstub.o
rm -f gdbstub-xml.c
echo > gdbstub-xml.c
CC i386-softmmu/exec.o
In file included from /home/ciprian/desktop/projects/vpm-archives/exec.c:39:/home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:24:24: error: tcg-target.h: No such file or directory /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:26:5: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:31:7: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:37:2: error: #error unsupported /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:40:5: warning: "TCG_TARGET_NB_REGS" is not defined
In file included from /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:50,
from /home/ciprian/desktop/projects/vpm-archives/exec.c:39:/home/ciprian/desktop/projects/vpm-archives/tcg/tcg-opc.h:76:5: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg-opc.h:92:5: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg-opc.h:150:24: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg-opc.h:159:5: warning: "TCG_TARGET_REG_BITS" is not defined
In file included from /home/ciprian/desktop/projects/vpm-archives/exec.c:39:/home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:70: error: expected specifier-qualifier-list before ‘tcg_target_long’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:76: error: expected specifier-qualifier-list before ‘tcg_target_ulong’ In file included from /home/ciprian/desktop/projects/vpm-archives/exec.c:39:/home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:103:5: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘TCGArg’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:156:5: warning: "TCG_TARGET_REG_BITS" is not defined /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:207: error: expected specifier-qualifier-list before ‘tcg_target_long’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:223: error: expected specifier-qualifier-list before ‘tcg_target_ulong’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:252: error: ‘TCG_TARGET_NB_REGS’ undeclared here (not in a function) /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:254: error: expected specifier-qualifier-list before ‘tcg_target_long’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:290: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gen_opparam_buf’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:320: error: expected declaration specifiers or ‘...’ before ‘tcg_target_long’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:320: error: expected declaration specifiers or ‘...’ before ‘tcg_target_long’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:323: error: expected declaration specifiers or ‘...’ before ‘tcg_target_long’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:338: error: expected declaration specifiers or ‘...’ before ‘tcg_target_long’/home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:403:5: warning: "TCG_TARGET_REG_BITS" is not defined CC i386-softmmu/kqemu.o/home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:426: error: expected declaration specifiers or ‘...’ before ‘TCGArg’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:426: error: expected declaration specifiers or ‘...’ before ‘TCGArg’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:436: warning: type defaults to ‘int’ in declaration of ‘TCGArg’ /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:436: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token /home/ciprian/desktop/projects/vpm-archives/tcg/tcg.h:444: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token make[1]: *** [exec.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/stores/eros/ciprian/projects/vpm-archives/_build_/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2
Quoted 8 lines · Craciun
Hello all!
I've tried to build Qemu 0.10.5 and it fails with:
...
error:tcg-target.h: No such file or directory
warning: "TCG_TARGET_REG_BITS" is not defined
...
Quoted 7 lines
I've attached a file that contains both build commands and output. I'm on Debian Lenny i386 with a 2.6.30 kernel, and GCC 4.2. I've tried also Qemu 0.10.0 and the same thing happens. (I've also pasted below only the build script.)
Am I missing something?
Can you please post config-host.mak as generated by ./configure script? Specifically the ARCH=... line it would be interesting.
Best regards,
Filip Navara
Quoted 15 lines · Filip Navara
Quoted 13 lines · Craciun
Hello all!
I've tried to build Qemu 0.10.5 and it fails with:
...
error:tcg-target.h: No such file or directory
warning: "TCG_TARGET_REG_BITS" is not defined
...I've attached a file that contains both build commands and output. I'm on Debian Lenny i386 with a 2.6.30 kernel, and GCC 4.2. I've tried also Qemu 0.10.0 and the same thing happens. (I've also pasted below only the build script.)
Quoted 8 lines
Quoted 2 lines
Am I missing something?
Can you please post config-host.mak as generated by ./configure script? Specifically the ARCH=... line it would be interesting.
Best regards,
Filip Navara
Well the ARCH line says: ARCH=i386. But attached you have an
archive containing everything in the build folder (except .d and .o files.)
Thanks,
Ciprian Craciun.
Quoted 8 lines · Craciun
Hello all!
I've tried to build Qemu 0.10.5 and it fails with:
...
error:tcg-target.h: No such file or directory
warning: "TCG_TARGET_REG_BITS" is not defined
...
Quoted 4 lines
I've attached a file that contains both build commands and output.
I'm on Debian Lenny i386 with a 2.6.30 kernel, and GCC 4.2. I've tried also Qemu 0.10.0 and the same thing happens. (I've also pasted below only the build script.)
Well I took the 0.10.5 source package from unstable and built it in Lenny, and I don't remember having to do anything to the package to make it build.
Perhaps you are missing some build dependancy (which the source package would tell you about), or perhaps debian has patched something to make it work. Might be worth looking at the debian package from unstable.
Signature · 1 line
Len Sorensen
Quoted 18 lines · Lennart Sorensen
Quoted 8 lines · Craciun
Hello all!
I've tried to build Qemu 0.10.5 and it fails with:
...
error:tcg-target.h: No such file or directory
warning: "TCG_TARGET_REG_BITS" is not defined
...Quoted 4 lines
I've attached a file that contains both build commands and output. I'm on Debian Lenny i386 with a 2.6.30 kernel, and GCC 4.2. I've tried also Qemu 0.10.0 and the same thing happens. (I've also pasted below only the build script.)
Well I took the 0.10.5 source package from unstable and built it in Lenny, and I don't remember having to do anything to the package to make it build.
Quoted 6 lines
Perhaps you are missing some build dependancy (which the source package would tell you about), or perhaps debian has patched something to make it work. Might be worth looking at the debian package from unstable.
--
Len Sorensen
Well I've tried the Debian version, and it works. Then I've tried
again the original version and (surprise) it works. (The same build script as the one posted earlier.) (The source codes are the same, except that the Debian one does not include binary files for the bios, etc.)
After thinking for a while, I think I've figured the problem: on
Friday I've rebuilt my kernel. Until then it was a hand built x86_64 with the old Debian 32 bit user space, but on Friday I've switched back to the 32 bit kernel, but didn't reboot my laptop until tonight.
But still one problem: when compiling statically (--static flag to
configure), it gives "undefined reference" errors. They are related with SDL, and gnutls. But as these are related with UI, I could compile them out. One question though: the other features can be build statically?
Thanks, and sorry for the mistake,
Ciprian Craciun.