kou commented on PR #39622:
URL: https://github.com/apache/arrow/pull/39622#issuecomment-1925608175
It seems that `arm64-linux` on aarch64 is processed as cross compiling...
And guessed compiler command names (`aarch64-linux-gnu-{gcc,g++}`) are wrong
(`aarch64-redhat-linux-{gcc,g++}` exist).
I think that this is a vcpkg problem but I can't find which commit
introduced this... Here is a workaround (this still use cross-compiling but I
think that we should not use cross compiling):
```diff
diff --git a/ci/docker/python-wheel-manylinux.dockerfile
b/ci/docker/python-wheel-manylinux.dockerfile
index 3ce32726bf..85290cfb7b 100644
--- a/ci/docker/python-wheel-manylinux.dockerfile
+++ b/ci/docker/python-wheel-manylinux.dockerfile
@@ -69,6 +69,11 @@ ENV CMAKE_BUILD_TYPE=${build_type} \
VCPKG_DEFAULT_TRIPLET=${arch_short}-linux-static-${build_type} \
VCPKG_FEATURE_FLAGS="manifests"
+RUN if [ "${arch_short}" = "arm64" ]; then \
+ ln -s $(which gcc) $(dirname $(which gcc))/aarch64-linux-gnu-gcc && \
+ ln -s $(which g++) $(dirname $(which g++))/aarch64-linux-gnu-g++; \
+ fi
+
RUN arrow/ci/scripts/install_vcpkg.sh ${VCPKG_ROOT} ${vcpkg}
ENV PATH="${PATH}:${VCPKG_ROOT}"
```
--
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]