Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1345

gnu/stubs-soft.h: No such file or directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.11.1
    • Qt Creator Integration
    • None
    • * GCC 6.4 (arm-poky-linux-gnueabi)
       * QtCreator 4.6.1 (QBS 1.11.1)

    Description

      It is impossible to compile any project with QBS, using the Yocto SDK from QtCreator. A compilation fails with following error:

      In file included from /opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/features.h:392:0,
                       from /opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.4.0/arm-poky-linux-gnueabi/bits/os_defines.h:39,
                       from /opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.4.0/arm-poky-linux-gnueabi/bits/c++config.h:507,
                       from /opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.4.0/iostream:38,
                       from /home/denis/Documents/Tests/hello-minimal-git/helloworld-minimal/main.cpp:51:
      /opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
       # include <gnu/stubs-soft.h>
                                   ^
      compilation terminated.

      but, with qmake all compiles successfully.

      == QBS compilation command line ==

      /opt/Yocto/qt-sdks/2.2.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ --sysroot=/opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi -g -O0 -Wall -Wextra -pipe -fexceptions -fvisibility=default -fPIC -o /home/denis/Documents/Tests/hello-minimal-git/build-hello-yocto_apalis_imx6-qbs-Debug/qtc_yocto_apalis_imx6_Debug/hello.aaf4c61d/3a52ce780950d4d9/main.cpp.o -c /home/denis/Documents/Tests/hello-minimal-git/helloworld-minimal/main.cpp
      

      == QMake compilation command line ==

      /opt/Yocto/qt-sdks/2.2.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -c -pipe -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -feliminate-unused-debug-types -fdebug-prefix-map=/opt/Yocto/boot2qt-git/meta-boot2qt/build-apalis-imx6/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-b2qt-embedded-qt5-sdk/1.0-r0=/usr/src/debug/meta-toolchain-b2qt-embedded-qt5-sdk/1.0-r0 -fdebug-prefix-map=/opt/Yocto/boot2qt-git/meta-boot2qt/build-apalis-imx6/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/opt/Yocto/boot2qt-git/meta-boot2qt/build-apalis-imx6/tmp/sysroots/apalis-imx6= -DLINUX=1 -DEGL_API_FB=1 --sysroot=/opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi -g -std=gnu++11 -Wall -W -fPIC -DQT_QML_DEBUG -I../helloworld-minimal -I. -I/opt/Yocto/qt-sdks/2.2.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/mkspecs/devices/linux-oe-generic-g++ -o main.o ../helloworld-minimal/main.cpp
      

       

      Seems, that QBS does not pick-up the system includes directories.

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes