[cfe-dev] Building clang on Windows targeting gcc problem

Yaron Keren yaron.keren at gmail.com
Fri May 1 05:05:22 PDT 2015


You're completely right that supporting mingw64 is better than supporting
than mingw.org. With open source projects, someone needs to push
http://reviews.llvm.org/D5268 through the process until commit. This takes
time... I hope to get to this someday.


2015-05-01 12:32 GMT+03:00 Edward Diener <eldlistmailingz at tropicsoft.com>:

> On 4/30/2015 11:05 PM, Yaron Keren wrote:
>
>> Run "g++ -v -E -" to get the include paths.
>>
>
> Thanks !
>
> Any chance that clang can be changed in the near future to understand the
> mingw64 directory structure as well as mingw. After all mingw64 on Windows
> is just as, if not more, popular than mingw and comes out with updates to
> the latest vesions of gcc well before mingw.
>
>
>>
>>
>> 2015-05-01 4:55 GMT+03:00 Edward Diener <eldlistmailingz at tropicsoft.com
>> <mailto:eldlistmailingz at tropicsoft.com>>:
>>
>>     On 4/30/2015 9:33 PM, Yaron Keren wrote:
>>
>>         clang does not know the mingw64 directory structure. There is a
>>         patch in
>>         Phabricator regarding this:
>>
>>         http://reviews.llvm.org/D5268
>>
>>
>>     I do not understand this patch, or Phabricator. I do not understand
>>     where the patch is on the url listed or to what it is supposed to be
>>     applied.
>>
>>
>>         or you can manually use -isystem.
>>
>>
>>     What are the -isystem paths I need for mingw64 to compile using
>>     clang successfully ?
>>
>>
>>
>>         2015-05-01 3:46 GMT+03:00 Edward Diener
>>         <eldlistmailingz at tropicsoft.com
>>         <mailto:eldlistmailingz at tropicsoft.com>
>>         <mailto:eldlistmailingz at tropicsoft.com
>>         <mailto:eldlistmailingz at tropicsoft.com>>>:
>>
>>              I am using cmake and ninja to build clang on Windows
>>         targeting gcc.
>>
>>              If I use the latest release of mingw/gcc, which is 4.8.1-4
>>              everything works properly.
>>
>>              If I use the latest release of mingw64/gcc, which is
>>         4.9.2-2 the
>>              build completes buit when I try to compile source code I get:
>>
>>              fatal error: 'cstddef' file not found
>>
>>              Is there some reason why on Windows mingw works but mingw64
>>         does not
>>              ? Naturally I would want to use the latest gcc release on
>>         Windows
>>              rather than an earlier one.
>>
>>
>>
>>     _______________________________________________
>>     cfe-dev mailing list
>>     cfe-dev at cs.uiuc.edu
>>     <mailto:cfe-dev at cs.uiuc.edu>
>>     http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150501/d9fc7799/attachment.html>


More information about the cfe-dev mailing list