Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lmhfj-0001MY-Du for qemu-devel@nongnu.org; Thu, 26 Mar 2009 00:58:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmhff-0001JI-NS for qemu-devel@nongnu.org; Thu, 26 Mar 2009 00:58:31 -0400 Received: from [199.232.76.173] (port=53980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmhff-0001J3-FS for qemu-devel@nongnu.org; Thu, 26 Mar 2009 00:58:27 -0400 Received: from mail-gx0-f176.google.com ([209.85.217.176]:62887) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lmhfe-0001pU-MN for qemu-devel@nongnu.org; Thu, 26 Mar 2009 00:58:27 -0400 Received: by gxk24 with SMTP id 24so895247gxk.10 for ; Wed, 25 Mar 2009 21:58:25 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 25 Mar 2009 22:58:25 -0600 Message-ID: <641543ce0903252158n1e2162f9la28399f3e5a008a4@mail.gmail.com> From: Levi Junkert Content-Type: multipart/alternative; boundary=00151750d9e05fa8750465fe7717 Subject: [Qemu-devel] Makefile.winnt Issues With Crosscompile on Ubuntu Reply-To: levi.junkert@gmail.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --00151750d9e05fa8750465fe7717 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: ------------------------------------------------------------ academic@ENDER:~/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,_DriverEntry@8 \ -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: ------------------------------------------------------------ academic@ENDER:~/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 academic@ENDER:~/kqemu_sources/kqemu-1.4.0pre1$ i586-mingw32msvc-gcc -v Using built-in specs. Target: i586-mingw32msvc Configured with: /build/buildd/mingw32-4.2.1.dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++ --enable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-specific-runtime-libs Thread model: win32 gcc version 4.2.1-sjlj (mingw32-2) ------------------------------------------------------------ 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: levi.junkert@gmail.com 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. --00151750d9e05fa8750465fe7717 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello everyone,

I am trying to build the KQEMU source using the ming= w 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 min= gw >=3D 4.0? Or is an object file missing?

MAKE OUTPUT:
-------------------------------------------------------= -----

academic@ENDER:~/kqemu_sources/kqemu-1.4.0pre1$ make --make=3D= Makefile.winnt
i586-mingw32msvc-gcc -O2 -I. -c kqemu-win32.c -o kqemu-w= in32.o
make -C common all
make[1]: Entering directory `/home/academic/kqemu_sou= rces/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 i38= 6/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-poin= ter -fno-strict-aliasing -Werror=A0 -fno-stack-protector=A0=A0=A0 -D__KERNE= L__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor.o monitor.c
gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror=A0 -fno-sta= ck-protector=A0=A0=A0 -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=A0 -fno-stack-protector=A0=A0=A0 -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_as= m.o monitor.o monitor-utils.o interp.o
objcopy -O binary monitor-image.o= ut monitor-image.bin
gcc -Wall -O2 -Werror -g -o genmon genmon.c
./genmon < monitor-image.bin > monitor-image.h
gcc -Wall -O2 -fomi= t-frame-pointer -fno-strict-aliasing -Werror=A0 -D__KERNEL__ -nostdinc -iwi= thprefix include -I. -I.. -c -o kernel.o kernel.c
gcc -D__KERNEL__ -nost= dinc -iwithprefix include -I. -I.. -D__ASSEMBLY__ -c -o i386/kernel_asm.o i= 386/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'
i58= 6-mingw32msvc-gcc -Wl,--base-file,base.tmp -Wl,--entry,_DriverEntry@8 \
=A0=A0=A0 =A0=A0=A0 -nostartfiles -nostdlib -o junk.tmp kqemu-win32.o kqemu= -mod-i386-win32.o -lntoskrnl -lhal
kqemu-win32.o:kqemu-win32.c:(.text+0x= 81): 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_g= et_cpu_state'
kqemu-win32.o:kqemu-win32.c:(.text+0x247): undefined r= eference 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_i= nit'
kqemu-win32.o:kqemu-win32.c:(.text+0x41c): undefined reference = to `_kqemu_delete'
kqemu-mod-i386-win32.o: In function `kqemu_exec&#= 39;:
(.text+0xee1): undefined reference to `kqemu_log'
kqemu-mod-i386-win= 32.o: In function `kqemu_exec':
(.text+0xfbd): undefined reference t= o `kqemu_schedule'
kqemu-mod-i386-win32.o: In function `kqemu_exec&#= 39;:
(.text+0x10be): undefined reference to `kqemu_unlock_user_page'
kqem= u-mod-i386-win32.o: In function `kqemu_exec':
(.text+0x10de): undefi= ned reference to `kqemu_lock_user_page'
kqemu-mod-i386-win32.o: In f= unction `kqemu_exec':
(.text+0x1108): undefined reference to `kqemu_alloc_zeroed_page'
kqe= mu-mod-i386-win32.o: In function `kqemu_exec':
(.text+0x113d): undef= ined reference to `kqemu_log'
kqemu-mod-i386-win32.o: In function `k= qemu_exec':
(.text+0x1168): undefined reference to `kqemu_log'
kqemu-mod-i386-wi= n32.o: In function `kqemu_delete':
(.text+0x124a): undefined referen= ce to `kqemu_unlock_user_page'
kqemu-mod-i386-win32.o: In function `= kqemu_delete':
(.text+0x1264): undefined reference to `kqemu_unlock_user_page'
kqem= u-mod-i386-win32.o: In function `kqemu_delete':
(.text+0x1290): unde= fined reference to `kqemu_free_page'
kqemu-mod-i386-win32.o: In func= tion `kqemu_delete':
(.text+0x12b2): undefined reference to `kqemu_io_unmap'
kqemu-mod-i3= 86-win32.o: In function `mon_set_pte':
kernel.c:(.text+0x147f): unde= fined reference to `kqemu_page_kaddr'
kernel.c:(.text+0x15a7): undef= ined reference to `kqemu_page_kaddr'
kernel.c:(.text+0x15bf): undefined reference to `kqemu_page_kaddr'
k= qemu-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): u= ndefined 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-i38= 6-win32.o: In function `kqemu_init':
(.text+0x1b6d): undefined refer= ence to `kqemu_vmalloc'
kqemu-mod-i386-win32.o: In function `kqemu_i= nit':
(.text+0x1e22): undefined reference to `kqemu_log'
kqemu-mod-i386-wi= n32.o: In function `kqemu_init':
(.text+0x1f3e): undefined reference= to `kqemu_vmalloc_to_phys'
kqemu-mod-i386-win32.o: In function `kqe= mu_init':
(.text+0x1f76): undefined reference to `kqemu_vmalloc_to_phys'
kqemu= -mod-i386-win32.o: In function `kqemu_init':
(.text+0x20de): undefin= ed reference to `kqemu_vmalloc_to_phys'
kqemu-mod-i386-win32.o: In f= unction `kqemu_init':
(.text+0x2100): undefined reference to `kqemu_vmalloc_to_phys'
kqemu= -mod-i386-win32.o: In function `kqemu_init':
(.text+0x2126): undefin= ed reference to `kqemu_vmalloc_to_phys'
kqemu-mod-i386-win32.o:(.tex= t+0x2310): more undefined references to `kqemu_vmalloc_to_phys' follow<= br> kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x268f): un= defined reference to `kqemu_page_kaddr'
kqemu-mod-i386-win32.o: In f= unction `kqemu_init':
(.text+0x26a4): undefined reference to `kqemu_= page_kaddr'
kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x286b): un= defined reference to `kqemu_page_kaddr'
kqemu-mod-i386-win32.o: In f= unction `kqemu_init':
(.text+0x287f): undefined reference to `kqemu_= page_kaddr'
kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x2891): un= defined reference to `kqemu_page_kaddr'
kqemu-mod-i386-win32.o: In f= unction `kqemu_init':
(.text+0x2942): undefined reference to `kqemu_= log'
kqemu-mod-i386-win32.o: In function `kqemu_init':
(.text+0x29a4): un= defined reference to `kqemu_io_map'
kqemu-mod-i386-win32.o: In funct= ion `kqemu_delete':
(.text+0x137f): undefined reference to `kqemu_vf= ree'
kqemu-mod-i386-win32.o: In function `kqemu_global_delete':
(.text+0x= 13a1): undefined reference to `kqemu_vfree'
collect2: ld returned 1 = exit status
make: *** [kqemu.sys] Error 1

