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

Build from source fails at mem_info.cpp

    XMLWordPrintable

Details

    • Windows
    • 493497bb5166d85730647e155dff3ecec56b13b0

    Description

      I'm follwing this document about performance logs now : https://doc.qt.io/QtForMCUs-2.2/qtul-performance-logging.html

       

      I'm using Windows 11 and Qt for MCU 2.2.1.
      Here are the commands I executed :

      set QUL_ROOT=C:\Qt\QtMCUs\2.2.1
      set QUL_TOOLS=C:\Qt\Tools\QtMCUs
      cd %QUL_ROOT%
      mkdir build
      cd build
      cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=..\lib\cmake\Qul\toolchain\armgcc.cmake -DQUL_TARGET_TOOLCHAIN_DIR=%QUL_TOOLS%\arm_gcc_10 -DQUL_BOARD_SDK_DIR=%QUL_TOOLS%\STM\STM32Cube_FW_H7_V1.5.0 -DQUL_GENERATORS=..\lib\cmake\Qul\QulGenerators.cmake -DQUL_PLATFORM=STM32H750B-DISCOVERY-baremetal -DQUL_ENABLE_PERFORMANCE_LOGGING=on -DQUL_ENABLE_PERFORMANCE_CONSOLE_OUTPUT=on -DQUL_ENABLE_HARDWARE_PERFORMANCE_LOGGING=on
      cmake --build .
      

      Then at the point of cmake --build ., I got this error:

      [103/1317] Building CXX object platform/CMakeFiles/Platform.dir/common/baremetal/mem_info.cpp.obj
      FAILED: platform/CMakeFiles/Platform.dir/common/baremetal/mem_info.cpp.obj
      C:\Qt\Tools\QtMCUs\arm_gcc_10\bin\arm-none-eabi-g++.exe -DQUL_COLOR_DEPTH=32 -DQUL_ENABLE_HARDWARE_PERFORMANCE_LOGGING -DQUL_ENABLE_PERFORMANCE_CONSOLE_OUTPUT -DQUL_ENABLE_PERFORMANCE_LOGGING -DQUL_PLATFORM_DEFAULT_NUM_FRAMES_TO_PRESERVE_ASSETS=0 -DQUL_PLATFORM_DEFAULT_RESOURCE_PIXEL_FORMAT_ALPHA=\"ARGB8888\" -DQUL_PLATFORM_DEFAULT_RESOURCE_PIXEL_FORMAT_OPAQUE=\"XRGB8888\" -DQUL_PLATFORM_DEFAULT_SCREEN_HEIGHT=272 -DQUL_PLATFORM_DEFAULT_SCREEN_WIDTH=480 -DQUL_PLATFORM_DEFAULT_TEXT_CACHE_ENABLED=0 -DQUL_PLATFORM_DEFAULT_TEXT_CACHE_SIZE=24*1024 -DQUL_PLATFORM_REQUIRED_IMAGE_ALIGNMENT=1 -DQUL_PLATFORM_REQUIRED_PIXEL_WIDTH_ALIGNMENT=1 -DSTM32H750B_DISCO -DSTM32H750xx -DUSE_HAL_DRIVER -DUSE_STM32H750B_DISCO -IC:/Qt/QtMCUs/2.2.1/include -IC:/Qt/QtMCUs/2.2.1/build/include -IC:/Qt/QtMCUs/2.2.1/platform/private/devicelink -IC:/Qt/QtMCUs/2.2.1/platform/boards/st/stm32h750b-discovery-baremetal -IC:/Qt/QtMCUs/2.2.1/platform/boards/st/common -IC:/Qt/QtMCUs/2.2.1/platform -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Drivers/BSP/STM32H750B-Discovery -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Projects/STM32H750B-DK/Templates/Template_Project/Inc -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Drivers/STM32H7xx_HAL_Driver/Inc -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Drivers/CMSIS/Device/ST/STM32H7xx/Include -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Utilities -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Utilities/Fonts -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Drivers/BSP/Components -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Drivers/BSP/Components/Common -IC:/Qt/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0/Drivers/CMSIS/Include -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -fno-exceptions -fno-non-call-exceptions -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-rtti -fno-threadsafe-statics -Os -DNDEBUG -Wall -Wextra -Werror -Wshadow -Wfloat-equal -Wno-unused-parameter -Wno-unused-variable -mthumb -mapcs -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -MD -MT platform/CMakeFiles/Platform.dir/common/baremetal/mem_info.cpp.obj -MF platform\CMakeFiles\Platform.dir\common\baremetal\mem_info.cpp.obj.d -o platform/CMakeFiles/Platform.dir/common/baremetal/mem_info.cpp.obj -c C:/Qt/QtMCUs/2.2.1/platform/common/baremetal/mem_info.cpp
      C:/Qt/QtMCUs/2.2.1/platform/common/baremetal/mem_info.cpp: In function 'uint32_t Qul::Platform::Private::getStackUsage()':
      C:/Qt/QtMCUs/2.2.1/platform/common/baremetal/mem_info.cpp:62:79: error: array subscript 72 is outside array bounds of 'volatile int [1]' [-Werror=array-bounds]
         62 |              stackInc > 0 ? stack > reinterpret_cast<volatile int *>(current) + 72 * stackInc
            |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      C:/Qt/QtMCUs/2.2.1/platform/common/baremetal/mem_info.cpp:41:18: note: while referencing 'tempStackVariable'
         41 |     volatile int tempStackVariable = 0;
            |                  ^~~~~~~~~~~~~~~~~
      cc1plus.exe: all warnings being treated as errors
      [120/1317] Building CXX object src/CMakeFiles/Core.dir/path/path.cpp.obj
      ninja: build stopped: subcommand failed.
      

      Attachments

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

        Activity

          People

            shrinathw Shrinath Wadkar
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes