Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./build-in-docker.sh fails on cross-compile request #161

Open
mdear opened this issue Feb 24, 2024 · 0 comments
Open

./build-in-docker.sh fails on cross-compile request #161

mdear opened this issue Feb 24, 2024 · 0 comments

Comments

@mdear
Copy link

mdear commented Feb 24, 2024

Any idea what's going on here?

I'm hoping to request a Docker build on an x86_64 build VM that creates a linuxdeploy-plugin-qt AppImage cross compiled for the aarch64 architecture. It appears this toolchain isn't able to do that, hence the "exec format error".

ccs@ccs-VirtualBox:~/workspaces/git/linuxdeploy-plugin-qt/ci$ env ARCH=aarch64 ./build-in-docker.sh 
[info] Building Docker image for aarch64 (Docker arch: arm64v8)
[warning] $UPDATE not set, base image will not be pulled!
[+] Building 14.5s (6/12)                                                                                                                                                                   docker:default
 => [internal] load build definition from Dockerfile                                                                                                                                                  0.7s
 => => transferring dockerfile: 2.45kB                                                                                                                                                                0.4s
 => [internal] load metadata for docker.io/arm64v8/debian:stable                                                                                                                                      1.1s
 => [internal] load .dockerignore                                                                                                                                                                     0.4s
 => => transferring context: 2B                                                                                                                                                                       0.1s
 => CACHED [1/8] FROM docker.io/arm64v8/debian:stable@sha256:230d87a390628ebb30625ccfd77327dffc90d82edc0ae24f1c93f1618b05712c                                                                         0.0s
 => [internal] load build context                                                                                                                                                                     0.5s
 => => transferring context: 94B                                                                                                                                                                      0.1s
 => ERROR [2/8] RUN export DEBIAN_FRONTEND=noninteractive &&     apt-get update &&     apt-get install -y build-essential cmake git gcovr patchelf wget             libmagic-dev libjpeg-dev libpng  10.1s
------                                                                                                                                                                                                     
 > [2/8] RUN export DEBIAN_FRONTEND=noninteractive &&     apt-get update &&     apt-get install -y build-essential cmake git gcovr patchelf wget             libmagic-dev libjpeg-dev libpng-dev libboost-filesystem-dev libboost-regex-dev             cimg-dev qtbase5-dev qtdeclarative5-dev-tools qml-module-qtquick2 qtdeclarative5-dev             googletest google-mock nlohmann-json3-dev autoconf libtool nano qtwebengine5-dev gdb &&     apt-get autoremove --purge -y &&     apt-get clean -y:
8.064 exec /usr/bin/bash: exec format error
------
Dockerfile:21
--------------------
  20 |     
  21 | >>> RUN export DEBIAN_FRONTEND=noninteractive && \
  22 | >>>     apt-get update && \
  23 | >>>     apt-get install -y build-essential cmake git gcovr patchelf wget \
  24 | >>>             libmagic-dev libjpeg-dev libpng-dev libboost-filesystem-dev libboost-regex-dev \
  25 | >>>             cimg-dev qtbase5-dev qtdeclarative5-dev-tools qml-module-qtquick2 qtdeclarative5-dev \
  26 | >>>             googletest google-mock nlohmann-json3-dev autoconf libtool nano qtwebengine5-dev gdb && \
  27 | >>>     apt-get autoremove --purge -y && \
  28 | >>>     apt-get clean -y
  29 |     
--------------------
ERROR: failed to solve: process "bash -x -c export DEBIAN_FRONTEND=noninteractive &&     apt-get update &&     apt-get install -y build-essential cmake git gcovr patchelf wget             libmagic-dev libjpeg-dev libpng-dev libboost-filesystem-dev libboost-regex-dev             cimg-dev qtbase5-dev qtdeclarative5-dev-tools qml-module-qtquick2 qtdeclarative5-dev             googletest google-mock nlohmann-json3-dev autoconf libtool nano qtwebengine5-dev gdb &&     apt-get autoremove --purge -y &&     apt-get clean -y" did not complete successfully: exit code: 1
ccs@ccs-VirtualBox:~/workspaces/git/linuxdeploy-plugin-qt/ci$ cat /etc/issue
Ubuntu 20.04.6 LTS \n \l

ccs@ccs-VirtualBox:~/workspaces/git/linuxdeploy-plugin-qt/ci$ uname -a
Linux ccs-VirtualBox 5.15.0-94-generic #104~20.04.1-Ubuntu SMP Tue Jan 16 13:34:09 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
ccs@ccs-VirtualBox:~/workspaces/git/linuxdeploy-plugin-qt/ci$ ping dockerhub.com
PING dockerhub.com (217.70.184.38) 56(84) bytes of data.
64 bytes from webredir.vip.gandi.net (217.70.184.38): icmp_seq=1 ttl=48 time=174 ms
64 bytes from webredir.vip.gandi.net (217.70.184.38): icmp_seq=2 ttl=48 time=92.6 ms
^C
--- dockerhub.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 92.586/133.169/173.752/40.583 ms
ccs@ccs-VirtualBox:~/workspaces/git/linuxdeploy-plugin-qt/ci$ 


@mdear mdear changed the title ./build-in-docker.sh fails ./build-in-docker.sh fails on cross-comoile request Mar 3, 2024
@mdear mdear changed the title ./build-in-docker.sh fails on cross-comoile request ./build-in-docker.sh fails on cross-compile request Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant