Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79461

Wrong gcc version reported in config.summary

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.13.1
    • Build System
    • None
    • Ubuntu 18.04 LTS 64 bit

    Description

      When building Qt on Ubuntu 18.04., you'll sometimes find the following line in config.summary:

      Compiler: gcc 7.3.0
      

      This is wrong, because the installed gcc version is 7.4.0:

      qtrob@rob-desktop:~$ which gcc
      /usr/bin/gcc
      qtrob@rob-desktop:~$ ls /usr/bin/gcc*
      /usr/bin/gcc    /usr/bin/gcc-ar    /usr/bin/gcc-nm    /usr/bin/gcc-ranlib
      /usr/bin/gcc-7  /usr/bin/gcc-ar-7  /usr/bin/gcc-nm-7  /usr/bin/gcc-ranlib-7
      qtrob@rob-desktop:~$ /usr/bin/gcc --version
      gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
      Copyright (C) 2017 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.
      
      qtrob@rob-desktop:~$ /usr/bin/gcc-7 --version
      gcc-7 (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
      Copyright (C) 2017 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.
      
      

      It does not seem to happen every time. I just built Qt 5.12.5 and there config.summary is correct. In an older build of Qt 5.12.4, it's wrong again.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes