Hi everyone,
I'm trying to compile a relatively small function "dataset_processing.m" using Matlab Compiler R2022b on a Linux machine, for later deployment as a standalone executable on another Linux machine. I compile in the Linux terminal with the following command:
mcc -m dataset_processing.m -a functions/ -d test_compiler/ -R -nodisplay
I obtain the following error:
Out of disk space. Failed to create CTF file. Please free 11515542204 bytes and re-run Compiler.
The requested CTF file size is huge (10.7 GB), so I suspect a problem. Indeed, I tested other compilations to compare: when testing a compilation on Windows with R2023b it works fine and the executable is 1.5 MB, and when testing on Linux with R2018b it works fine and the executable is 3 MB. Sadly, I cannot use Windows, nor Linux with R2018b because my code uses functions from recent releases. I also cannot free the required disk space because the Linux machine for compilation is a small dedicated server with limited disk space.
I also tried to compile with R2020b, R2021a, and R2021b, but I had the same issue. I tried to put the -C flag as compiler option to prevent creating a CTF file (from what I understood from the documentation) but the same error appeared.
Would someone have a solution to avoid creating the CTF file, or to prevent it from being that large?
Thank you in advance!
Laurent