Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96454

QT6.2.0 cross compile failed on QNX7.1 Version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 6.2.0, 6.2
    • Fix Version/s: 6.2.4, 6.3.0 Beta1, 6.4.0 Beta1
    • Component/s: Build System, Core: Threads
    • Labels:
      None
    • Environment:
      Host OS: ubuntu 18.04,
      Host GCC: gcc (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
      Target OS: QNX 7.1
      Target ARCH: aarch64
    • Platform/s:
      QNX

      Description

      I try to build QT 6.2/6.2.0 using qnx 7.1 toolchain to cross compile, but get below error:

      Any suggestion for this build error? It seems qnx 7.0/7.1 has no sys/shm.h header file.

      [177/2639] Building CXX object src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/kernel/qsharedmemory_systemv.cpp.o
      FAILED: src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/kernel/qsharedmemory_systemv.cpp.o 
      /home/vmuser/linux_qnx710/qnx710/host/linux/x86_64/usr/bin/q++ -Vgcc_ntoaarch64le -Wc,-isysroot,/home/vmuser/linux_qnx710/qnx710/target/qnx7 -lang-c++ -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_DISABLE_JIT -DQT_BOOTSTRAPPED -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=2 -DQT_VERSION_PATCH=0 -DQT_VERSION_STR=\"6.2.0\" -D_FORTIFY_SOURCE=2 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_REENTRANT -I/home/vmuser/projects/qt/qt6_target_build/src/corelib/Core_autogen/include -I/home/vmuser/projects/qt/qt6_target_build/include -I/home/vmuser/projects/qt/qt6_target_build/include/QtCore -I/home/vmuser/projects/qt/qt5/qtbase/src/corelib -I/home/vmuser/projects/qt/qt6_target_build/src/corelib -I/home/vmuser/projects/qt/qt6_target_build/src/corelib/global -I/home/vmuser/projects/qt/qt6_target_build/src/corelib/kernel -I/home/vmuser/projects/qt/qt5/qtbase/src/corelib/../3rdparty/tinycbor/src -I/home/vmuser/projects/qt/qt6_target_build/include/QtCore/6.2.0 -I/home/vmuser/projects/qt/qt6_target_build/include/QtCore/6.2.0/QtCore -I/home/vmuser/projects/qt/qt5/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -I/home/vmuser/projects/qt/qt5/qtbase/src/corelib/../3rdparty/double-conversion -I/home/vmuser/projects/qt/qt5/qtbase/src/corelib/../3rdparty/forkfd -I/home/vmuser/projects/qt/qt6_target_build/src/corelib/.rcc -I/home/vmuser/projects/qt/qt5/qtbase/mkspecs/qnx-aarch64le-qcc -I/home/vmuser/projects/qt/qt5/qtbase/src/3rdparty/pcre2/src -I/home/vmuser/projects/qt/qt6_target_build/src/xml/Xml_autogen/include -I/home/vmuser/projects/qt/qt6_target_build/include/QtXml -I/home/vmuser/projects/qt/qt5/qtbase/src/xml -I/home/vmuser/projects/qt/qt6_target_build/src/xml -I/home/vmuser/projects/qt/qt6_target_build/include/QtXml/6.2.0 -I/home/vmuser/projects/qt/qt6_target_build/include/QtXml/6.2.0/QtXml -I/home/vmuser/projects/qt/qt5/qtbase/src/tools/bootstrap/.. -I/home/vmuser/projects/qt/qt5/qtbase/src/tools/bootstrap/../../3rdparty/tinycbor/src -I/home/vmuser/projects/qt/qt5/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -I/home/vmuser/projects/qt/qt5/qtbase/src/tools/bootstrap/../../3rdparty/zlib/src -DNDEBUG   -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -std=gnu++17 -Wp,-MD,src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/kernel/qsharedmemory_systemv.cpp.o.d -Wp,-MT,src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/kernel/qsharedmemory_systemv.cpp.o -Wp,-MF,src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/kernel/qsharedmemory_systemv.cpp.o.d -o src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/kernel/qsharedmemory_systemv.cpp.o -c /home/vmuser/projects/qt/qt5/qtbase/src/corelib/kernel/qsharedmemory_systemv.cpp
      /home/vmuser/projects/qt/qt5/qtbase/src/corelib/kernel/qsharedmemory_systemv.cpp:55:10: fatal error: sys/shm.h: No such file or directory
       #include <sys/shm.h>
                ^~~~~~~~~~~
      compilation terminated.
      ninja: build stopped: subcommand failed.
      
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              papetaja Pasi Petäjäjärvi
              Reporter:
              jirauser61772 user-0ff63 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes