[llvm-bugs] [Bug 31794] New: The Clang API cannot parse the MinGW 5.3.0 headers when not skipping function bodies
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 29 12:48:04 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31794
Bug ID: 31794
Summary: The Clang API cannot parse the MinGW 5.3.0 headers
when not skipping function bodies
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: dpldobrev at protonmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
I am trying to parse the MinGW headers included in Qt 5.8 for Windows MinGW. I
get tens of errors the built-in functions cannot be found. Let me list a few
examples:
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(41,10):
error: use of undeclared identifier '__builtin_ia32_bsrsi'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(104,1):
error: definition of builtin function '__rdtsc'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(122,10):
error: use of undeclared identifier '__builtin_ia32_rolqi'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(130,10):
error: use of undeclared identifier '__builtin_ia32_rolhi'; did you mean
'__builtin_ia32_korhi'?
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(146,10):
error: use of undeclared identifier '__builtin_ia32_rorqi'; did you mean
'__builtin_ia32_korhi'?
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\ia32intrin.h(154,10):
error: use of undeclared identifier '__builtin_ia32_rorhi'; did you mean
'__builtin_ia32_korhi'?
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\xmmintrin.h(131,19):
error: use of undeclared identifier '__builtin_ia32_addss'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\xmmintrin.h(137,19):
error: use of undeclared identifier '__builtin_ia32_subss'
C:\Qt\Qt5.8.0\Tools\mingw530_32\lib\gcc\i686-w64-mingw32\5.3.0\include\xmmintrin.h(143,19):
error: use of undeclared identifier '__builtin_ia32_mulss'
You can see the code I use at
https://github.com/mono/CppSharp/blob/master/src/CppParser/Parser.cpp#L3915 .
This bug is a real problem so please ask for any further information which
might help you fix it faster.
Thank you.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170129/db56d05d/attachment.html>
More information about the llvm-bugs
mailing list