telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.23k stars 5.21k forks source link

tdesktop build dockerfile does not build on aarch64 #26768

Closed 4e554c4c closed 6 months ago

4e554c4c commented 1 year ago

Steps to reproduce

On an aarch64 machine:

  1. Template dockerfile, found in https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/build/docker/centos_env/Dockerfile
  2. Build dockerfile with sudo DOCKER_BUILDKIT=1 docker build -t tdesktop:centos_env Dockerfile

Expected behaviour

Dockerfile should build

Actual behaviour

Dockerfile fails to build

[+] Building 5.0s (7/146)                                                                                                                               docker:default
 => [internal] load build definition from Dockerfile                                                                                                              0.0s
 => => transferring dockerfile: 31.25kB                                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                                                 0.0s
 => => transferring context: 2B                                                                                                                                   0.0s
 => resolve image config for docker.io/docker/dockerfile:1                                                                                                        1.0s
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021                                   0.0s
 => [internal] load metadata for docker.io/library/centos:7                                                                                                       0.9s
 => CACHED [builder-base 1/6] FROM docker.io/library/centos:7@sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4                             0.0s
 => ERROR [builder-base 2/6] RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm  && yum -y install https://packages.endpo  2.9s
------                                                                                                                                                                 
 > [builder-base 2/6] RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm     && yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm    && yum -y install centos-release-scl    && yum -y install git rh-python38-python-pip rh-python38-python-devel       autoconf automake libtool patch gperf flex      fontconfig-devel freetype-devel libX11-devel at-spi2-core-devel alsa-lib-devel      pulseaudio-libs-devel mesa-libGL-devel mesa-libEGL-devel mesa-libgbm-devel      libdrm-devel vulkan-devel libva-devel libvdpau-devel boost169-devel fmt-devel       gtk3-devel perl-XML-Parser pkgconfig bison yasm file which xorg-x11-util-macros         devtoolset-10-make devtoolset-10-gcc devtoolset-10-gcc-c++      devtoolset-10-binutils llvm-toolset-7.0 llvm-toolset-7.0-clang-devel        llvm-toolset-7.0-llvm-devel     && yum clean all:
0.195 Loaded plugins: fastestmirror, ovl
1.547 Examining /var/tmp/yum-root-IKkfdl/epel-release-latest-7.noarch.rpm: epel-release-7-14.noarch
1.548 Marking /var/tmp/yum-root-IKkfdl/epel-release-latest-7.noarch.rpm to be installed
1.548 Resolving Dependencies
1.549 --> Running transaction check
1.549 ---> Package epel-release.noarch 0:7-14 will be installed
1.690 --> Finished Dependency Resolution
1.692 
1.692 Dependencies Resolved
1.692 
1.692 ================================================================================
1.692  Package          Arch       Version    Repository                         Size
1.692 ================================================================================
1.692 Installing:
1.692  epel-release     noarch     7-14       /epel-release-latest-7.noarch      25 k
1.692 
1.692 Transaction Summary
1.692 ================================================================================
1.692 Install  1 Package
1.692 
1.692 Total size: 25 k
1.692 Installed size: 25 k
1.692 Downloading packages:
1.693 Running transaction check
1.693 Running transaction test
1.695 Transaction test succeeded
1.695 Running transaction
1.702   Installing : epel-release-7-14.noarch                                     1/1 
1.707   Verifying  : epel-release-7-14.noarch                                     1/1 
1.721 
1.721 Installed:
1.721   epel-release.noarch 0:7-14                                                    
1.721 
1.721 Complete!
1.840 Loaded plugins: fastestmirror, ovl
2.869 Examining /var/tmp/yum-root-IKkfdl/endpoint-repo.x86_64.rpm: endpoint-repo-1.10-1.x86_64
2.869 Cannot add package https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm to transaction. Not a compatible architecture: x86_64
2.869 Error: Nothing to do
------
Dockerfile:9
--------------------
   8 |     
   9 | >>> RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
  10 | >>>  && yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm \
  11 | >>>  && yum -y install centos-release-scl \
  12 | >>>  && yum -y install git rh-python38-python-pip rh-python38-python-devel \
  13 | >>>      autoconf automake libtool patch gperf flex \
  14 | >>>      fontconfig-devel freetype-devel libX11-devel at-spi2-core-devel alsa-lib-devel \
  15 | >>>      pulseaudio-libs-devel mesa-libGL-devel mesa-libEGL-devel mesa-libgbm-devel \
  16 | >>>      libdrm-devel vulkan-devel libva-devel libvdpau-devel boost169-devel fmt-devel \
  17 | >>>      gtk3-devel perl-XML-Parser pkgconfig bison yasm file which xorg-x11-util-macros \
  18 | >>>      devtoolset-10-make devtoolset-10-gcc devtoolset-10-gcc-c++ \
  19 | >>>      devtoolset-10-binutils llvm-toolset-7.0 llvm-toolset-7.0-clang-devel \
  20 | >>>      llvm-toolset-7.0-llvm-devel \
  21 | >>>  && yum clean all
  22 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \t&& yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm \t&& yum -y install centos-release-scl \t&& yum -y install git rh-python38-python-pip rh-python38-python-devel \t\tautoconf automake libtool patch gperf flex \t\tfontconfig-devel freetype-devel libX11-devel at-spi2-core-devel alsa-lib-devel \t\tpulseaudio-libs-devel mesa-libGL-devel mesa-libEGL-devel mesa-libgbm-devel \t\tlibdrm-devel vulkan-devel libva-devel libvdpau-devel boost169-devel fmt-devel \t\tgtk3-devel perl-XML-Parser pkgconfig bison yasm file which xorg-x11-util-macros \t\tdevtoolset-10-make devtoolset-10-gcc devtoolset-10-gcc-c++ \t\tdevtoolset-10-binutils llvm-toolset-7.0 llvm-toolset-7.0-clang-devel \t\tllvm-toolset-7.0-llvm-devel \t&& yum clean all" did not complete successfully: exit code: 1

relevant log line:

Cannot add package https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm to transaction. Not a compatible architecture: x86_64
Error: Nothing to do

Operating system

Fedora Asahi Remix (Linux)

Version of Telegram Desktop

source

Installation source

Other (unofficial) source

Crash ID

No response

Logs

No response

ilya-fedin commented 1 year ago

This is expected. Someone should add aarch64 support.

github-actions[bot] commented 7 months ago

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!