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

   It seems that Ubuntu 24.04 LTS will ship GCC 14: 
https://packages.ubuntu.com/search?keywords=gcc-14
   
   How about testing Apache Arrow C++ with Ubuntu 24.04 for now something like 
the following?
   
   ```diff
   diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
   index cfc333c6b2..6e85d5b95e 100644
   --- a/dev/tasks/tasks.yml
   +++ b/dev/tasks/tasks.yml
   @@ -1055,7 +1055,7 @@ tasks:
        params:
          image: conda-cpp-valgrind
    
   -{% for ubuntu_version in ["20.04", "22.04"] %}
   +{% for ubuntu_version in ["20.04", "22.04", "24.04"] %}
      test-ubuntu-{{ ubuntu_version }}-cpp:
        ci: github
        template: docker-tests/github.linux.yml
   @@ -1073,6 +1073,15 @@ tasks:
            UBUNTU: 20.04
          image: ubuntu-cpp-bundled
    
   +  test-ubuntu-24.04-cpp-gcc-14:
   +    ci: github
   +    template: docker-tests/github.linux.yml
   +    params:
   +      env:
   +        UBUNTU: "24.04"
   +      flags: -e CC=gcc-14 -e CXX=g++-14
   +      image: ubuntu-cpp
   +
      test-skyhook-integration:
        ci: github
        template: docker-tests/github.linux.yml
   diff --git a/docker-compose.yml b/docker-compose.yml
   index aec685775a..26a42fa139 100644
   --- a/docker-compose.yml
   +++ b/docker-compose.yml
   @@ -373,7 +373,7 @@ services:
        #   docker-compose run --rm ubuntu-cpp
        # Parameters:
        #   ARCH: amd64, arm64v8, s390x, ...
   -    #   UBUNTU: 20.04, 22.04
   +    #   UBUNTU: 20.04, 22.04, 24.04
        image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cpp
        build:
          context: .
   ```
   
   I think that 
https://github.com/r-hub/containers/blob/main/containers/ubuntu-next/Dockerfile 
will use Ubuntu 24.04 after Ubuntu 24.04 is released. Then we can use it to 
test with GCC 14 (libstdc++ 14).


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