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

CI | Build KBS Image fails for aarch64 #715

Closed
Xynnn007 opened this issue Feb 21, 2025 · 0 comments · Fixed by #716
Closed

CI | Build KBS Image fails for aarch64 #715

Xynnn007 opened this issue Feb 21, 2025 · 0 comments · Fixed by #716

Comments

@Xynnn007
Copy link
Member

This error happens a couple of times.

#16 ...

#11 [stage-1 3/4] RUN apt-get update &&     apt-get install -y     curl     gnupg-agent &&     if [ "aarch64" = "x86_64" ]; then curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key |     gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg &&     echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list &&     apt-get update &&     apt-get install -y --no-install-recommends     libsgx-dcap-default-qpl     libsgx-dcap-quote-verify     libtss2-tctildr0     libtss2-esys-3.0.2-0 ;     fi &&     apt clean all &&     rm -rf /tmp/*
#11 147.2 0 added, 0 removed; done.
#11 147.2 Running hooks in /etc/ca-certificates/update.d...
#11 147.3 done.
#11 147.4 Errors were encountered while processing:
#11 147.4  libc-bin
#11 147.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
#11 ERROR: process "/dev/.buildkit_qemu_emulator /bin/sh -c apt-get update &&     apt-get install -y     curl     gnupg-agent &&     if [ \"${ARCH}\" = \"x86_64\" ]; then curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key |     gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg &&     echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list &&     apt-get update &&     apt-get install -y --no-install-recommends     libsgx-dcap-default-qpl     libsgx-dcap-quote-verify     libtss2-tctildr0     libtss2-esys-3.0.2-0 ;     fi &&     apt clean all &&     rm -rf /tmp/*" did not complete successfully: exit code: 100

#16 [builder 6/6] RUN cd kbs && make AS_FEATURE=coco-as-builtin ALIYUN=false ARCH=aarch64 &&     make ARCH=aarch64 install-kbs
#16 124.7    Compiling aho-corasick v1.1.3
#16 124.8    Compiling paste v1.0.15
#16 CANCELED
------
 > [stage-1 3/4] RUN apt-get update &&     apt-get install -y     curl     gnupg-agent &&     if [ "aarch64" = "x86_64" ]; then curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key |     gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg &&     echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list &&     apt-get update &&     apt-get install -y --no-install-recommends     libsgx-dcap-default-qpl     libsgx-dcap-quote-verify     libtss2-tctildr0     libtss2-esys-3.0.2-0 ;     fi &&     apt clean all &&     rm -rf /tmp/*:
115.1 dpkg: error processing package libc-bin (--configure):
115.1  installed libc-bin package post-installation script subprocess returned error exit status 139
115.1 Processing triggers for ca-certificates (20240203~22.04.1) ...
115.4 Updating certificates in /etc/ssl/certs...
147.2 0 added, 0 removed; done.
147.2 Running hooks in /etc/ca-certificates/update.d...
147.3 done.
147.4 Errors were encountered while processing:
147.4  libc-bin
147.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 6)
Dockerfile:49
--------------------
  48 |     
  49 | >>> RUN apt-get update && \
  50 | >>>     apt-get install -y \
  51 | >>>     curl \
  52 | >>>     gnupg-agent && \
  53 | >>>     if [ "${ARCH}" = "x86_64" ]; then curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | \
  54 | >>>     gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg && \
  55 | >>>     echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list && \
  56 | >>>     apt-get update && \
  57 | >>>     apt-get install -y --no-install-recommends \
  58 | >>>     libsgx-dcap-default-qpl \
  59 | >>>     libsgx-dcap-quote-verify \
  60 | >>>     libtss2-tctildr0 \
  61 | >>>     libtss2-esys-3.0.2-0 ; \
  62 | >>>     fi && \
  63 | >>>     apt clean all && \
  64 | >>>     rm -rf /tmp/*
  65 |     
--------------------
ERROR: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c apt-get update &&     apt-get install -y     curl     gnupg-agent &&     if [ \"${ARCH}\" = \"x86_64\" ]; then curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key |     gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg &&     echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list &&     apt-get update &&     apt-get install -y --no-install-recommends     libsgx-dcap-default-qpl     libsgx-dcap-quote-verify     libtss2-tctildr0     libtss2-esys-3.0.2-0 ;     fi &&     apt clean all &&     rm -rf /tmp/*" did not complete successfully: exit code: 100

Concrete logs: https://github.com/confidential-containers/trustee/actions/runs/13449082661/job/37585093176?pr=597

Xynnn007 added a commit to Xynnn007/kbs that referenced this issue Feb 21, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
Xynnn007 added a commit to Xynnn007/kbs that referenced this issue Feb 21, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
Xynnn007 added a commit to Xynnn007/kbs that referenced this issue Feb 21, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04 and use Qemu v7.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
Xynnn007 added a commit to Xynnn007/kbs that referenced this issue Feb 21, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04 and use Qemu v8.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
Xynnn007 added a commit to Xynnn007/kbs that referenced this issue Feb 21, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04 and use Qemu v8.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
Xynnn007 added a commit to Xynnn007/kbs that referenced this issue Feb 21, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04 and use Qemu v8.

Fixes confidential-containers#715

Signed-off-by: Xynnn007 <[email protected]>
fitzthum pushed a commit that referenced this issue Feb 24, 2025
Due to actions/runner-images#11471 we see
similar problems when using ubuntu24.04 to do cross build for arm64
images.

A workaround is to downgrade to ubuntu22.04 and use Qemu v8.

Fixes #715

Signed-off-by: Xynnn007 <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant