[ 
https://issues.apache.org/jira/browse/ARROW-17578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17598676#comment-17598676
 ] 

Kouhei Sutou commented on ARROW-17578:
--------------------------------------

We need to focus on the following message:

https://github.com/ursacomputing/crossbow/runs/8104457062?check_suite_focus=true#step:5:1897

{noformat}
#4 9.317 The following packages have unmet dependencies:
#4 9.411  python3-dev : Depends: python3-distutils (>= 3.10.6-1~) but 
3.10.4-0ubuntu1 is to be installed
#4 9.415 E: Unable to correct problems, you have held broken packages.
{noformat}

This is caused by {{ppa:ubuntu-toolchain-r/volatile}} 
https://github.com/apache/arrow/blob/master/ci/docker/ubuntu-22.04-cpp.dockerfile#L118
 . It provides {{python3-dev=3.10.6-1~22.04}} but doesn't provide 
{{python3-distutils=3.10.6-1~22.04}}.

It seems that Ubuntu 22.04 provides {{gcc-12}}: 
https://packages.ubuntu.com/search?keywords=gcc-12

How about using the system {{gcc-12}} instead of {{gcc-12}} provided by 
{{ppa:ubuntu-toolchain-r/volatile}}?

{noformat}
diff --git a/ci/docker/ubuntu-22.04-cpp.dockerfile 
b/ci/docker/ubuntu-22.04-cpp.dockerfile
index 05aca53151..514e314c40 100644
--- a/ci/docker/ubuntu-22.04-cpp.dockerfile
+++ b/ci/docker/ubuntu-22.04-cpp.dockerfile
@@ -112,7 +112,7 @@ RUN if [ "${gcc_version}" = "" ]; then \
           g++ \
           gcc; \
     else \
-      if [ "${gcc_version}" -gt "11" ]; then \
+      if [ "${gcc_version}" -gt "12" ]; then \
           apt-get update -y -q && \
           apt-get install -y -q --no-install-recommends 
software-properties-common && \
           add-apt-repository ppa:ubuntu-toolchain-r/volatile; \
{noformat}

> [CI] Nightly test-r-gcc-12 fails to build
> -----------------------------------------
>
>                 Key: ARROW-17578
>                 URL: https://issues.apache.org/jira/browse/ARROW-17578
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Continuous Integration
>            Reporter: Raúl Cumplido
>            Priority: Major
>              Labels: Nightly
>
> [test-r-gcc-12|https://github.com/ursacomputing/crossbow/runs/8104457062?check_suite_focus=true]
>  has been failing to build since the 18th of August. The current error log is:
> {code:java}
>  #4 ERROR: executor failed running [/bin/bash -o pipefail -c apt-get update 
> -y &&     apt-get install -y         dirmngr         apt-transport-https      
>    software-properties-common &&     wget -qO- 
> https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc |         
> tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc &&     add-apt-repository 
> 'deb https://cloud.r-project.org/bin/linux/ubuntu '$(lsb_release 
> -cs)'-cran40/' &&     apt-get install -y         r-base=${r}*         
> r-recommended=${r}*         libxml2-dev         libgit2-dev         
> libssl-dev         clang         clang-format         clang-tidy         
> texlive-latex-base         locales         python3         python3-pip        
>  python3-dev &&     locale-gen en_US.UTF-8 &&     apt-get clean &&     rm -rf 
> /var/lib/apt/lists/*]: exit code: 100
> ------
>  > [ 2/17] RUN apt-get update -y &&     apt-get install -y         dirmngr    
>      apt-transport-https         software-properties-common &&     wget -qO- 
> https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc |         
> tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc &&     add-apt-repository 
> 'deb https://cloud.r-project.org/bin/linux/ubuntu '$(lsb_release 
> -cs)'-cran40/' &&     apt-get install -y         r-base=4.2*         
> r-recommended=4.2*         libxml2-dev         libgit2-dev         libssl-dev 
>         clang         clang-format         clang-tidy         
> texlive-latex-base         locales         python3         python3-pip        
>  python3-dev &&     locale-gen en_US.UTF-8 &&     apt-get clean &&     rm -rf 
> /var/lib/apt/lists/*:
> ------
> executor failed running [/bin/bash -o pipefail -c apt-get update -y &&     
> apt-get install -y         dirmngr         apt-transport-https         
> software-properties-common &&     wget -qO- 
> https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc |         
> tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc &&     add-apt-repository 
> 'deb https://cloud.r-project.org/bin/linux/ubuntu '$(lsb_release 
> -cs)'-cran40/' &&     apt-get install -y         r-base=${r}*         
> r-recommended=${r}*         libxml2-dev         libgit2-dev         
> libssl-dev         clang         clang-format         clang-tidy         
> texlive-latex-base         locales         python3         python3-pip        
>  python3-dev &&     locale-gen en_US.UTF-8 &&     apt-get clean &&     rm -rf 
> /var/lib/apt/lists/*]: exit code: 100
> Service 'ubuntu-r-only-r' failed to build : Build failed {code}
> I can't reproduce locally (I get a different error) but could it be that we 
> are pulling an outdated upstream docker image?
> I don't think the changes introduced on the first build failure are relevant 
> to this failure but here they are:
> https://github.com/apache/arrow/compare/6e8f0e4d327180375dda53287a5a600ba139ce3d...a1c3d57af514d4a84e753ff51df8e563135ee55e
> cc~ [~kou] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to