make: opicc: Command not found

Question:

I am trying to compile my model on Redhat but it crashes during Building the generated C code with the error "make: opicc: Command not found". What can I do?

 

Answer:

This is usually related to an OS mismatch between Redhat and Redhawk. RT-LAB officially supports Redhat only but it is workable with Redhawk as well. As the only officially supported OS is Redhat, whenever you try to use Redhat or Redhawk, RT-LAB sends the compilation command for Redhat, which is used with the Intel compiler. As the Intel compiler is not found on Redhawk, it crashes with this error.

The solution to use Redhawk with RT-LAB 10 is to bypass the Intel compiler and to request RT-LAB to send the command for Redhawk compiler: gcc. To do so, a simple user variable must be used:

RTLAB_INTEL_COMPILER = 0

Recompile your model.

 

More:

In case the user variable does not work and that you still have the same problem:

opicc and opicpc are links, found on Redhat, pointing to the Intel compiler. Normally, those links are created while installing Redhat and the Intel compiler. You will find attached a shell script that allows you to create those links. It must be executed on the compilation target.

1.Transfer the file from your host to the target using the ftp protocol. See this link if needed: http://www.opal-rt.com/kb-article/ftp-connection-rt-lab

2.The file should end up under /home/ntuser on the target. Open a telnet session and go to that directory. For help with telnet, see this link: http://www.opal-rt.com/kb-article/telnet-connection-rt-lab

3.Execute the script using the following command:

# bash install_compiler.sh

4.Reboot your target and try to compile again.

 

Keywords: opxiar ia32 iccvars.sh iccvars

install_compiler.rar - Install compiler shell file (.rar)