<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111512>111512</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Windows on Arm: Clang 17 or later compiler crashes when building Arm Compute Library
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
morgolock
</td>
</tr>
</table>
<pre>
Hi,
I've tried various version of the prebuilt binaries
- LLVM-17.0.0-rc2-woa64.exe
- LLVM-18.1.0-woa64.exe
- LLVM-18.1.3-woa64.exe
- LLVM-18.1.8-woa64.exe
- LLVM-19.1.1-woa64.exe
Unfortunately they all have problems: versions 17 and 18 crash with the following error: https://github.com/llvm/llvm-project/issues/108976
Version 19.1.1 gives the following error:
```
C:\Users\pabtel01\acl\ComputeLibrary>scons opencl=0 neon=1 os=windows examples=0 validation_tests=1 benchmark_examples=0 build=native arch=armv8a Werror=0 exceptions=1 standalone=1 openmp=0 cppthreads=1
scons: Reading SConscript files ...
Using compilers:
CC clang-cl
CXX clang-cl
scons: done reading SConscript files.
scons: Building targets ...
scons: `arm_compute' is up to date.
scons: `support' is up to date.
scons: `utils' is up to date.
scons: Nothing to be done for `include\BUILD.bazel'.
scons: `include\CL' is up to date.
scons: `include\half' is up to date.
scons: `include\libnpy' is up to date.
scons: `include\stb' is up to date.
create_version_file(["build\src\core\arm_compute_version.embed"], [])
clang-cl /Fobuild\src\core\GPUTarget.obj /c src\core\GPUTarget.cpp /TP -DARCH_ARM -Wextra -Wdisabled-optimization -Wformat=2 -Winit-self -Wstrict-overflow=2 -Wswitch-default -Woverloaded-virtual -Wformat-security -Wctor-dtor-privacy -Wsign-promo -Weffc++ -Wno-overlength-strings -march=armv8-a -Wno-ignored-attributes -DENABLE_FP32_KERNELS -DENABLE_QASYMM8_KERNELS -DENABLE_QASYMM8_SIGNED_KERNELS -DENABLE_QSYMM16_KERNELS -DENABLE_INTEGER_KERNELS -DENABLE_NHWC_KERNELS -DENABLE_NCHW_KERNELS /std:c++14 /EHa -Wno-c++98-compat -Wno-covered-switch-default -Wno-c++98-compat-pedantic -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-documentation -Wno-extra-semi-stmt -Wno-float-equal -Wno-implicit-int-conversion -Wno-documentation-pedantic -Wno-extra-semi -Wno-shadow-field-in-constructor -Wno-float-conversion -Wno-switch-enum -Wno-comma -Wno-implicit-float-conversion -Wno-deprecated-declarations -Wno-old-style-cast -Wno-zero-as-null-pointer-constant -Wno-inconsistent-missing-destructor-override -Wno-asm-operand-widths -O2 /nologo /DARM_COMPUTE_CPP_SCHEDULER=1 /DENABLE_NEON /DARM_COMPUTE_ENABLE_NEON /DARM_COMPUTE_CPU_ENABLED /DARM_COMPUTE_VERSION_MAJOR=38 /DARM_COMPUTE_VERSION_MINOR=0 /DARM_COMPUTE_VERSION_PATCH=0 /Iinclude /I. /Ibuild\build\src\core /Ibuild\src\core /Ibuild\src\core\NEON\kernels\arm_gemm /Isrc\core\NEON\kernels\arm_gemm /Ibuild\src\core\NEON\kernels\convolution\common /Isrc\core\NEON\kernels\convolution\common /Ibuild\src\core\NEON\kernels\convolution\winograd /Isrc\core\NEON\kernels\convolution\winograd /Ibuild\src\core\NEON\kernels\arm_conv\depthwise /Isrc\core\NEON\kernels\arm_conv\depthwise /Ibuild\src\core\NEON\kernels\arm_conv\pooling /Isrc\core\NEON\kernels\arm_conv\pooling /Ibuild\src\core\NEON\kernels\arm_conv /Isrc\core\NEON\kernels\arm_conv /Ibuild\src\core\NEON\kernels\assembly /Isrc\core\NEON\kernels\assembly /Ibuild\arm_compute\core\NEON\kernels\assembly /Iarm_compute\core\NEON\kernels\assembly /Ibuild\src\cpu\kernels\assembly /Isrc\cpu\kernels\assembly
error: value evaluated as 259 is out of range.
error: value evaluated as 279 is out of range.
error: value evaluated as 258 is out of range.
error: value evaluated as 278 is out of range.
4 errors generated.
scons: *** [build\src\core\GPUTarget.obj] Error 1
scons: building terminated because of errors.
C:\Users\pabtel01\acl\ComputeLibrary>clang-cl --version
clang version 19.1.1
Target: aarch64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
```
I've been unable to build Arm Compute Library on Windows with anything other than LLVM-16.0.6-woa64.exe. Can somebody please provide some direction or help?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykWFtz4joS_jXiRSWXL5jLAw_EwCS7SSabTIazT5QsNVhnZMkryTDMr9-SbRImgZkwp4oyuPvrqxqpW9RasVEAE5ReoXTWo7UrtJmU2my01OxbL9d8P7kWKM5QOEPhtH3eoHi4BeyMAI631AhdW7wFY4VWWK-xKwBXBvJaSIdzoagRYPGxBoJvb7_ekWgYhEFIDIvJTtNBP4Dv8DNgFERB-Ctm8ivm6BxzHERB9JbZPp_VWhtXK-pA7n0oe0ylxAXd-qB0LqG0KJke4rU4GmKqOI5GmBlqC7wTrmhSsNZS6p1QGwzGaOOFCucqL43iBYoXG-GKOg-YLlG8kHJ7-CKV0X8DcyheCGtrsCheROFoPBwcO_q1S3gbDN6ILdhzdo_l0CDsPs1r5t1Js2cLxqI0q2juQIYRSjPKJEqzTJdV7eBW5IaaPUrmlvmodQWKSZTMQqxAK5TMIqwtSmY7objeWQzfaVlJsA1kS6Xg1AmtVg6ssw08B8WKkppvq5-wvmw4SmaKOrEFTA0rUDKjptyOKF52Ic1CDN8ZVF5lq806qjiVWkHrSwWqrBogqypXGKC8AbZRN0H4zDwC5T5VT5lWlhlRObwWEiwOgqArCOv5TJeVkD5HSZfHLMNMUrUhTHaEv_7Cb0gvZrhWgM0ZW8Eb8JXPgAc6ajbgjnx5gaBBSE25Yu3ioHiIhcV1hZ3GnDo4Abd1VWnjPgKtnZD2t8B77YrGSY1zaANca-PlhWKy5oDS7Or55nYW5PQHSBQPT5h6hWa3H3HtFV9Qub5MQopcVfvLZKzLzwkwA9TBqtsHVn4lUTzyO2kctzWcZtYwlGZMG6_raME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