[Qemu-devel] Makefile.winnt Issues With Crosscompile on Ubuntu
From:
Levi Junkert
Subject:
[Qemu-devel] Makefile.winnt Issues With Crosscompile on Ubuntu
Date:
Wed, 25 Mar 2009 22:58:25 -0600
Hello everyone,
I am trying to build the KQEMU source using the mingw cross-compiler with Makefile.winnt for KQEMU using a simple ubuntu server installation. While trying to run the linker the make process fails. Am I doing something wrong? Or is there a constraint on compiling KQEMU with mingw >= 4.0? Or is an object file missing?
MAKE OUTPUT: ------------------------------------------------------------
address@hidden:~/kqemu_sources/kqemu-1.4.0pre1$ make --make=Makefile.winnt i586-mingw32msvc-gcc -O2 -I. -c kqemu-win32.c -o kqemu-win32.o
make -C common all make[1]: Entering directory `/home/academic/kqemu_sources/kqemu-1.4.0pre1/common' gcc -Wall -O2 -Werror -g -D__KERNEL__ -I.. -o genoffsets genoffsets.c ./genoffsets > monitor_def.h gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o i386/nexus_asm.o i386/nexus_asm.S
gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o i386/monitor_asm.o i386/monitor_asm.S gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -fno-stack-protector -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor.o monitor.c
gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -fno-stack-protector -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor-utils.o monitor-utils.c gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -fno-stack-protector -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o interp.o interp.c
ld -T i386/monitor.ld -o monitor-image.out i386/nexus_asm.o i386/monitor_asm.o monitor.o monitor-utils.o interp.o objcopy -O binary monitor-image.out monitor-image.bin gcc -Wall -O2 -Werror -g -o genmon genmon.c
./genmon < monitor-image.bin > monitor-image.h gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o kernel.o kernel.c gcc -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o i386/kernel_asm.o i386/kernel_asm.S
ld -r -o ../kqemu-mod-i386.o kernel.o i386/kernel_asm.o make[1]: Leaving directory `/home/academic/kqemu_sources/kqemu-1.4.0pre1/common' i586-mingw32msvc-gcc -Wl,--base-file,base.tmp -Wl,--entry,address@hidden \
-nostartfiles -nostdlib -o junk.tmp kqemu-win32.o kqemu-mod-i386-win32.o -lntoskrnl -lhal kqemu-win32.o:kqemu-win32.c:(.text+0x81): undefined reference to `_kqemu_global_init' kqemu-win32.o:kqemu-win32.c:(.text+0x16c): undefined reference to `_kqemu_global_delete'
kqemu-win32.o:kqemu-win32.c:(.text+0x22a): undefined reference to `_kqemu_get_cpu_state' kqemu-win32.o:kqemu-win32.c:(.text+0x247): undefined reference to `_kqemu_exec' kqemu-win32.o:kqemu-win32.c:(.text+0x2a9): undefined reference to `_kqemu_set_phys_mem'
kqemu-win32.o:kqemu-win32.c:(.text+0x2f6): undefined reference to `_kqemu_init' kqemu-win32.o:kqemu-win32.c:(.text+0x41c): undefined reference to `_kqemu_delete' kqemu-mod-i386-win32.o: In function `kqemu_exec':
(.text+0xee1): undefined reference to `kqemu_log' kqemu-mod-i386-win32.o: In function `kqemu_exec': (.text+0xfbd): undefined reference to `kqemu_schedule' kqemu-mod-i386-win32.o: In function `kqemu_exec':
(.text+0x10be): undefined reference to `kqemu_unlock_user_page' kqemu-mod-i386-win32.o: In function `kqemu_exec': (.text+0x10de): undefined reference to `kqemu_lock_user_page' kqemu-mod-i386-win32.o: In function `kqemu_exec':
(.text+0x1108): undefined reference to `kqemu_alloc_zeroed_page' kqemu-mod-i386-win32.o: In function `kqemu_exec': (.text+0x113d): undefined reference to `kqemu_log' kqemu-mod-i386-win32.o: In function `kqemu_exec':
(.text+0x1168): undefined reference to `kqemu_log' kqemu-mod-i386-win32.o: In function `kqemu_delete': (.text+0x124a): undefined reference to `kqemu_unlock_user_page' kqemu-mod-i386-win32.o: In function `kqemu_delete':
(.text+0x1264): undefined reference to `kqemu_unlock_user_page' kqemu-mod-i386-win32.o: In function `kqemu_delete': (.text+0x1290): undefined reference to `kqemu_free_page' kqemu-mod-i386-win32.o: In function `kqemu_delete':
(.text+0x12b2): undefined reference to `kqemu_io_unmap' kqemu-mod-i386-win32.o: In function `mon_set_pte': kernel.c:(.text+0x147f): undefined reference to `kqemu_page_kaddr' kernel.c:(.text+0x15a7): undefined reference to `kqemu_page_kaddr'
kernel.c:(.text+0x15bf): undefined reference to `kqemu_page_kaddr' kqemu-mod-i386-win32.o: In function `mon_alloc_page': kernel.c:(.text+0x1653): undefined reference to `kqemu_alloc_zeroed_page' kqemu-mod-i386-win32.o: In function `kqemu_set_phys_mem':
(.text+0x18c1): undefined reference to `kqemu_page_kaddr' kqemu-mod-i386-win32.o: In function `mon_user_map': kernel.c:(.text+0x1a34): undefined reference to `kqemu_lock_user_page' kqemu-mod-i386-win32.o: In function `kqemu_global_init':
(.text+0x1a8b): undefined reference to `kqemu_vmalloc' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x1b6d): undefined reference to `kqemu_vmalloc' kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x1e22): undefined reference to `kqemu_log' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x1f3e): undefined reference to `kqemu_vmalloc_to_phys' kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x1f76): undefined reference to `kqemu_vmalloc_to_phys' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x20de): undefined reference to `kqemu_vmalloc_to_phys' kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x2100): undefined reference to `kqemu_vmalloc_to_phys' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x2126): undefined reference to `kqemu_vmalloc_to_phys' kqemu-mod-i386-win32.o:(.text+0x2310): more undefined references to `kqemu_vmalloc_to_phys' follow
kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x268f): undefined reference to `kqemu_page_kaddr' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x26a4): undefined reference to `kqemu_page_kaddr'
kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x286b): undefined reference to `kqemu_page_kaddr' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x287f): undefined reference to `kqemu_page_kaddr'
kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x2891): undefined reference to `kqemu_page_kaddr' kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x2942): undefined reference to `kqemu_log'
kqemu-mod-i386-win32.o: In function `kqemu_init': (.text+0x29a4): undefined reference to `kqemu_io_map' kqemu-mod-i386-win32.o: In function `kqemu_delete': (.text+0x137f): undefined reference to `kqemu_vfree'
kqemu-mod-i386-win32.o: In function `kqemu_global_delete': (.text+0x13a1): undefined reference to `kqemu_vfree' collect2: ld returned 1 exit status make: *** [kqemu.sys] Error 1
------------------------------------------------------------
SYSTEM STATS: ------------------------------------------------------------
address@hidden:~/kqemu_sources/kqemu-1.4.0pre1$ uname -a Linux ENDER 2.6.27-11-server #1 SMP Thu Jan 29 20:19:41 UTC 2009 i686 GNU/Linux
Any help would be greatly appreciated as I'm trying to build the newest combination of source on your website.
Cheers,
-Levi Junkert -- ---------------------------------------------------------- Levi D. Junkert
Academic Technology Group 1 Lewis Hall Montana State University Bozeman, MT 59717
E-Mail: address@hidden Cell: 406-579-0532 Office: 406-994-6451 --------------------------------------------------------- NOTICE: This email and any files transmitted
with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and
is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
[Prev in Thread]
Current Thread
[Next in Thread]
[Qemu-devel] Makefile.winnt Issues With Crosscompile on Ubuntu,
Levi Junkert<=