From: "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Building Qemu 0.10.5 fails with an error about missing tcg-target.h
Date: Sat, 27 Jun 2009 19:52:35 +0300 [thread overview]
Message-ID: <8e04b5820906270952o34cf6c5bu2410e2680fe37344@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: build.log --]
[-- Type: text/x-log; charset=x-utf8utf8; name="build.log", Size: 11298 bytes --]
#!/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
next reply other threads:[~2009-06-27 16:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-27 16:52 Ciprian Dorin, Craciun [this message]
2009-06-28 17:49 ` [Qemu-devel] Building Qemu 0.10.5 fails with an error about missing tcg-target.h Filip Navara
2009-06-29 5:57 ` Ciprian Dorin, Craciun
2009-06-29 14:40 ` Lennart Sorensen
2009-06-29 20:50 ` Ciprian Dorin, Craciun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e04b5820906270952o34cf6c5bu2410e2680fe37344@mail.gmail.com \
--to=ciprian.craciun@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).