-----------------------= -------------------------------------
SYSTEM STATS:
----------------------------------------------------------= --

academic@ENDER:~/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<= br>
academic@ENDER:~/kqemu_sources/kqemu-1.4.0pre1$ i586-mingw32msvc-gcc -v=
Using built-in specs.
Target: i586-mingw32msvc
Configured with: /= build/buildd/mingw32-4.2.1.dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure -v= --prefix=3D/usr --target=3Di586-mingw32msvc --enable-languages=3Dc,c++ --e= nable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-= specific-runtime-libs
Thread model: win32
gcc version 4.2.1-sjlj (mingw32-2)

----------= --------------------------------------------------

Any help would be= greatly appreciated as I'm trying to build the newest combination of s= ource on your website.

Cheers,

-Levi Junkert
--
--------------------------------= --------------------------
Levi D. Junkert

Academic Technology Gr= oup
1 Lewis Hall
Montana State University
Bozeman, MT =A059717

E-Mail: levi.junkert@gmail.co= m
Cell: 406-579-0532
Office: 406-994-6451
--------------------= -------------------------------------
NOTICE: This email and any files t= ransmitted
with it are confidential and intended solely for
the use of the individu= al or entity to whom they
are addressed. If you have received this email=
in error please notify the system manager. This
message contains con= fidential information and
is intended only for the individual named. If you
are not the named addr= essee you should not
disseminate, distribute or copy this e-mail.
--00151750d9e05fa8750465fe7717--