Skip to contentSkip to conversation

add gcc compiler version to the browsable output in patchew?

Qemu-devel Claudio Fontana 2 participants 2 messages Sep 7, 2016 – Sep 8, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

it would be useful I think to know exactly which gcc version is running in patchew, it can help when trying to reproduce a problem which does not seem to trigger locally.

Ciao,

Claudio

#1 lore raw
Quoted 5 lines · Claudio Fontana

Hi,

it would be useful I think to know exactly which gcc version is running in patchew, it can help when trying to reproduce a problem which does not seem to trigger locally.

Hi,

I have a work in progress series for QEMU to include the gcc version and other env info in the patchew report. It is at QEMU side because the actual build tests that patchew runs are actually QEMU "docker tests":

http://wiki.qemu.org/DockerBuild

The commands are also described in the patchew email too.

So even before we have the env info patch, you can already figure out all the information and even reproduce it on a host that has Docker, with a little bit of effort. (The intention of having docker tests in QEMU tree is to make patchew failures reproducible to every contributor.)

The reproducer would be as simple as

    make -C $MY_QEMU_DEV_REPO V=1 \
        docker-test-quick@fedore docker-test-mingw@fedora

which covers the current two docker build targets we do on patchew.

Back to your question, the gcc versions of the involved docker builds are:

    fam@lemon:~$ sudo docker run -ti --rm qemu:centos6 gcc --version
    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    fam@lemon:~$ sudo docker run -ti --rm qemu:fedora gcc --version
    gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Fam