Uploaded image for project: 'Qt Creator'
  1. Qt Creator

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



    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 7.0.1
    • QNX Support
    • None
    • 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
    • QNX


      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



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



            rafaelroquetto Rafael Roquetto
            tomantta Tommi Mänttäri
            0 Vote for this issue
            2 Start watching this issue



              Gerrit Reviews

                There are no open Gerrit changes