h-vetinari opened a new issue, #44448: URL: https://github.com/apache/arrow/issues/44448
### Describe the bug, including details regarding any error messages, version, and platform. I'm [testing](https://github.com/conda-forge/arrow-cpp-feedstock/pull/1432) 18.0.0rc0 in conda-forge, and getting a compilation error on osx-arm64 (which for us is cross-compiled from osx-64). It seems something is going wrong in the following code https://github.com/apache/arrow/blob/5d7987b94a4389e098461ae013522a64eb2fe6fe/cpp/src/arrow/util/simd.h#L34-L39 in the sense that this tries to include `<nmmintrin.h>` in cross-compilation (probably the `HAVE_RUNTIME_X` is based on the architecture of the agent?), despite the target architecture having no support for that. ``` [124/491] Building CXX object src/arrow/CMakeFiles/arrow_util.dir/util/utf8.cc.o FAILED: src/arrow/CMakeFiles/arrow_util.dir/util/utf8.cc.o $BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-clang++ -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_WITH_TIMING_TESTS -DBOOST_ALL_DYN_LINK -DGFLAGS_IS_A_DLL=0 -DGLOG_USE_GFLAGS -DGLOG_USE_GLOG_EXPORT -DURI_STATIC_BUILD -I$SRC_DIR/cpp/build/src -I$SRC_DIR/cpp/src -I$SRC_DIR/cpp/src/generated -fno-aligned-new -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/apache-arrow-18.0.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D_LIBCPP_DISABLE_AVAILABILITY -Qunused-arguments -fcolor-diagnostics -Wall -Wno-unknown-warning-option -Wno-pass-failed -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/apache-arrow-18.0.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D_LIBCPP_DISABLE_AVAILABILITY -O3 -DND EBUG -O2 -std=c++17 -isysroot /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=11.0 -fPIC -MD -MT src/arrow/CMakeFiles/arrow_util.dir/util/utf8.cc.o -MF src/arrow/CMakeFiles/arrow_util.dir/util/utf8.cc.o.d -o src/arrow/CMakeFiles/arrow_util.dir/util/utf8.cc.o -c $SRC_DIR/cpp/src/arrow/util/utf8.cc In file included from $SRC_DIR/cpp/src/arrow/util/utf8.cc:28: In file included from $SRC_DIR/cpp/src/arrow/util/utf8_internal.h:33: In file included from $SRC_DIR/cpp/src/arrow/util/simd.h:38: $BUILD_PREFIX/lib/clang/18/include/nmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture" 14 | #error "This header is only meant to be used on x86 and x64 architecture" | ^ ``` Last relevant-looking change in that area is https://github.com/apache/arrow/commit/87d647742b9ae46e86050ac7361d6c3e75613a47 CC @zanmato1984 @pitrou ### Component(s) C++, Packaging -- 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]
