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

Alpine - qemu-s390x-static - apk fetch commands fails with IO error on x86 host #42

Closed
imdurgadas opened this issue Sep 5, 2018 · 1 comment

Comments

@imdurgadas
Copy link

on x86 , I am trying to cross compile for s390x Alpine. The apk command fails while fetch IO errors.

Note: Alpine image works perfectly well on an s390x host.

**Issue: (Below commands executed on x86 host) **
Dockerfile:

FROM s390x/alpine
COPY qemu-s390x-static /usr/bin/
CMD uname -a
uname -a
Linux dk-vm 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
docker build -t test-alpine -f Dockerfile-test .
Sending build context to Docker daemon  23.27MB
Step 1/3 : FROM s390x/alpine
latest: Pulling from s390x/alpine
cdf21ace9418: Already exists
ea178433f2f0: Already exists
Digest: sha256:903e1eeceeb7208949673dcb557659b5f4c8e9065a45432a0668acdd0069268c
Status: Downloaded newer image for s390x/alpine:latest
 ---> 2fc01d06b47d
Step 2/3 : COPY qemu-s390x-static /usr/bin/
 ---> 0dfcc829de99
Step 3/3 : CMD uname -a
 ---> Running in 1034e895153a
Removing intermediate container 1034e895153a
 ---> e8d1f3431d7a
Successfully built e8d1f3431d7a
Successfully tagged test-alpine:latest
root@dk-vm:~/jenkins/docker# docker run -it --name alpine test-alpine sh
/ # clear
/ # apk add --no-cache git openssh-client curl unzip bash ttf-dejavu coreutils tini
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/s390x/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/main/s390x/APKINDEX.tar.gz: IO ERROR
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/s390x/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.8/community/s390x/APKINDEX.tar.gz: IO ERROR
ERROR: unsatisfiable constraints:
  bash (missing):
    required by: world[bash]
  coreutils (missing):
    required by: world[coreutils]
  curl (missing):
    required by: world[curl]
  git (missing):
    required by: world[git]
  openssh-client (missing):
    required by: world[openssh-client]
  tini (missing):
    required by: world[tini]
  ttf-dejavu (missing):
    required by: world[ttf-dejavu]
  unzip (missing):
    required by: world[unzip]
  musl-1.1.19-r10:
    breaks: musl-utils-1.1.19-r10[musl?1.1.19-r10] musl-utils-1.1.19-r10[so:libc.musl-s390x.so.1] busybox-1.28.4-r0[so:libc.musl-s390x.so.1]
            libressl2.7-libcrypto-2.7.4-r0[so:libc.musl-s390x.so.1] apk-tools-2.10.0-r0[so:libc.musl-s390x.so.1]
            libressl2.7-libssl-2.7.4-r0[so:libc.musl-s390x.so.1] scanelf-1.2.3-r0[so:libc.musl-s390x.so.1]
            zlib-1.2.11-r1[so:libc.musl-s390x.so.1] alpine-baselayout-3.1.0-r0[so:libc.musl-s390x.so.1]
  busybox-1.28.4-r0:
    breaks: world[busybox] alpine-baselayout-3.1.0-r0[/bin/sh]
  alpine-baselayout-3.1.0-r0:
    breaks: world[alpine-baselayout]
  alpine-keys-2.1-r1:
    breaks: world[alpine-keys]
  libressl2.7-libcrypto-2.7.4-r0:
    breaks: apk-tools-2.10.0-r0[so:libcrypto.so.43] libressl2.7-libssl-2.7.4-r0[so:libcrypto.so.43]
  libressl2.7-libssl-2.7.4-r0:
    breaks: apk-tools-2.10.0-r0[so:libssl.so.45]
  zlib-1.2.11-r1:
    breaks: apk-tools-2.10.0-r0[so:libz.so.1]
  apk-tools-2.10.0-r0:
    breaks: world[apk-tools]
  scanelf-1.2.3-r0:
    breaks: musl-utils-1.1.19-r10[scanelf]
  musl-utils-1.1.19-r10:
    breaks: libc-utils-0.7.1-r0[musl-utils]
  libc-utils-0.7.1-r0:
    breaks: world[libc-utils]
/ # exit


@imdurgadas
Copy link
Author

This issue isn't noticed in v2.12.0-1 . Closing !

@anandkolli anandkolli mentioned this issue Jul 28, 2019
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