<div class="gmail_quote">2011/9/26 陈晓宇 <span dir="ltr"><<a href="mailto:xychen0921@gmail.com" target="_blank">xychen0921@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks for your reply. The problem is we were not using pure llvmgcc(otherwise we should be able to use gcc4.6+dragonegg, I think), and a lot changes were made to llvmgcc for our own purpose. If we switch our compiler to clang, there will be a lot of manual patch work... Maybe the MinGW patch for gcc4.4 can be useful for me.</blockquote>

<div><br>GCC 4.2 is unusable for Windows x64. 4.3 is buggy, 4.4 is buggy but workable. I think you'll have better luck using a standard released compiler (implying manual patchwork, I hope you mean to your codebase, not Clang's).<br>
<br>MinGW-w64 + GCC's older than 4.4 is a no-go. Sorry.<br><br>Ruben<br><br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div>2011/9/26 Ruben Van Boxem <span dir="ltr"><<a href="mailto:vanboxem.ruben@gmail.com" target="_blank">vanboxem.ruben@gmail.com</a>></span><br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div></div><div>2011/9/26 陈晓宇 <span dir="ltr"><<a href="mailto:xychen0921@gmail.com" target="_blank">xychen0921@gmail.com</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I was building llvmgcc using MinGW64 and met following error. Any idea how to get rid of this problem?</div><div><br></div><div>/home/xchen/MinGWSrcLLVM/llvmgcc/build/./gcc/xgcc -B/home/xchen/MinGWSrcLLVM/llv</div><div>





mgcc/build/./gcc/ -L/home/xchen/MinGWSrcLLVM/llvmgcc/build/x86_64-w64-mingw32/wi</div><div>nsup/mingw -L/home/xchen/MinGWSrcLLVM/llvmgcc/build/x86_64-w64-mingw32/winsup/w3</div><div>2api/lib -isystem /home/xchen/MinGWSrcLLVM/llvmgcc/winsup/mingw/include -isystem</div>





<div> /home/xchen/MinGWSrcLLVM/llvmgcc/winsup/w32api/include -B/home/xchen/MinGWSrcLL</div><div>VM/myprefix/x86_64-w64-mingw32/bin/ -B/home/xchen/MinGWSrcLLVM/myprefix/x86_64-w</div><div>64-mingw32/lib/ -isystem /home/xchen/MinGWSrcLLVM/myprefix/x86_64-w64-mingw32/in</div>





<div>clude -isystem /home/xchen/MinGWSrcLLVM/myprefix/x86_64-w64-mingw32/sys-include</div><div>-O2 -O2 -g -O2  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -DNATIVE_CROSS   -W -Wall -</div><div>Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition</div>





<div>-isystem ./include  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I.</div><div>./../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../libdecnumber -I/hom</div><div>e/xchen/llvm2.7-obj/include -I/home/xchen/llvm2.7/include  -g0 -finhibit-size-di</div>





<div>rective -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-</div><div>toplevel-reorder -Dinhibit_libc -c -o crtbegin.o \</div><div>        ../../gcc/config/i386/cygming-crtbegin.c</div><div>../../gcc/config/i386/cygming-crtbegin.c:1: error: -malign-double makes no sense</div>





<div> in the 64bit mode</div><div>make[1]: *** [crtbegin.o] Error 1</div><div>make[1]: Leaving directory `/home/xchen/MinGWSrcLLVM/llvmgcc/build/gcc'</div><div>make: *** [all-gcc] Error 2</div><div><br></div><div><br>





</div><div><div>../llvmgcc/configure --prefix=/home/xchen/llvmgcc-install --enable-llvm=/home/xchen/llvm2.7-obj --enable-languages=c,c++ --disable-threads --program-prefix=llvm-  --disable-bootstrap --enable-checking=release --disable-shared --disable-nls --disable-c-mbchar --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --disable-multilib</div>




</div></blockquote></div></div><div><br>If I'm not mistaken, llvm-gcc is based on GCC 4.2. MinGW-w64 only started existing around GCC 4.3, with a working implementation at GCC 4.4 (with lots of local patches required) and a vanilla (unpatched) implementation at GCC 4.5+. I think you're currently out of luck here. Why not try Clang itself (if you don't need fortran or any other non-C family language of course)?<br>




<br>Ruben<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>
</div><div><br></div><div><br></div><div>Thanks & Regards</div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>