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

"ASan runtime does not come first in initial library list" when running Qt Quick example built in Creator with qbs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 5.0.0
    • None

    Description

      I created an "empty" Qt Quick application (untitled.zip) and built it using Qt 5.15.5 and 6.2.0 kits. When I try to run the application, both kits give me this error:

      12:26:27: Starting /home/mitch/dev/temp/untitled-Replacement_for_Desktop_Qt_6_2_0_GCC_64bit-Debug/Debug_Replacem_f36a11e65ce4f35e/install-root/usr/local/bin/untitled...
      ==69655==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
      12:26:27: /home/mitch/dev/temp/untitled-Replacement_for_Desktop_Qt_6_2_0_GCC_64bit-Debug/Debug_Replacem_f36a11e65ce4f35e/install-root/usr/local/bin/untitled exited with code 1
      

      When I build and run from the command line, it works fine:

      mitch@mitch-ubuntu-20:~/dev/temp$ mkdir untitled-6.2.0
      mitch@mitch-ubuntu-20:~/dev/temp$ cd untitled-6.2.0
      mitch@mitch-ubuntu-20:~/dev/temp/untitled-6.2.0$ ~/dev/qtcreator-Desktop_Qt_5_15_5_GCC_64bit-Debug/bin/qbs config --list
      defaultProfile: "x86_64-linux-gnu-gcc-9"
      profiles.qt-6-2-0.baseProfile: "x86_64-linux-gnu-gcc-9"
      profiles.qt-6-2-0.moduleProviders.Qt.qmakeFilePaths: "/home/mitch/dev/qt-unified/6.2.0/gcc_64/bin/qmake"
      profiles.x86_64-linux-gnu-gcc-9.cpp.archiverPath: "/usr/bin/x86_64-linux-gnu-gcc-ar-9"
      profiles.x86_64-linux-gnu-gcc-9.cpp.assemblerPath: "/usr/bin/x86_64-linux-gnu-as"
      profiles.x86_64-linux-gnu-gcc-9.cpp.nmPath: "/usr/bin/x86_64-linux-gnu-gcc-nm-9"
      profiles.x86_64-linux-gnu-gcc-9.cpp.objcopyPath: "/usr/bin/x86_64-linux-gnu-objcopy"
      profiles.x86_64-linux-gnu-gcc-9.cpp.stripPath: "/usr/bin/x86_64-linux-gnu-strip"
      profiles.x86_64-linux-gnu-gcc-9.cpp.toolchainInstallPath: "/usr/bin"
      profiles.x86_64-linux-gnu-gcc-9.cpp.toolchainPrefix: "x86_64-linux-gnu-"
      profiles.x86_64-linux-gnu-gcc-9.qbs.toolchainType: "gcc"
      mitch@mitch-ubuntu-20:~/dev/temp/untitled-6.2.0$ ~/dev/qtcreator-Desktop_Qt_5_15_5_GCC_64bit-Debug/bin/qbs -f ~/dev/temp/untitled profile:qt-6-2-0
      Build graph does not yet exist for configuration 'default'. Starting from scratch.
      Resolving project for configuration default
      Setting up Qt at '/home/mitch/dev/qt-unified/6.2.0/gcc_64/bin/qmake'...
      WARNING: Could not open prl file '/home/mitch/dev/qt-unified/6.2.0/gcc_64/lib/lib.prl' for module '' (Error: Unable to open file '/home/mitch/dev/qt-unified/6.2.0/gcc_64/lib/lib.prl': No such file or directory), and failed to deduce the library file path.  This module will likely not be usable by qbs.
      Qt was set up successfully.
      Setting up build graph for configuration default
      Building for configuration default
      rcc qml.qrc [untitled]
      compiling qrc_qml.cpp [untitled]
      compiling main.cpp [untitled]
      linking untitled [untitled]
      Build done for configuration default.
      [...]
      mitch@mitch-ubuntu-20:~/dev/temp/untitled-6.2.0/default/install-root/usr/local/bin$ ./untitled 
      

      I was using Creator built from source earlier in the day, which did mess up some of my kits (renamed them to "Replacement for <original kit name>"), so it could be that that broke something, but I'm not sure what to check.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes