[virglrenderer-devel] [virglrenderer-devel v1 13/13] ci: Switch to gcc-7 to avoid gcc-8 miscompilation of mesa

Robert Foss robert.foss at collabora.com
Wed Nov 21 15:12:40 UTC 2018


The bug is described here:
https://bugzilla.redhat.com/show_bug.cgi?id=1645400

And fixed in gcc here:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=264232

Signed-off-by: Robert Foss <robert.foss at collabora.com>
---
 ci/Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ci/Dockerfile b/ci/Dockerfile
index a7cd984..954738f 100644
--- a/ci/Dockerfile
+++ b/ci/Dockerfile
@@ -6,6 +6,8 @@ ENV PATH=$PATH:/usr/local/go/bin
 ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/usr/local/lib/x86_64-linux-gnu
 ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/local/lib/x86_64-linux-gnu/pkgconfig
 ENV LDFLAGS="-L/usr/local/lib64 -L/usr/local/lib/ -L/usr/local/lib/x86_64-linux-gnu"
+ENV CC="gcc-7"
+ENV CXX="g++-7"
 ENV CFLAGS="-g3"
 ENV CXXFLAGS="-g3"
 ENV GIT_DATE="`date +%Y-%m-%d -d \"1 year ago\"`"
@@ -27,6 +29,8 @@ RUN apt-get -y install ca-certificates && \
       clang-6.0 \
       cmake \
       dbus \
+      g++-7 \
+      gcc-7 \
       gdb \
       gdc-6 \
       git \
-- 
2.17.1



More information about the virglrenderer-devel mailing list