Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator fails to recognize the GDB whose version output contains extra numbers
Qt 6.11 is out! See what's new in the release blog

Qt Creator fails to recognize the GDB whose version output contains extra numbers

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
10 Posts 3 Posters 494 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    novum
    wrote last edited by
    #1

    Qt Creator cannot parse the GDB version string because it contains additional version information (from crosstool-NG), causing ABI detection to fail.

    cli-output-info.png

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #7

      So it's a Qt Creator issue. The version string contains extra stuff that trips the parser. Hence the wrong version shown in the dialog.

      I created QTCREATORBUG-34887 to track it.
      Patch in progress.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • N Offline
        N Offline
        novum
        wrote last edited by
        #2

        Both GDBs are built by crosstool-NG. Their version output is as follows:

        ./aarch64-linux-gnu-gdb --version
        GNU gdb (crosstool-NG 1.29.0_rc2) 17.2
        Copyright (C) 2025 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.
        
        ./aarch64-linux-gnu-gdb --version
        GNU gdb (GDB) 17.2
        Copyright (C) 2025 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.
        

        The only difference is the text inside the parentheses -- one say 'crosstool-NG 1.29.0_rc2', the another says 'GDB'.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #3

          Hi,

          What output do you get if you call each of them with --configuration ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • N Offline
            N Offline
            novum
            wrote last edited by
            #4

            The 'crosstool-NG' GDB output is shown as follows:

            ./aarch64-linux-gnu-gdb --configuration
            This GDB was configured as follows:
               configure --host=x86_64-build_pc-linux-gnu --target=aarch64-linux-gnu
                         --with-auto-load-dir=$debugdir:$datadir/auto-load
                         --with-auto-load-safe-path=$debugdir:$datadir/auto-load
                         --with-expat
                         --with-gdb-datadir=/home/devel/workspace/staging/aarch64-linux-gnu-ct-ng/share/gdb (relocatable)
                         --with-jit-reader-dir=/home/devel/workspace/staging/aarch64-linux-gnu-ct-ng/lib/gdb (relocatable)
                         --without-libunwind-ia64
                         --with-lzma
                         --without-babeltrace
                         --without-intel-pt
                         --without-xxhash
                         --with-python=/usr
                         --with-python-libdir=/usr/lib
                         --without-debuginfod
                         --with-curses
                         --without-guile
                         --without-amd-dbgapi
                         --disable-source-highlight
                         --enable-threading
                         --enable-tui
                         --without-system-readline
                         --with-separate-debug-dir=/home/devel/workspace/staging/aarch64-linux-gnu-ct-ng/lib/debug (relocatable)
                         --with-sysroot=/home/devel/workspace/staging/aarch64-linux-gnu-ct-ng/aarch64-linux-gnu/sysroot (relocatable)
            
            ("Relocatable" means the directory can be moved with the GDB installation
            tree, and GDB will still find it.)
            
            GNU Readline library version: 8.2       (internal)
            
            1 Reply Last reply
            0
            • N Offline
              N Offline
              novum
              wrote last edited by
              #5

              The 'GDB' GDB output is shown as follows:

              ./aarch64-linux-gnu-gdb --configuration
              This GDB was configured as follows:
                 configure --host=x86_64-build_pc-linux-gnu --target=aarch64-linux-gnu
                           --with-auto-load-dir=$debugdir:$datadir/auto-load
                           --with-auto-load-safe-path=$debugdir:$datadir/auto-load
                           --with-expat
                           --with-gdb-datadir=/home/devel/workspace/staging/aarch64-linux-gnu/share/gdb (relocatable)
                           --with-jit-reader-dir=/home/devel/workspace/staging/aarch64-linux-gnu/lib/gdb (relocatable)
                           --without-libunwind-ia64
                           --with-lzma
                           --without-babeltrace
                           --without-intel-pt
                           --without-xxhash
                           --with-python=/usr
                           --with-python-libdir=/usr/lib
                           --without-debuginfod
                           --with-curses
                           --without-guile
                           --without-amd-dbgapi
                           --disable-source-highlight
                           --enable-threading
                           --enable-tui
                           --without-system-readline
                           --with-separate-debug-dir=/home/devel/workspace/staging/aarch64-linux-gnu/lib/debug (relocatable)
                           --with-sysroot=/home/devel/workspace/staging/aarch64-linux-gnu/aarch64-linux-gnu/sysroot (relocatable)
              
              ("Relocatable" means the directory can be moved with the GDB installation
              tree, and GDB will still find it.)
              
              GNU Readline library version: 8.2       (internal)
              
              1 Reply Last reply
              0
              • N Offline
                N Offline
                novum
                wrote last edited by
                #6

                Adding the 'crosstool-NG' GDB in Qt Creator
                aarch64-linux-gnu-gdb-ct-ng.png

                Adding the 'GDB' GDB in Qt Creator
                aarch64-linux-gnu-gdb.png

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote last edited by
                  #7

                  So it's a Qt Creator issue. The version string contains extra stuff that trips the parser. Hence the wrong version shown in the dialog.

                  I created QTCREATORBUG-34887 to track it.
                  Patch in progress.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  4
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote last edited by
                    #8

                    Patch integrated :-)
                    If you need it earlier, you might want to consider building the debugger plugin for your version of Qt Creator. If not Qt Creator itself directly.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    2
                    • aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote last edited by
                      #9

                      Or to add to @SGaist: Use one of the next snapshots from: https://download.qt.io/snapshots/qtcreator/21.0/21.0.0-beta1 which will contain the fix.

                      Regards

                      Qt has to stay free or it will die.

                      SGaistS 1 Reply Last reply
                      2
                      • aha_1980A aha_1980

                        Or to add to @SGaist: Use one of the next snapshots from: https://download.qt.io/snapshots/qtcreator/21.0/21.0.0-beta1 which will contain the fix.

                        Regards

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote last edited by SGaist
                        #10

                        @aha_1980 good point ! I did not think of the snapshots.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • N novum has marked this topic as solved

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved