PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : kqemu kompilieren ;(



_marcos_
29.10.06, 15:17
hi,
ich möchte gern den qemu accelerator kqemu nutzen. doch das kompilieren scheint nicht ganz so einfach zu sein ;)
System: Debian etch / kernel 2.6.16-2

ich hab folgendes gemacht:

apt-get install qemu die sourcen von qemu und kqemu heruntergeladen und entpackt.
dann den kqemu ordner in den qemu ordner verschoben: .../qemu/kqemu

die header installiert:

apt-get install linux-headers-2.6.16-2 die header verlinkt

ln -s /usr/src/inux-headers-2.6.16-2 /usr/src/linux dann

eos@r2d2:~/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9$ sh ./configure --cc=gcc-3.4
Source path /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9
C compiler gcc-3.4
Host C compiler gcc
make make
host CPU i386

kernel sources /usr/src/linux
kbuild type 2.6 und jetzt kommt mein problem:)

eos@r2d2:~/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9$ make
make -C /usr/src/linux M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.16-2'
Makefile:298: /usr/src/linux-headers-2.6.16-2/scripts/Kbuild.include: Datei oder Verzeichnis nicht gefunden
Makefile:478: .config: Datei oder Verzeichnis nicht gefunden
/bin/sh: /usr/src/linux-headers-2.6.16-2/scripts/gcc-version.sh: Datei oder Verzeichnis nicht gefunden
/bin/sh: line 0: [: -lt: unary operator expected
make[1]: *** Keine Regel, um »/usr/src/linux-headers-2.6.16-2/scripts/Kbuild.include« zu erstellen. Schluss.
make[1]: Leaving directory `/usr/src/linux-headers-2.6.16-2'
make: *** [kqemu.ko] Fehler 2 das verzeichnis scrips existiert wirklich nicht ..

dann hab ich die kernel sourcen runtergeladen und mit /usr/src/linux verlinkt.
und da passiert das:

sh ./configure --cc=gcc-3.4 Source path /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9 C compiler gcc-3.4 Host C compiler gcc
make make
host CPU i386

kernel sources /usr/src/linux
kbuild type 2.6

make
make -C /usr/src/linux M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.16.2'
Makefile:476: .config: Datei oder Verzeichnis nicht gefunden

WARNING: Symbol version dump /usr/src/linux-2.6.16.2/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.o
cc1: error: include/linux/autoconf.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/module.h:9,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/config.h:6:28: error: linux/autoconf.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/sched.h:4:36: error: asm/param.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/posix_types.h:47,
from include/linux/types.h:15,
from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/asm/posix_types.h:13:22: error: features.h: Datei oder Verzeichnis nicht gefunden
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/asm/posix_types.h:14:35: error: no include path in which to search for asm/posix_types.h
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/types.h:16:23: error: asm/types.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/capability.h:16,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/types.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__kernel_dev_t’
include/linux/types.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dev_t’
include/linux/types.h:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ino_t’
include/linux/types.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mode_t’
include/linux/types.h:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nlink_t’
include/linux/types.h:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘off_t’
include/linux/types.h:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pid_t’
include/linux/types.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘daddr_t’
include/linux/types.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘suseconds_t’
include/linux/types.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘timer_t’
include/linux/types.h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clockid_t’
include/linux/types.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uid_t’
include/linux/types.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gid_t’
include/linux/types.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uid16_t’
include/linux/types.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gid16_t’
include/linux/types.h:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘loff_t’
include/linux/types.h:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘size_t’
include/linux/types.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ssize_t’
include/linux/types.h:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ptrdiff_t’
include/linux/types.h:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘time_t’
include/linux/types.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clock_t’
include/linux/types.h:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘caddr_t’
include/linux/types.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int8_t’
include/linux/types.h:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int8_t’
include/linux/types.h:111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int16_t’
include/linux/types.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int16_t’
include/linux/types.h:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int32_t’
include/linux/types.h:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int32_t’
include/linux/types.h:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uint8_t’
include/linux/types.h:119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uint16_t’
include/linux/types.h:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uint32_t’
include/linux/types.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uint64_t’
include/linux/types.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int64_t’
include/linux/types.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int64_t’
include/linux/types.h:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__le16’
include/linux/types.h:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__be16’
include/linux/types.h:168: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__le32’
include/linux/types.h:169: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__be32’
include/linux/types.h:171: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__le64’
include/linux/types.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__be64’
include/linux/types.h:180: error: expected specifier-qualifier-list before ‘__kernel_daddr_t’
In file included from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/capability.h:33: error: expected specifier-qualifier-list before ‘__u32’
include/linux/capability.h:38: error: expected specifier-qualifier-list before ‘__u32’
In file included from include/linux/thread_info.h:20,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/bitops.h:77:24: error: asm/bitops.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/thread_info.h:20,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/bitops.h:80: error: expected ‘)’ before ‘x’
include/linux/bitops.h: In function ‘get_bitmask_order’:
include/linux/bitops.h:92: warning: implicit declaration of function ‘fls’
include/linux/bitops.h: At top level:
include/linux/bitops.h:135: error: expected ‘)’ before ‘w’
include/linux/bitops.h:137:5: warning: "BITS_PER_LONG" is not defined
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:153: warning: implicit declaration of function ‘generic_hweight64’
include/linux/bitops.h: At top level:
include/linux/bitops.h:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rol32’
include/linux/bitops.h:173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ror32’
In file included from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/thread_info.h:21:29: error: asm/thread_info.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/thread_info.h:30: warning: ‘struct thread_info’ declared inside parameter list
include/linux/thread_info.h:30: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/thread_info.h: In function ‘set_ti_thread_flag’:
include/linux/thread_info.h:32: warning: implicit declaration of function ‘set_bit’
include/linux/thread_info.h:32: error: dereferencing pointer to incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:35: warning: ‘struct thread_info’ declared inside parameter list
include/linux/thread_info.h: In function ‘clear_ti_thread_flag’:
include/linux/thread_info.h:37: warning: implicit declaration of function ‘clear_bit’
include/linux/thread_info.h:37: error: dereferencing pointer to incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:40: warning: ‘struct thread_info’ declared inside parameter list
include/linux/thread_info.h: In function ‘test_and_set_ti_thread_flag’:
include/linux/thread_info.h:42: warning: implicit declaration of function ‘test_and_set_bit’
include/linux/thread_info.h:42: error: dereferencing pointer to incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:45: warning: ‘struct thread_info’ declared inside parameter list
include/linux/thread_info.h: In function ‘test_and_clear_ti_thread_flag’:
include/linux/thread_info.h:47: warning: implicit declaration of function ‘test_and_clear_bit’
include/linux/thread_info.h:47: error: dereferencing pointer to incomplete type
include/linux/thread_info.h: At top level:
include/linux/thread_info.h:50: warning: ‘struct thread_info’ declared inside parameter list
include/linux/thread_info.h: In function ‘test_ti_thread_flag’:
include/linux/thread_info.h:52: warning: implicit declaration of function ‘test_bit’
include/linux/thread_info.h:52: error: dereferencing pointer to incomplete type
In file included from include/linux/preempt.h:11,
from include/linux/spinlock.h:50,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/linkage.h:5:25: error: asm/linkage.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/spinlock.h:54,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/kernel.h:16:27: error: asm/byteorder.h: Datei oder Verzeichnis nicht gefunden
include/linux/kernel.h:17:21: error: asm/bug.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/spinlock.h:54,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/kernel.h: At top level:
include/linux/kernel.h:106: error: expected declaration specifiers or ‘...’ before ‘size_t’
include/linux/kernel.h:107: error: format string argument not a string type
include/linux/kernel.h:108: error: expected declaration specifiers or ‘...’ before ‘size_t’
include/linux/kernel.h:110: error: expected declaration specifiers or ‘...’ before ‘size_t’
include/linux/kernel.h:111: error: format string argument not a string type
include/linux/kernel.h:112: error: expected declaration specifiers or ‘...’ before ‘size_t’
include/linux/kernel.h:243:2: error: #error "Please fix asm/byteorder.h"
In file included from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/spinlock.h:57:24: error: asm/system.h: Datei oder Verzeichnis nicht gefunden
include/linux/spinlock.h:231:24: error: asm/atomic.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/spinlock.h:237: error: expected ‘)’ before ‘*’ token
In file included from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/capability.h:46:25: error: asm/current.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/capability.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kernel_cap_t’
include/linux/capability.h:295: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cap_bset’
include/linux/capability.h:323: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cap_combine’
include/linux/capability.h:330: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cap_intersect’
include/linux/capability.h:337: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cap_drop’
include/linux/capability.h:344: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cap_invert’
In file included from include/linux/time.h:7,
from include/linux/timex.h:58,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/seqlock.h: In function ‘write_seqlock’:
include/linux/seqlock.h:54: warning: implicit declaration of function ‘smp_wmb’
include/linux/seqlock.h: In function ‘read_seqbegin’:
include/linux/seqlock.h:79: warning: implicit declaration of function ‘smp_rmb’
In file included from include/linux/timex.h:58,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/time.h: At top level:
include/linux/time.h:13: error: expected specifier-qualifier-list before ‘time_t’
include/linux/time.h:19: error: expected specifier-qualifier-list before ‘time_t’
include/linux/time.h: In function ‘timespec_equal’:
include/linux/time.h:38: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h:38: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h:38: error: ‘struct timespec’ has no member named ‘tv_nsec’
include/linux/time.h:38: error: ‘struct timespec’ has no member named ‘tv_nsec’
include/linux/time.h: In function ‘timespec_compare’:
include/linux/time.h:48: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h:48: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h:50: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h:50: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h:52: error: ‘struct timespec’ has no member named ‘tv_nsec’
include/linux/time.h:52: error: ‘struct timespec’ has no member named ‘tv_nsec’
include/linux/time.h: In function ‘timeval_compare’:
include/linux/time.h:57: error: ‘struct timeval’ has no member named ‘tv_sec’
include/linux/time.h:57: error: ‘struct timeval’ has no member named ‘tv_sec’
include/linux/time.h:59: error: ‘struct timeval’ has no member named ‘tv_sec’
include/linux/time.h:59: error: ‘struct timeval’ has no member named ‘tv_sec’
include/linux/time.h:61: error: ‘struct timeval’ has no member named ‘tv_usec’
include/linux/time.h:61: error: ‘struct timeval’ has no member named ‘tv_usec’
include/linux/time.h: At top level:
include/linux/time.h:68: error: expected declaration specifiers or ‘...’ before ‘time_t’
include/linux/time.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nsec_t’
include/linux/time.h: In function ‘get_seconds’:
include/linux/time.h:88: error: ‘struct timespec’ has no member named ‘tv_sec’
include/linux/time.h: At top level:
include/linux/time.h:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘timespec_to_ns’
include/linux/time.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘timeval_to_ns’
include/linux/time.h:140: warning: type defaults to ‘int’ in declaration of ‘nsec_t’
include/linux/time.h:140: error: expected ‘;’, ‘,’ or ‘)’ before ‘nsec’
include/linux/time.h:148: warning: type defaults to ‘int’ in declaration of ‘nsec_t’
include/linux/time.h:148: error: expected ‘;’, ‘,’ or ‘)’ before ‘nsec’
In file included from include/linux/sched.h:11,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/timex.h:61:23: error: asm/timex.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/sched.h:11,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/timex.h:349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘current_tick_length’
In file included from include/linux/jiffies.h:4,
from include/linux/sched.h:12,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/calc64.h:5:23: error: asm/div64.h: Datei oder Verzeichnis nicht gefunden
In file included from include/linux/jiffies.h:4,
from include/linux/sched.h:12,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/calc64.h: In function ‘do_div_llr’:
include/linux/calc64.h:23: error: ‘u64’ undeclared (first use in this function)
include/linux/calc64.h:23: error: (Each undeclared identifier is reported only once
include/linux/calc64.h:23: error: for each function it appears in.)
include/linux/calc64.h:23: error: expected ‘;’ before ‘result’
include/linux/calc64.h:25: warning: implicit declaration of function ‘do_div’
include/linux/calc64.h:25: error: ‘result’ undeclared (first use in this function)
In file included from include/linux/sched.h:12,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/jiffies.h:18:5: warning: "HZ" is not defined
include/linux/jiffies.h:20:7: warning: "HZ" is not defined
include/linux/jiffies.h:22:7: warning: "HZ" is not defined
include/linux/jiffies.h:24:7: warning: "HZ" is not defined
include/linux/jiffies.h:26:7: warning: "HZ" is not defined
include/linux/jiffies.h:28:7: warning: "HZ" is not defined
include/linux/jiffies.h:30:7: warning: "HZ" is not defined
include/linux/jiffies.h:33:3: error: #error You lose.
In file included from include/linux/sched.h:12,
from include/linux/module.h:10,
from /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.c:5:
include/linux/jiffies.h: At top level:
include/linux/jiffies.h:75: warning: type defaults to ‘int’ in declaration of ‘u64’
include/linux/jiffies.h:75: error: expected ‘,’ or ‘;’ before ‘jiffies_64’
include/linux/jiffies.h:78:6: warning: "BITS_PER_LONG" is not defined
include/linux/jiffies.h:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘get_jiffies_64’
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: error: division by zero in #if
include/linux/jiffies.h:204:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:204:31: warning: "HZ" is not defined

(...) #musste ich kürzen

make[2]: *** [/home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.o] Fehler 1
make[1]: *** [_module_/home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.2'
make: *** [kqemu.ko] Fehler 2
leider ist das für mich total nichtsaussagend :confused:
wär toll wenn mir jemand helfen könnte ;) danke schon mal

stefan.becker
29.10.06, 16:55
Die Kernel Header reichen nicht, der ganze Kernel Source muss da sein. Außerdem muss der Kernel konfiguriert sein, siehe deine Fehlemeldung, die Datei ".config" fehlt.

_marcos_
29.10.06, 18:03
heißt das in /usr/src/linux/ ein "make menuconfig" zumachen ??
da kann ich ja dann standard einstellungen laden.
wenn ich das mache bekomm ich aber auch eine endlose fehlermeldung .. bei bedarf kann ich die posten.

stefan.becker
29.10.06, 19:40
Hast du die Kernelsourcen denn installiert? Wenn nein, mach das erstmal.

Wenn ja: Schau mal unter /boot, da findet sich zumeist die Config, mit der der Kernel übersetzt wurde.

_marcos_
30.10.06, 14:48
ich bin soweit gekommen:

cd /usr/src
tar xjvf kernel-source-2.6.16-2.tar.bz2
ln -s kernel-source-2.6.16-2 linux
cd linux
make menuconfig
make-kpkg clean
make-kpkg --revision=custom.1.0 --initrd kernel_image
sudo dpkg -i ../kernel-image-2.6.16-2_custom.1.0_i386.deb
sudo reboot

sh ./configure --cc=gcc-3.4 Source path

/home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9
C compiler gcc-3.4
Host C compiler gcc
make make
host CPU i386

kernel sources /lib/modules/2.6.16.2/build
kbuild type 2.6

$ make

make -C /lib/modules/2.6.16.2/build M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.16.2'
CC [M] /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-linux.o
cp /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-mod-i386.o /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu-mod.o
LD [M] /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu.o
Building modules, stage 2.
MODPOST
CC /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu.mod.o
LD [M] /home/eos/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9/kqemu.ko
make[1]: Leaving directory `/usr/src/linux-2.6.16.2'

$ su

Password:

# make install

./install.sh
make: execvp: ./install.sh: Keine Berechtigung
make: *** [install] Fehler 127
die benutzerrechte von install.sh sind auf -rwxr-xr-x

suck
30.10.06, 15:43
ln -s /usr/src/inux-headers-2.6.16-2 /usr/src/linuxDa ist schonmal ein Tippfehler drin..

_marcos_
30.10.06, 15:52
Da ist schonmal ein Tippfehler drin..

;) ja auch nur da; hatte das nicht aus dem terminal kopiert.:ugly: siehe:


eos@r2d2:~/Desktop/qemu/qemu-0.8.2/kqemu-1.3.0pre9$ make
make -C /usr/src/linux M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.16-2'

aber funktioniert ja mit den headers eh nicht

suck
30.10.06, 15:57
Ups, sorry, hab was überlesen.. (du führst "make install" ja schon als root aus)

suck
30.10.06, 16:25
Du könntest die install.sh mal direkt ausführen (mehr macht "make install" auch nicht) - ist einen Versuch wert. Wenn das auch nicht geht, würde ich einen Befehl nach dem anderem aus der install.sh ausführen.

_marcos_
30.10.06, 16:42
gute idee, erstes hat auch direkt geklappt :) danke für die tolle hilfe von euch. qemu ist auch schon spürbar schneller :)

suck
30.10.06, 16:49
Und nicht vergessen, dass nach einem Neustart das Device wieder neu erstellt werden muss - das kann z.B. das Startscript erledigen, dass auch kqemu startet:
mknod /dev/kqemu c 250 0
chmod 666 /dev/kqemu

_marcos_
30.10.06, 16:55
ich hab jetzt einfach /sbin/modprobe kqemu gemacht,
muss ich das jetzt nich einfach in die /etc/rc.local eintragen ??

suck
30.10.06, 16:59
Versuchs mal. Wenn es nicht geht, dann einfach die beiden Zeilen von eben noch davor schreiben.