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

Building any example app for QNX, NUC (x86, 64 bit) fails every time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: Qt Creator 7.0.1
    • Fix Version/s: None
    • Component/s: QNX Support
    • Labels:
      None
    • Environment:
      Linux ... 5.11.0-41-generic #45-Ubuntu SMP Fri Nov 5 11:37:01 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    • Platform/s:
      QNX

      Description

      Bug found in Qt 6.3.0 RC testing: https://testrail.qt.io/index.php?/tests/view/4031500&group_by=cases:section_id&group_order=asc&group_id=120245

      To reproduce:

      1. Start Qt Creator from the installation
      2. Check that examples for version under testing are available in Creator
      3. Compile an example with Qt Creator by using Qt version under testing
      4. Debug an example with Qt Creator
      5. Create new Qt application with Qt Creator, compile & try to execute it by using Qt version under testing
      6. Modify the application (add a new component in designer view etc), compile and run it
      7. Close the Qt Creator

      Step 3. Fails: Building any example fails. Running qmake fails on loading of libm.so.3. That is very strange since the run qmake is linked to libm.so.6. The failing command works fine when run manually in command line (i.e. "/home/tommi/workspace/release/Qt/6.3.0/qnx71_x86_64/bin/qmake" /home/tommi/workspace/release/Qt/Examples/Qt-6.3.0//gui/analogclock/analogclock.pro -spec qnx-x86-64-qcc CONFIG+=debug CONFIG+=qml_debug). Also reproduced in another Linux host machine.

      Build log:

      10:58:25: Running steps for project analogclock...
       10:58:25: Starting: "/home/tommi/workspace/release/Qt/6.3.0/qnx71_x86_64/bin/qmake" /home/tommi/workspace/release/Qt/Examples/Qt-6.3.0//gui/analogclock/analogclock.pro -spec qnx-x86-64-qcc CONFIG+=debug CONFIG+=qml_debug
       /home/tommi/workspace/release/Qt/6.3.0/gcc_64/bin/qmake: error while loading shared libraries: libm.so.3: cannot open shared object file: No such file or directory
       10:58:26: The process "/home/tommi/workspace/release/Qt/6.3.0/qnx71_x86_64/bin/qmake" exited with code 127.
       Error while building/deploying project analogclock (kit: Qt 6.3.0 for QNX 7.1 x86_64)
       When executing step "qmake"
       10:58:26: Elapsed time: 00:00.

      Output from readelf (readelf -a /home/tommi/workspace/release/Qt/6.3.0/gcc_64/bin/qmake):

      Dynamic section at offset 0x19bd28 contains 30 entries:
       Tag Type Name/Value
       0x0000000000000001 (NEEDED) Shared library: [libQt6Core.so.6]
       0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
       0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
       0x0000000000000001 (NEEDED) Shared library: [libm.so.6]       <----- HERE
       0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
       0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
       0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/../lib])

      QtCreator version info:

       

      Qt Creator 7.0.1
       Based on Qt 6.2.3 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), 64 bit)
      Built on Mar 31 2022 01:18:34
      From revision 42d6704c4f
      Enterprise Features: Enabled
      

       

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-27287
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            rafaelroquetto Rafael Roquetto
            Reporter:
            tomantta Tommi Mänttäri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes