Matlab 2018b MinGW64 6.3 build error binfo.mat: permission denied.
Show older comments
I wanted to build a simulink model for a NI linux rt (PXIe 8840) with Matlab 2018b. I installed Matlab 2018b, compiler MinGW64 6.3 and VeriStand 2020 R4 with the model framework.
Model configuration:

But if I try to build the model I get the error:
### Build procedure for model: 'Test_Linux' aborted due to an error.
Unable to write file E:****\Test_Linux\tmwinternal\binfo.mat: permission denied.
There is no such file and what permission do I need?
5 Comments
Walter Roberson
on 1 Jul 2022
you need write access to E:****\Test_Linux\tmwinternal folder
Robert Kotelnikow
on 4 Jul 2022
Walter Roberson
on 5 Jul 2022
Check
fileattrib E:****
fileattrib E:****\Test_Linux
fileattrib E:****\Test_Linux\tmwinternal
fileattrib E:****\Test_Linux\tmwinternal\binfo.mat
better yet would be to use File Explorer to examine the security of each location, in case there are unusual access control lists set.
I notice the "Test_Linux" part. Is this all writing through a network file system? If so then sometimes you are not told accurate access information until you try to do the writing (or file creation.) Likewise, if Test_Linux is a mounted filesystem from a different disk thatn E:**** then you might need to check carefully to be sure that the filesystem is not mounted read-only.
Robert Kotelnikow
on 5 Jul 2022
Edited: Robert Kotelnikow
on 5 Jul 2022
Walter Roberson
on 5 Jul 2022
Sorry, I do not know.
Answers (1)
Chetan
on 29 Dec 2023
0 votes
I understand you're facing a permission error while building a Simulink model for an NI Linux RT target.
This might be due to the other software restricting the file access such as antivirus or the Drive application
To tackle the permission issue during the build:
- Pause Sync Services: Temporarily stop any file synchronization services like OneDrive to avoid file access conflicts.
- Close Other Applications: Make sure no other programs are using or locking project files.
- Retry Building: With synchronization halted and antivirus off, attempt the build again.
- Set Service Exclusions: If successful, exclude your project folder from antivirus scans and file sync services.
Hope it helps !
Categories
Find more on Installing Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!