Hello,
While attempting to compile the CRT according to the instructions on
sourceforge [1], I ran into a compile error:
In file included from
/usr/local/lib/gcc/i386-w64-mingw32/8.0.0/include/x86intrin.h:74,
from /usr/local/i386-w64-mingw32/include/intrin.h:73,
from ../intrincs/rdtsc.c:7:
/usr/local/lib/gcc/i386-w64-mingw32/8.0.0/include/xsaveintrin.h:60:1:
error: conflicting types for ‘_xgetbv’
_xgetbv (unsigned int __A)
^~~~~~~
In file included from /usr/local/i386-w64-mingw32/include/intrin.h:41,
from ../intrincs/rdtsc.c:7:
/usr/local/i386-w64-mingw32/include/psdk_inc/intrin-impl.h:1784:18:
note: previous definition of ‘_xgetbv’ was here
unsigned __int64 _xgetbv(unsigned int index)
^~~~~~~
The problem seems to be that mingw's intrin-impl.h defines _xgetbv,
which is included in recent gcc. Since gcc doesn't provide
__has_builtin, we redefine this type. I don't know what the usual method
of dealing with this is, if there is one. Could someone illuminate me as
to the correct way to fix this? Alternatively, is there something wrong
with my build setup?
[1]
https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/?viewmonth=201704
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public