This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: cl430 fails with "Cannot open temporary command file 'C:\Windows\{uniqueID}': permission denied"

Other Parts Discussed in Thread: MSP430F2416

Tool/software: TI C/C++ Compiler

We have a complex build system requiring cygwin GNU Make 3.80 and mspgcc.  Switching to newly installed TI Compiler cl430 v 20.2.1.LTS, I get the error above when trying to build an object file.

But if I run the identical cl430 command line without using make, it works perfectly.

I have tried with --temp_directory and --obj_directory set, but no good.  TEMP and TMP are also set properly in Windows 7.

(Trying with TI included gmake 4.1 has other problems.)

Why are temp files being created in C:\Windows and how do I fix the problem?

Command line was:

cl430 --silicon_version=mspx --code_model=large --data_model=small --opt_level=4 --verbose_diagnostics -D=__MSP430F2416__ --use_hw_mpy=16 --silicon_errata=CPU19 -c11 --relaxed_ansi --auto_inline=10 --optimizer_interlist --gen_opt_info=2 --issue_remarks --display_error_number --pp_directory=.deps --preproc_dependency --preproc_with_compile   src/xxx.c

with a few -I and -pds settings too.