Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26753

MCU: QtCreator using IAR kit requires to add C/C++ compiler to configure properly

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When using a kit with the IAR toolchain, after setting the path to IAR ARM Compiler in the MCU Device requirements (pic_1), the project configuration fails because the Kit doesn't have a C/C++ compiler specified

      You have changed variables that require your cache to be deleted.
      Configure will be re-run and you may have to reset some variables.
      The following variables have changed:
      CMAKE_C_COMPILER= 
      CMAKE_CXX_COMPILER= 
      
      -- The C compiler identification is IAR ARM 8.50.9
      -- The CXX compiler identification is IAR ARM 8.50.9
      -- The ASM compiler identification is IAR ARM 8.50.9
      -- Found assembler: /opt/iarsystems/bxarm/arm/bin/iasmarm
      CMake Error at /usr/share/cmake-3.16/Modules/CMakeDetermineASMCompiler.cmake:17 (message):
        Could not find compiler set in environment variable ASM_MASM:
      
        ml.
      Call Stack (most recent call first):
        /usr/share/cmake-3.16/Modules/CMakeDetermineASM_MASMCompiler.cmake:17 (include)
        CMakeLists.txt:3 (project)
      
      
      CMake Error: CMAKE_ASM_MASM_COMPILER not set, after EnableLanguage
      

      The NXP1050 IAR Kit shows warnings for missing C/C++ compilers (pic_2).

      After manually adding the C/C++ compilers to QtCreator (IAREW in pic_3) then the kit doesn't show anymore warnings (pic_4) and the project configures and builds fine.

      Not sure if it's a bug or should be documented somewhere that it is necessary to add manually once the IAR C/C++ compilers if not auto-detected.

      Attachments

        1. pic_1.png
          pic_1.png
          180 kB
        2. pic_2.png
          pic_2.png
          213 kB
        3. pic_3.png
          pic_3.png
          169 kB
        4. pic_4.png
          pic_4.png
          211 kB

        Issue Links

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

          Activity

            People

              christiaan.janssen Christiaan Janssen
              dbortolotti Daniele Bortolotti (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes