https://bugs.llvm.org/show_bug.cgi?id=43642

            Bug ID: 43642
           Summary: Incompatibility with mingw-w64 intrinsic headers
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Headers
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Created attachment 22652
  --> https://bugs.llvm.org/attachment.cgi?id=22652&action=edit
windows cmd error output screenshot

I have downloaded and installed clang 9.0 on windows 10 from
http://releases.llvm.org/download.html and mingw 8.1 from
https://sourceforge.net/projects/mingw-w64/

I tried to compile sdl 2.0.10 with clang + mingw. I obtained an error relating
to intrin.h/xsaveintrin.h. Specifically:

  function cannot return function type 'int (unsigned int)'
unsigned __int64 _xgetbv(unsigned int);

  note: expanded from macro 'xgetbv'
#define _xgetbv(A) __builtin_ia32_xgetbv((long long)(A))

I was able to compile successfully with llvm 8.0, so I assume it is a problem
on the llvm end rather than sdl2.

Please view attachment for a detailed screenshot of windows cmd error output.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to