Simulink® Model Build Error Unable to Find Toolchain for Veristand in a Linux PC

Updated Jul 6, 2026

Reported In

Software

  • VeriStand
  • MATLAB
  • Simulink

Operating System

  • Linux

Issue Details

I have a MATLAB®/Simulink® model running on a Linux host machine. I am using VeriStand Model Generation Support to generate a model for my Veristand project. When I attempt to build the model, I receive an error indicating that the toolchain cannot be found.

 

How can I fix this issue?

Solution

This issue typically occurs when the required GNU compiler toolchain for NI Linux Real-Time is not installed or not properly configured. Follow these steps to resolve the issue:
  1. Install the GNU C & C++ Compile Tools or C/C++ Development Tools for NI Linux Real-Time compatible with your VeriStand version.
  2. Verify toolchain compatibility
  3. Verify that the toolchain is correctly installed and available in the system environment (for example, included in system paths if required), by running the following commands:
    • gcc --version
    • where gcc
  4. Reopen MATLAB and rebuild the model
    • Restart MATLAB after installing the toolchain.
    • Go to Code Generation in the model settings.
    • Change the current toolchain to the Linux Toolchain from the Toolchain drop down menu.

 

    • Build the model.