CI for qemu-hexagon
Hi Alex, I hope you enjoyed the holidays!
We're trying to upstream idef-parser (the automatic generator of the Hexagon frontend). This introduces new dependencies, specifically flex and bison.
Attached you can find our patch for that.
However the CI fails:
https://gitlab.com/carl.cudig/qemu/-/jobs/1939950230
AFAIU the Hexagon docker image is "special" since it's the only one that needs the cross-compiler to be built from source and, therefore, it's a process that needs to be triggered manually.
Is this correct?
If so, what should we do? Make a pull request despite the failure and then it will be taken care of, or should I make a separate (preliminary) pull request just for that patch?
Signature · 2 lines
Alessandro Di Federico rev.ng
commit 14e90d55b368b4a56fde668b66311bab6e1a4518
Author: Paolo Montesel <[email protected]> Date: Thu Dec 9 13:23:06 2021 +0100
target/hexagon: import flex/bison to docker files
.gitlab-ci.d/windows.yml +2 -0
@@ -33,6 +33,7 @@ msys2-64bit: script: - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed diffutils git grep make sed + flex bison mingw-w64-x86_64-capstone mingw-w64-x86_64-curl mingw-w64-x86_64-cyrus-sasl
@@ -68,6 +69,7 @@ msys2-32bit: script: - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed diffutils git grep make sed + flex bison mingw-w64-i686-capstone mingw-w64-i686-curl mingw-w64-i686-cyrus-sasl
tests/docker/dockerfiles/alpine.docker +2 -0
@@ -9,9 +9,11 @@ ENV PACKAGES \ alsa-lib-dev \ bash \ binutils \ + bison \ ccache \ coreutils \ curl-dev \ + flex \ g++ \ gcc \ git \
tests/docker/dockerfiles/centos8.docker +2 -0
@@ -5,6 +5,7 @@ ENV PACKAGES \ SDL2-devel \ alsa-lib-devel \ bc \ + bison \ brlapi-devel \ bzip2 \ bzip2-devel \
@@ -19,6 +20,7 @@ ENV PACKAGES \ device-mapper-multipath-devel \ diffutils \ findutils \ + flex \ gcc \ gcc-c++ \ genisoimage \
tests/docker/dockerfiles/debian-amd64.docker +2 -0
@@ -14,9 +14,11 @@ RUN apt update && \ RUN apt update && \ DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ + bison \ cscope \ genisoimage \ exuberant-ctags \ + flex \ global \ libbz2-dev \ liblzo2-dev \
tests/docker/dockerfiles/debian-native.docker +3 -0
@@ -26,13 +26,16 @@ RUN apt update && \ RUN apt update && \ DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ + bison \ cscope \ genisoimage \ exuberant-ctags \ + flex \ global \ libbz2-dev \ liblzo2-dev \ libgcrypt20-dev \ + libglib2.0-dev \ libfdt-dev \ librdmacm-dev \ libsasl2-dev \
tests/docker/dockerfiles/debian-riscv64-cross.docker +3 -0
@@ -17,12 +17,15 @@ RUN apt update && \ # Install common build utilities RUN DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \ bc \ + bison \ build-essential \ ca-certificates \ debian-ports-archive-keyring \ dpkg-dev \ + flex \ gettext \ git \ + libglib2.0-dev \ ninja-build \ pkg-config \ python3
tests/docker/dockerfiles/debian-tricore-cross.docker +2 -0
@@ -16,9 +16,11 @@ MAINTAINER Philippe Mathieu-Daudé <[email protected]> RUN apt update && \ DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \ + bison \ bzip2 \ ca-certificates \ ccache \ + flex \ g++ \ gcc \ git \
tests/docker/dockerfiles/debian10.docker +3 -0
@@ -17,16 +17,19 @@ RUN apt update && \ DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ + bison \ bc \ build-essential \ ca-certificates \ ccache \ clang \ dbus \ + flex \ gdb-multiarch \ gettext \ git \ libffi-dev \ + libglib2.0-dev \ libncurses5-dev \ ninja-build \ pkg-config \
tests/docker/dockerfiles/fedora-i386-cross.docker +3 -0
@@ -1,12 +1,15 @@ FROM registry.fedoraproject.org/fedora:34 ENV PACKAGES \ + bison \ bzip2 \ ccache \ diffutils \ findutils \ + flex \ gcc \ git \ + glib2-devel \ libffi-devel.i686 \ libselinux-devel.i686 \ libtasn1-devel.i686 \
tests/docker/dockerfiles/fedora-win32-cross.docker +3 -0
@@ -2,14 +2,17 @@ FROM registry.fedoraproject.org/fedora:33 # Please keep this list sorted alphabetically ENV PACKAGES \ + bison \ bc \ bzip2 \ ccache \ diffutils \ findutils \ + flex \ gcc \ gettext \ git \ + glib2-devel \ hostname \ make \ meson \
tests/docker/dockerfiles/fedora-win64-cross.docker +3 -0
@@ -2,13 +2,16 @@ FROM registry.fedoraproject.org/fedora:33 # Please keep this list sorted alphabetically ENV PACKAGES \ + bison \ bc \ bzip2 \ ccache \ diffutils \ findutils \ + flex \ gcc \ gettext \ + glib2-devel \ git \ hostname \ make \
tests/docker/dockerfiles/fedora.docker +2 -0
@@ -2,6 +2,7 @@ FROM registry.fedoraproject.org/fedora:33 # Please keep this list sorted alphabetically ENV PACKAGES \ + bison \ SDL2-devel \ SDL2_image-devel \ alsa-lib-devel \
@@ -20,6 +21,7 @@ ENV PACKAGES \ device-mapper-multipath-devel \ diffutils \ findutils \ + flex \ gcc \ gcc-c++ \ gcovr \
tests/docker/dockerfiles/opensuse-leap.docker +2 -0
@@ -5,6 +5,7 @@ ENV PACKAGES \ Mesa-devel \ alsa-lib-devel \ bc \ + bison \ brlapi-devel \ bzip2 \ ca-certificates \
@@ -15,6 +16,7 @@ ENV PACKAGES \ dbus-1 \ diffutils \ findutils \ + flex \ gcc \ gcc-c++ \ gcovr \
tests/docker/dockerfiles/ubuntu.docker +3 -0
@@ -11,9 +11,11 @@ FROM docker.io/library/ubuntu:20.04 ENV PACKAGES \ + bison \ ccache \ clang \ dbus \ + flex \ gcc \ gettext \ git \
@@ -30,6 +32,7 @@ ENV PACKAGES \ libfdt-dev \ libffi-dev \ libgbm-dev \ + libglib2.0-dev \ libgnutls28-dev \ libgtk-3-dev \ libibverbs-dev \
tests/docker/dockerfiles/ubuntu1804.docker +2 -0
@@ -1,6 +1,7 @@ FROM docker.io/library/ubuntu:18.04 ENV PACKAGES \ bc \ + bison \ bsdmainutils \ bzip2 \ ca-certificates \
@@ -11,6 +12,7 @@ ENV PACKAGES \ diffutils \ exuberant-ctags \ findutils \ + flex \ g++ \ gcc \ gcovr \
tests/docker/dockerfiles/ubuntu2004.docker +2 -0
@@ -1,5 +1,6 @@ FROM docker.io/library/ubuntu:20.04 ENV PACKAGES \ + bison \ bc \ bsdmainutils \ bzip2 \
@@ -11,6 +12,7 @@ ENV PACKAGES \ diffutils \ exuberant-ctags \ findutils \ + flex \ g++ \ gcc \ gcovr \
Quoted 8 lines · Alessandro Di Federico
Hi Alex, I hope you enjoyed the holidays!
We're trying to upstream idef-parser (the automatic generator of the Hexagon frontend). This introduces new dependencies, specifically flex and bison.
Attached you can find our patch for that.
Quoted 7 lines
However the CI fails:
https://gitlab.com/carl.cudig/qemu/-/jobs/1939950230AFAIU the Hexagon docker image is "special" since it's the only one that needs the cross-compiler to be built from source and, therefore, it's a process that needs to be triggered manually.
It's not that special now - we have the same for microblaze and nios2 (and more are coming). There was a build that moved the hexagon toolchain to using prebuilts hosted by QC but it ran into problems and I'm waiting for an update to that/
Quoted 5 lines
Is this correct?
If so, what should we do? Make a pull request despite the failure and then it will be taken care of, or should I make a separate (preliminary) pull request just for that patch?
Just include the patch to update the docker file in the series that introduces the feature and mention it in the cover letter. Users can always build the container locally and we can ensure the binary image is updated once it's merged.
Signature · 1 line
Alex Bennée