tomjakubowski opened a new issue, #44384: URL: https://github.com/apache/arrow/issues/44384
### Describe the bug, including details regarding any error messages, version, and platform. I am supporting a bundled build of libarrow in perspective's conda-forge feedstock. On the conda-forge arm64 cross-compiling builders, `/usr/bin/libtool` is broken due to some SDK issues ( [full logs](https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1050424&view=logs&jobId=7df89df7-19f1-5ccc-b210-32c1d05c0f56&j=7df89df7-19f1-5ccc-b210-32c1d05c0f56&t=c5e4c004-2534-57b9-b739-c5013de31afa) ``` xcodebuild: error: SDK "/Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk" cannot be located. libtool: error: sh -c '/Applications/Xcode_15.2.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -find libtool 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory) xcode-select: Failed to locate 'libtool', requesting installation of command line developer tools. ``` There is some logic in BuildUtils.cmake to locate libtool for bundling using `find_program(libtool HINTS /usr/bin ...)`, which then fails: ``` CMake Error at /Users/runner/miniforge3/conda-bld/perspective_1728519868797/work/rust/target/aarch64-apple-darwin/release/build/perspective-server-a7d183a58ee31af1/out/build/arrow-src/cpp/cmake_modules/BuildUtils.cmake:116 (message): libtool found appears to be the incompatible GNU libtool: /usr/bin/libtool ``` In this build environment, the `LIBTOOL` environment variable is set by conda to the name of a suitable Apple libtool on the PATH. I would propose that if `LIBTOOL` is set in the environment, that BuildUtils.cmake ought to use it instead of calling `find_program`. To unblock us, I made this commit on top of 17.0.0 https://github.com/ProspectiveCo/arrow/commit/273a22873b3bdf2f88631441ba8fd80bc7a0dbf4. I'll use that as the basis for a PR to close this issue. I am new to arrow's build system and would be glad to hear better ideas of how to address this. ### 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-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org