You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "semen-nazarenko83 (via GitHub)" <gi...@apache.org> on 2026/06/18 22:25:06 UTC

[I] [C++] Compilation error xsimd/xsimd.hpp no such file or directory [arrow]

semen-nazarenko83 opened a new issue, #50222:
URL: https://github.com/apache/arrow/issues/50222

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   When included into another project via FetchContent_Declare() Apache Arrow produces error:
   `xsimd/xsimd.hpp: No such file or directory`
   Investigation showed that xsimd dependency in Apache Arrow is processed incorrectly. Here is the patch which fixes the error:
   ```
   diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake
   index bcbf2e4645..c837899400 100644
   --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
   +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
   @@ -2834,7 +2834,8 @@ macro(build_xsimd)
                          URL_HASH "SHA256=${ARROW_XSIMD_BUILD_SHA256_CHECKSUM}"
                          CMAKE_ARGS ${XSIMD_CMAKE_ARGS})
    
   -  set(XSIMD_INCLUDE_DIR "${XSIMD_PREFIX}/include")
   +  ExternalProject_Get_Property(xsimd_ep SOURCE_DIR)
   +  set(XSIMD_INCLUDE_DIR "${SOURCE_DIR}/include")
      # The include directory must exist before it is referenced by a target.
      file(MAKE_DIRECTORY "${XSIMD_INCLUDE_DIR}")
   ```
   
   ### 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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] Compilation error xsimd/xsimd.hpp no such file or directory [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd closed issue #50222: [C++] Compilation error xsimd/xsimd.hpp no such file or directory
URL: https://github.com/apache/arrow/issues/50222


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] Compilation error xsimd/xsimd.hpp no such file or directory [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #50222:
URL: https://github.com/apache/arrow/issues/50222#issuecomment-4747184077

   Let's migrate to `FetchContent` from `ExternalProject`.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] Compilation error xsimd/xsimd.hpp no such file or directory [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #50222:
URL: https://github.com/apache/arrow/issues/50222#issuecomment-4894247850

   Issue resolved by pull request 50303
   https://github.com/apache/arrow/pull/50303


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org