From: Stefan Hajnoczi <stefanha@gmail.com>
To: Roy Tam <roytam@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Compilation error of coroutine-win32.c with gcc version 3.4.5 (mingw-vista special r3)
Date: Tue, 16 Aug 2011 13:45:51 +0100 [thread overview]
Message-ID: <CAJSP0QU+uSbb4wukesaf=OFnkgvvsfoNp5Mc2MHb0TNozv6LEg@mail.gmail.com> (raw)
In-Reply-To: <CAA=zYJaLUSAhVKXw=FYjBDNS-om7behLqBG9vYuWU=q=3yWz_w@mail.gmail.com>
On Tue, Aug 16, 2011 at 8:38 AM, Roy Tam <roytam@gmail.com> wrote:
> 2011/8/8 Roy Tam <roytam@gmail.com>:
>> 2011/8/8 Stefan Hajnoczi <stefanha@gmail.com>:
>>> On Mon, Aug 8, 2011 at 1:30 AM, Roy Tam <roytam@gmail.com> wrote:
>>>> Hi all,
>>>>
>>>> I checked out latest git and tried to compile QEMU but I got this message:
>>>> qemu$ make V=1
>>>> gcc -m32 -D__USE_MINGW_ANSI_STDIO=1 -DWIN32_LEAN_AND_MEAN
>>>> -DWINVER=0x501 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
>>>> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes
>>>> -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes
>>>> -fno-strict-aliasing -O3 -msse3 -msse2 -msse -mmmx
>>>> -fomit-frame-pointer -mpreferred-stack-boundary=2 -ffast-math -pipe
>>>> -funroll-loops -fforce-addr -mfpmath=sse -Wendif-labels
>>>> -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self
>>>> -Wold-style-definition -mms-bitfields -Ic:/MinGW/include/glib-2.0
>>>> -Ic:/MinGW/lib/glib-2.0/include -I/usr/home/User/qemu/slirp -I.
>>>> -I/usr/home/User/qemu -I/usr/home/User/qemu/fpu -MMD -MP -MT
>>>> coroutine-win32.o -MF ./coroutine-win32.d -O2 -g -c -o
>>>> coroutine-win32.o coroutine-win32.c
>>>> coroutine-win32.c:36: error: thread-local storage not supported for this target
>>>> coroutine-win32.c:37: error: thread-local storage not supported for this target
>>>> make: *** [coroutine-win32.o] Error 1
>>>
>>> Hi Roy,
>>> Others have successfully built for win32. Are you able to upgrade to
>>> a newer toolchain, gcc-3.4 is 6 years old and doesn't support __thread
>>> variables?
>>
>> I tried many MinGW GCC 4.x(from 4.5.0 to 4.7.0) but resulting an
>> internal compiler error when compiling op_helper.c
>>
>
> I removed "-mpreferred-stack-boundary=2" switch and it now builds.
> But created binaries are unusable, even I remove all cflags.
>
> C:\msys\home\User\qemu\i386-softmmu>gdb --args qemu -L ..\pc-bios
> GNU gdb (GDB) 7.3
> Copyright (C) 2011 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying" and "show warranty" for details.
> This GDB was configured as "mingw32".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> C:\msys\home\User\qemu\i386-softmmu/qemu.exe...(no debugging symbols
> found)...done.
> (gdb) run
> Starting program: C:\msys\home\User\qemu\i386-softmmu/qemu.exe -L ..\\pc-bios
> [New Thread 5880.0x13c4]
> [New Thread 5880.0x16ac]
> [New Thread 5880.0x110c]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 5880.0x110c]
> 0x77c0554a in msvcrt!_abnormal_termination ()
> from C:\WINDOWS\system32\msvcrt.dll
> (gdb) backtrace
> #0 0x77c0554a in msvcrt!_abnormal_termination ()
> from C:\WINDOWS\system32\msvcrt.dll
> #1 0x77c09bc6 in strerror () from C:\WINDOWS\system32\msvcrt.dll
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> (gdb)
Roy,
This stack trace does not reveal much.
Is there any MinGW gcc user that has successfully built and run
qemu.git? Which version/architecture of Windows and which MinGW
version?
Stefan
next prev parent reply other threads:[~2011-08-16 12:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-08 0:30 [Qemu-devel] Compilation error of coroutine-win32.c with gcc version 3.4.5 (mingw-vista special r3) Roy Tam
2011-08-08 6:21 ` Stefan Hajnoczi
2011-08-08 6:36 ` Roy Tam
2011-08-16 7:38 ` Roy Tam
2011-08-16 12:45 ` Stefan Hajnoczi [this message]
2011-08-16 18:50 ` Paolo Bonzini
2011-08-17 17:20 ` Blue Swirl
2011-08-17 17:23 ` Stefan Hajnoczi
2011-08-17 17:26 ` Paolo Bonzini
2011-08-18 3:36 ` Roy Tam
2011-08-20 8:41 ` Stefan Weil
2011-08-23 7:39 ` Roy Tam
2011-09-07 7:44 ` Roy Tam
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='CAJSP0QU+uSbb4wukesaf=OFnkgvvsfoNp5Mc2MHb0TNozv6LEg@mail.gmail.com' \
--to=stefanha@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=roytam@gmail.com \
/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).