GCC Compiler Error in Matlab™ When Compiling for NI VeriStand Real-Time Targets

Updated Sep 30, 2022

Reported In

Software

  • VeriStand
  • MATLAB
  • Simulink
  • VeriStand Model Framework

Issue Details

When trying to compile a Simulink™ model in Matlab™ using the NI_VeriStand_Linux_64.tlc file, the following error comes up:

1 (1).png
 

Solution

This error happens because the model is referencing a toolchain that does not exist in the system, but existed at some point as part of a different compilation method. In order to revert the metadata back to the expected compiler, you need to follow these steps in Matlab™:

    1. Go to the Model Settings.
    2. Change the TLC file to grt.tlc.
    3. In the Toolchain selection box, change to Automatically Select the Toolchain.
    4. Click OK to save the settings.
    5. Save the model.
    6. Go back to the model settings and change the TLC file back to NI_VeriStand_Linux_64.tlc.

This will update to model and delete the reference to the previous toolchain.