NEIL-smtg opened a new issue, #44896:
URL: https://github.com/apache/arrow/issues/44896
### Describe the bug, including details regarding any error messages,
version, and platform.
Recently, I encountered a few errors while building Arrow with the MSVC
arm64 compiler:
```
C:\gitP\apache\arrow\cpp\src\arrow\util\utf8_internal.h(242,29): error
C2039: 'make_sized_batch_t': is not a member of 'xsimd'
[C:\gitP\apache\arrow\cpp\build_arm64\src\arrow\arrow_util_static.vcxproj]
(compiling source file '../../../src/arrow/util/utf8.cc')
C:\gitP\apache\arrow\cpp\build_arm64\xsimd_ep\src\xsimd_ep-install\include\xsimd\memory\xsimd_aligned_allocator.hpp(29,11):
see declaration of 'xsimd'
C:\gitP\apache\arrow\cpp\src\arrow\util\utf8_internal.h(242,29): error
C2061: syntax error: identifier 'make_sized_batch_t'
[C:\gitP\apache\arrow\cpp\build_arm64\src\arrow\arrow_util_static.vcxproj]
(compiling source file '../../../src/arrow/util/utf8.cc')
...
```
This issue appears to occur only when using the arm64 compiler, as the code
compiles without issues with arm64ec.
Build log:
[arr.txt](https://github.com/user-attachments/files/17975510/arr.txt)
Repro steps:
1. Open x64 Native tools command prompt for VS 2022
2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files\Microsoft Visual
Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
3. git clone https://github.com/apache/arrow.git
4. mkdir apache\arrow\cpp\build_arm64 & cd apache\arrow\cpp\build_arm64
5. set _CL_=/DUSE_SOFT_INTRINSICS %_CL_%
6. cmake -G "Visual Studio 17 2022" -A arm64
-DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DARROW_BUILD_TESTS=OFF .. 2>&1
7. msbuild /m /p:Platform=arm64 /p:Configuration=Release arrow.sln
/t:Rebuild 2>&1
As a workaround, I have been predefining the following flags before building
the project: `/D _M_AMD64 /DUSE_SOFT_INTRINSICS /D__INTRIN_H_`
### Component(s)
C++
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]