Skip to content

Docker cross-compilation CD pipeline fails sometimes #366

Description

@RemiBardon

GitHub runners segfault when trying to build Sonic for Docker:

#20 156.3 Setting up llvm-11-dev (1:11.0.1-2) ...
#20 156.3 Processing triggers for libc-bin (2.31-13+deb11u14) ...
#20 156.4 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#20 156.9 Segmentation fault (core dumped)
#20 156.9 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
#20 157.4 Segmentation fault (core dumped)
#20 157.4 dpkg: error processing package libc-bin (--configure):
#20 157.4  installed libc-bin package post-installation script subprocess returned error exit status 139
#20 157.4 Errors were encountered while processing:
#20 157.4  libc-bin
#20 157.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
#20 ERROR: process "/bin/sh -c apt-get install -y build-essential clang" did not complete successfully: exit code: 100

#24 [linux/amd64 build  9/10] RUN cargo clean && cargo build --locked --release
#24 CANCELED
------
 > [linux/arm64 build  3/10] RUN apt-get install -y build-essential clang:
156.3 Processing triggers for libc-bin (2.31-13+deb11u14) ...
156.4 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
156.9 Segmentation fault (core dumped)
156.9 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
157.4 Segmentation fault (core dumped)
157.4 dpkg: error processing package libc-bin (--configure):
157.4  installed libc-bin package post-installation script subprocess returned error exit status 139
157.4 Errors were encountered while processing:
157.4  libc-bin
: Sub-process /usr/bin/dpkg returned an error code (1)
------
Dockerfile:4
--------------------
   2 |     
   3 |     RUN apt-get update
   4 | >>> RUN apt-get install -y build-essential clang
   5 |     
   6 |     RUN rustup --version
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get install -y build-essential clang" did not complete successfully: exit code: 100

I’ll fix that when working on packaging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagingRelates to build or packagingbugSomething isn't working

    Projects

    Status
    Backlog & Ideas 💡

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions