Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31132

Inconsistent paths and names of autodetected compilers

    XMLWordPrintable

Details

    • ab09e2dc3 (master)

    Description

      On Ubuntu, gcc and g++ are not binaries but links to the actual binaries:

      qtrob@rob-desktop:/usr/bin$ ls -lh gcc g++
      lrwxrwxrwx 1 root root 6 Aug  5  2021 g++ -> g++-11
      lrwxrwxrwx 1 root root 6 Aug  5  2021 gcc -> gcc-11
      qtrob@rob-desktop:/usr/bin$ ls -lh g??-11
      lrwxrwxrwx 1 root root 23 Mai 13  2023 g++-11 -> x86_64-linux-gnu-g++-11
      lrwxrwxrwx 1 root root 23 Mai 13  2023 gcc-11 -> x86_64-linux-gnu-gcc-11
      qtrob@rob-desktop:/usr/bin$ ls -lh x86_64-linux-gnu-g??-11
      -rwxr-xr-x 1 root root 911K Mai 13  2023 x86_64-linux-gnu-g++-11
      -rwxr-xr-x 1 root root 907K Mai 13  2023 x86_64-linux-gnu-gcc-11
      

      When started with empty settings, Creator correctly detects both of them. It only uses the path and name of the actual binary for g++. For gcc, it uses the link containing the version number:

      This works fine but the inconsistency makes it harder for the user to see that these two compilers belong together.

      Attachments

        1. compilers.png
          39 kB
          Robert Löhning

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              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