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.

Problems compiling on windows 7



I'm trying to compile an application for msp430 on windows 7 using CCS 5.1

I get these errors:

<Linking>
warning #10366-D: automatic library build: using library
   "C:\ti\ccsv5\tools\compiler\msp430\lib\rts430xl.lib" for the first time, so
   it must be built.  This may take a few minutes.
"c:/users/nadav/appdata/local/temp/tie457~1/obj/copy_decompress_none.asm", ERROR!  :
 [E1000]
         Unable to open temp macro library
           'C:\Users\Nadav\AppData\Local\Temp\032562': Permission denied

>> Compilation failure
gmake.exe[1]: *** [c:/users/nadav/appdata/local/temp/tie457~1/obj/copy_decompress_none.obj] Error 1
"c:/users/nadav/appdata/local/temp/tie457~1/obj/log.asm", ERROR!  :
 [E1000]
         Unable to open temp macro library
           'C:\Users\Nadav\AppData\Local\Temp\046722': Permission denied
....

I tried everything I can think of to solve the permission problem.

I'm logged in as administrator, Turned off UAC, set the permissions on the Temp folder to full permissions for all user, excluded the temp folder in the antivirus program..

Nothing, it does not compile.

when I look in the Temp folder I see the files created.

Can anybody help me?

Thanks,

Nadav

  • Hi Nadav,

    this does seem like it might be a permissions issue.  Did you try a different folder?  I know Win 7 has odd permissions on certain folders, for example the program files folders are pretty strict in Win 7 and it does not like programs writing there.

    Did you install as an administrator?

    Best Regards,
    LIsa

  • Hi Lisa,

    Yes I installed as admin. I also set CCS to run as administrator (in the compatibility options).

    The problem is not with the compilation of my project.My project is compiled in the directory I specified and it compiles OK.

    The problem is I needed to change the memory model of the project and CCS says it needs to compile rts430xl.lib for the first Time, and THAT uses the temp folder and fails.

    I can't find anywhere where you specify what folder to use (I tried changing the temp file directory  in the project settings but it didn't work (I changed the temp/assembly/preprocessing directories to another location and the rts430xl.lib is still compiled in the temp directory...)

    Nadav

  • OK, I've managed to compile it!!!!!

    Lisa's mentioning the temporary directory got me thinking about where CCS gets the temp directory location if it does not get it from the project properties (BTW, I think this is a bug! if I set a temp directory the ALL the compilations should use it) so I changed the TEMP/TMP environment variables to a different directory and then it managed to compile.

    Nadav

  • Hi Nadav,

    great, glad you managed to get things sorted out.

    All the best with development.

    Best Regards,
    Lisa

  • Lisa, Nadav,

    I got the same error with a new installed CCS5 version. Seems that CCS tries to change files in  \AppData\Local\Temp\ and didn't have permissions for this. Tried also to run CCS as admin, doesn't work!

    I tried also to change the temp folder location like Nadav sugested but I wasn't able to find these settings in CCS... can please anyone post a more detailed description how to fix this issue.

     Thanks and best regards,
    Tobias