[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] new code_copy code gives: error: storage size of `ldt' isn'
From: |
Martin |
Subject: |
[Qemu-devel] new code_copy code gives: error: storage size of `ldt' isn't known in helper2.c:97 |
Date: |
Tue, 02 Mar 2004 00:35:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 |
Until recently I was able to build qemu-cvs but I updated today and now
it gives an error:
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper2.c:
In function `cpu_x86_init':
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper2.c:97:
error: storage size of `ldt' isn't known
The problem is in the new code_copy code
helper2.c:94:
#ifdef USE_CODE_COPY
/* testing code for code copy case */
{
struct modify_ldt_ldt_s ldt; //This is line 97
in target-i386/syscall.h the struct modify_ldt_ldt_s is defined:
target-i386/syscall.h:32:
struct target_modify_ldt_ldt_s {
unsigned int entry_number;
target_ulong base_addr;
unsigned int limit;
unsigned int flags;
};
I can't see what the problem is.
Does anybody know?
Greetings,
Martin
./configure
Install prefix /usr/local
Manual directory /usr/local/share/man
BIOS directory /usr/local/share/qemu
ELF interp prefix /usr/gnemul/qemu-%M
Source path /pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu
C compiler gcc
make make
host CPU i386
host big endian no
target list i386-user i386 i386-softmmu arm-user sparc-user ppc-user
gprof enabled no
static build no
SDL support yes
Creating config-host.mak and config-host.h
Creating i386-user/config.mak, i386-user/config.h and i386-user/Makefile
Creating i386/config.mak, i386/config.h and i386/Makefile
Creating i386-softmmu/config.mak, i386-softmmu/config.h and
i386-softmmu/Makefile
Creating arm-user/config.mak, arm-user/config.h and arm-user/Makefile
Creating sparc-user/config.mak, sparc-user/config.h and sparc-user/Makefile
Creating ppc-user/config.mak, ppc-user/config.h and ppc-user/Makefile
make
gcc -Wall -O2 -g -D_GNU_SOURCE -c -o dyngen.o dyngen.c
gcc -o dyngen dyngen.o
gcc -Wall -O2 -g -D_GNU_SOURCE -c -o qemu-mkcow.o qemu-mkcow.c
gcc -o qemu-mkcow qemu-mkcow.o
texi2html -monolithic -number qemu-doc.texi
./texi2pod.pl qemu-doc.texi qemu.pod
pod2man --section=1 --center=" " --release=" " qemu.pod > qemu.1
for d in i386-user i386 i386-softmmu arm-user sparc-user ppc-user; do \
make -C $d all || exit 1 ; \
done
.....
.....
gcc -Wall -O2 -g -fomit-frame-pointer -I.
-I/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386
-I/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu -D_GNU_SOURCE -c -o
helper.o
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper.c
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper.c:
In function `helper_ret_protected':
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper.c:1602:
warning: `new_eflags' might be used uninitialized in this function
gcc -Wall -O2 -g -fomit-frame-pointer -I.
-I/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386
-I/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu -D_GNU_SOURCE -c -o
helper2.o
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper2.c
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper2.c:
In function `cpu_x86_init':
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper2.c:97:
error: storage size of `ldt' isn't known
/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/target-i386/helper2.c:97:
warning: unused variable `ldt'
make[1]: *** [helper2.o] Error 1
make[1]: Leaving directory
`/pub/projects/emulators/qemu/qemu-0.5.3-cvs/qemu/i386-user'
make: *** [all] Error 1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] new code_copy code gives: error: storage size of `ldt' isn't known in helper2.c:97,
Martin <=