kou commented on issue #2497:
URL: https://github.com/apache/arrow-adbc/issues/2497#issuecomment-2632789910

   I agree with this is an upstream problem.
   
   How about specifying the latest LLVM major version explicitly as a 
workaround? 
   
   ```diff
   diff --git a/ci/docker/cpp-clang-latest.dockerfile 
b/ci/docker/cpp-clang-latest.dockerfile
   index a1b76a552..731c60343 100644
   --- a/ci/docker/cpp-clang-latest.dockerfile
   +++ b/ci/docker/cpp-clang-latest.dockerfile
   @@ -20,14 +20,28 @@ ARG GO
    
    RUN export DEBIAN_FRONTEND=noninteractive && \
        apt-get update -y && \
   -    apt-get install -y curl gnupg && \
   -    echo "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main" \
   +    apt-get install -y curl gnupg jq && \
   +    # llvmorg-19.1.7 ->
   +    # 19.1.7 ->
   +    # 19
   +    latest_llvm_major_version=$( \
   +      curl https://api.github.com/repos/llvm/llvm-project/releases/latest | 
\
   +        jq -r .tag_name | \
   +        cut -d- -f2 | \
   +        cut -d. -f1) && \
   +    echo "deb http://apt.llvm.org/bookworm/ 
llvm-toolchain-bookworm-${latest_llvm_major_version} main" \
             > /etc/apt/sources.list.d/llvm.list && \
   -    echo "deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm 
main" \
   +    echo "deb-src http://apt.llvm.org/bookworm/ 
llvm-toolchain-bookworm-${latest_llvm_major_version} main" \
             >> /etc/apt/sources.list.d/llvm.list && \
        curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
        apt-get update -y && \
   -    apt-get install -y clang libc++abi-dev libc++-dev libomp-dev && \
   +    apt-get install -y \
   +      clang-${latest_llvm_major_version} \
   +      libc++abi-${latest_llvm_major_version}-dev \
   +      libc++-${latest_llvm_major_version}-dev \
   +      libomp-${latest_llvm_major_version}-dev && \
   +    ln -s clang clang-${latest_llvm_major_version} && \
   +    ln -s clang++ clang++-${latest_llvm_major_version} && \
        apt-get clean
    
    RUN export DEBIAN_FRONTEND=noninteractive && \
   ```


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