Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-368

Risk that the qmlinterfacegenerator receives conflicting header include directories.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • Qt for MCUs 2.10
    • Qt for MCUs 2.9.1
    • Other
    • Linux/Yocto
    • Auto team Sprint 3.11, Auto team Sprint 3.12

    Description

      When cross-compiling a project for a Linux based MPU, there is a risk that a header file which needs to be processed by the qmlinterfacegenerator has includes from the target sysroot.
      This is an issue, because when the qmlinterfacegenerator is called, additional "QUL_PRIVATE_ARMGCC_HEADERS_DIR" are given that can conflict with the ones from the target sysroot.

      This results in an error message like this:

      [  1%] Running qmlinterfacegenerator on /home/dennis/Dev/refsys/build-output/ux_mini_gui__release_smm2__compiler-agnostic__sysroot-naos__config__715046/app/modules/localization/include/Translator.hppwarning: unknown platform, assuming -mfloat-abi=softwarning: unknown platform, assuming -mfloat-abi=softwarning: unknown platform, assuming -mfloat-abi=soft/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/gnu/stubs-32.h:7:11: error: 'gnu/stubs-soft.h' file not found/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:38:20: error: typedef redefinition with different types ('__uint64_t' (aka 'unsigned long long') vs 'unsigned long')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:184:30: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:42:20: error: typedef redefinition with different types ('__uint32_t' (aka 'unsigned int') vs 'unsigned long')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:188:30: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:56:15: error: typedef redefinition with different types ('short' vs '__uint64_t' (aka 'unsigned long long'))/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:145:25: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:60:24: error: typedef redefinition with different types ('unsigned short' vs 'unsigned int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:146:25: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:63:24: error: typedef redefinition with different types ('unsigned short' vs 'unsigned int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:147:25: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:75:24: error: typedef redefinition with different types ('unsigned short' vs 'unsigned long')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:148:25: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:108:14: error: typedef redefinition with different types ('long' vs 'int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:166:25: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:182:19: error: typedef redefinition with different types ('unsigned long' vs 'long')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:156:27: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:189:18: error: typedef redefinition with different types ('__int_least64_t' (aka 'long long') vs 'long')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:160:26: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:195:21: error: typedef redefinition with different types ('unsigned long' vs 'int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:169:29: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:198:15: error: typedef redefinition with different types ('long' vs 'int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:165:27: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:202:19: error: typedef redefinition with different types ('unsigned long' vs 'void *')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:172:27: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:213:24: error: typedef redefinition with different types ('unsigned short' vs 'unsigned int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:151:27: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/sys/_types.h:215:23: error: typedef redefinition with different types ('unsigned long' vs 'unsigned int')/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/bits/types.h:161:30: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/stdlib.h:90:30: error: expected function body after function declarator/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/stdlib.h:108:22: error: expected function body after function declarator/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/stdlib.h:145:31: error: expected function body after function declarator/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/stdlib.h:332:38: error: expected function body after function declarator/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:48:10: warning: 'HUGE_VAL' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:19:11: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:59:11: warning: 'HUGE_VALF' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:23:11: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:60:11: warning: 'HUGE_VALL' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:27:11: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:91:11: warning: 'INFINITY' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:31:11: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:98:11: warning: 'NAN' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:35:11: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:209:11: warning: 'FP_ILOGB0' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:197:10: note: previous definition is here/home/dennis/.docker-build-scripts/conan_cache/.conan/data/target-sysroot/2.6.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/math.h:214:11: warning: 'FP_ILOGBNAN' macro redefined [-Wmacro-redefined]/home/dennis/.docker-build-scripts/conan_cache/.conan/data/qt_for_mcus/2.8.1-1.1.0/conan_toolchain_catalog/build/package/ec99fc8ec2a580012b4320ddddc8fdc67d63a98b/bin/../src/3rdparty/gcc-arm-none-eabi-12.3.rel1/arm-none-eabi/include/math.h:200:10: note: previous definition is herefatal error: too many errors emitted, stopping now [-ferror-limit=]Error: 'gnu/stubs-soft.h' file not foundmake[3]: *** [app/modules/localization/CMakeFiles/mini-gui-localization.dir/build.make:84: app/modules/localization/MiniGui/Localization/_qul_dummy_Translator.hpp] Error 1make[3]: *** Deleting file 'app/modules/localization/MiniGui/Localization/_qul_dummy_Translator.hpp'make[2]: *** [CMakeFiles/Makefile2:1189: app/modules/localization/CMakeFiles/mini-gui-localization.dir/all] Error 2make[1]: *** [Makefile:146: all] Error 2
       

      Changing the implementation of our header files would be possible, but is not what we want. We would also have to prevent our target sysroot include directories from being set.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              gruberd Dennis Gruber
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes