kou commented on PR #44225:
URL: https://github.com/apache/arrow/pull/44225#issuecomment-2375299730

   It seems that conda stopped setting `AR` and `RANLIB`:
   
   
https://github.com/ursacomputing/crossbow/actions/runs/11037675823/job/30659122209#step:7:1151
   
   ```text
   + export 'ARROW_CMAKE_ARGS= -DCMAKE_AR= -DCMAKE_RANLIB='
   + ARROW_CMAKE_ARGS=' -DCMAKE_AR= -DCMAKE_RANLIB='
   ```
   
   How about the following?
   
   ```diff
   diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh
   index bc2bba915f..ac0ba2bf72 100755
   --- a/ci/scripts/cpp_build.sh
   +++ b/ci/scripts/cpp_build.sh
   @@ -34,7 +34,13 @@ if [ ! -z "${CONDA_PREFIX}" ] && [ 
"${ARROW_EMSCRIPTEN:-OFF}" = "OFF" ]; then
      echo -e "===\n=== Conda environment for build\n==="
      conda list
    
   -  export ARROW_CMAKE_ARGS="${ARROW_CMAKE_ARGS} -DCMAKE_AR=${AR} 
-DCMAKE_RANLIB=${RANLIB}"
   +  if [ -n "${AR}" ]; then
   +    ARROW_CMAKE_ARGS+=" -DCMAKE_AR=${AR}"
   +  fi
   +  if [ -n "${RANLIB}" ]; then
   +    ARROW_CMAKE_ARGS+=" -DCMAKE_RANLIB=${RANLIB}"
   +  fi
   +  export ARROW_CMAKE_ARGS
      export ARROW_GANDIVA_PC_CXX_FLAGS=$(echo | ${CXX} -E -Wp,-v -xc++ - 2>&1 
| grep '^ ' | awk '{print "-isystem;" substr($1, 1)}' | tr '\n' ';')
    elif [ -x "$(command -v xcrun)" ]; then
      export ARROW_GANDIVA_PC_CXX_FLAGS="-isysroot;$(xcrun --show-sdk-path)"
   ```
   
   The GHA conda-based jobs use cached conda environment. So the conda change 
isn't affected for now.


-- 
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]

Reply via email to