compiler-rt on Windows

Hi,

I am trying to compile/test compiler-rt for Windows (MinGW). I used Clang and GCC, and GCC had a lot more success here. I had to build with “mingw32-make -i” because the clear_cache_test is not written for Windows. I can’t seem to find any alternative to __clear_cache on Windows, so it might be a nonsensical test to run.

GCC test results:
87% tests passed, 12 tests failed out of 89

Total Test time (real) = 7.52 sec

The following tests FAILED:
2 - udivmodti4_test (Failed)
24 - enable_execute_stack_test (Not Run)
29 - floatuntisf_test (Failed)
34 - floattisf_test (Failed)
38 - fixunssfti_test (Failed)
42 - clear_cache_test (Not Run)
47 - clzti2_test (Failed)
53 - ffsti2_test (Failed)
64 - floatuntidf_test (Failed)
66 - ctzti2_test (Failed)
69 - floattidf_test (Failed)
74 - fixunsdfti_test (Failed)

Clang test results:
58% tests passed, 37 tests failed out of 89

Total Test time (real) = 10.71 sec

The following tests FAILED:
2 - udivmodti4_test (SEGFAULT)
6 - fixdfti_test (Failed)
8 - negti2_test (SEGFAULT)
9 - cmpti2_test (SEGFAULT)
10 - mulvti3_test (SEGFAULT)
12 - fixunsxfti_test (Failed)
14 - negvti2_test (SEGFAULT)
16 - ucmpti2_test (SEGFAULT)
19 - popcountti2_test (SEGFAULT)
23 - shlti3_test (SEGFAULT)
24 - enable_execute_stack_test (Not Run)
29 - floatuntisf_test (SEGFAULT)
31 - powixf2_test (SEGFAULT)
34 - floattisf_test (SEGFAULT)
38 - fixunssfti_test (Failed)
39 - parityti2_test (SEGFAULT)
42 - clear_cache_test (Not Run)
45 - multi3_test (SEGFAULT)
47 - clzti2_test (SEGFAULT)
53 - ffsti2_test (SEGFAULT)
55 - fixsfti_test (Failed)
56 - absvti2_test (SEGFAULT)
57 - ashrti3_test (SEGFAULT)
62 - addvti3_test (SEGFAULT)
64 - floatuntidf_test (SEGFAULT)
65 - umodti3_test (SEGFAULT)
66 - ctzti2_test (SEGFAULT)
67 - floatuntixf_test (SEGFAULT)
69 - floattidf_test (SEGFAULT)
70 - modti3_test (SEGFAULT)
73 - floattixf_test (SEGFAULT)
74 - fixunsdfti_test (Failed)
75 - subvti3_test (SEGFAULT)
80 - lshrti3_test (SEGFAULT)
83 - udivti3_test (SEGFAULT)
86 - fixxfti_test (Failed)
88 - divti3_test (SEGFAULT)

Put briefly, where do I start?

Thanks,

Ruben

PS: please reply-to-all, I’m only subscribed to cfe-dev