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

Inconsistent paths and names of autodetected compilers

XMLWordPrintable

    • ab09e2dc3 (master)

      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.

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

            kandeler Christian Kandeler
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes