Skip to main content
Visitor II
December 12, 2022
Question

I am trying to rebuild my project.stw with the cosmic c compiler, but it is stuck at compiling stage. It was working fine, and suddenly it couldn't compile. When I try to compile the c files in cosmic it shows another error as shown in the screenshot

  • December 12, 2022
  • 6 replies
  • 2571 views

0693W00000WKodGQAT.png0693W00000WKod1QAD.png

    This topic has been closed for replies.

    6 replies

    Graduate II
    December 12, 2022

    Doesn't look like a valid path.

    Check TMP and TEMP Environment variables

    Avoid spaces, periods, and weird non-English characters in path or project names.

    Install any new software recently?

    Does file in question exist?

    What are the attributes/rights on the file?

    Pulled from a network driver, repository, ZIP file, etc?

    Visitor II
    December 13, 2022

    I have the same problem. The compilation process stucks without any results or errores, when i try to use in project any function from SPL.

    Visitor II
    December 17, 2022

    Have you tried contacting Cosmic Software support?

    Visitor II
    January 3, 2023

    It's a bug in the latest COSMIC compiler (Version: 4.5.5).

    To check the installed version open C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Version.txt.

    I'm already in touch with COSMIC support.

    Explorer II
    January 4, 2023

    @Giovanni Preda​

    My goodness, thank you for posting this!! Was troubleshooting a couple of days before finding this.

    I am also trying to compile a program using the COSMIC compiler. Get this behaviour (stuck at build) in both ST Visual Develop and Visual Studio (using VisualGDB and thus COSMIC).

    Could it be worth downgrading the COSMIC version so I'm able to build again?

    Please do keep us posted about this issue!

    Visitor II
    January 4, 2023

    Could it be worth downgrading the COSMIC version so I'm able to build again?

    Yes, if you have an older version of the installer it will work just fine.

    I have an older (late 2021) installation of the COSMIC compiler on another PC that worked fine and it's version 4.5.4. Unfortunately I don't have the installer for it.

    I copied the 4.5.4 CXSTM8 folder to the non working 4.5.5 installation and it now works.

    Explorer II
    January 4, 2023

    Too bad, I don't have the installer either. Have only been working with COSMIC for a couple of weeks now...

    Visitor II
    January 5, 2023

    COSMIC confirmed that there is a bug in version 4.5.5.

    If you have an empty infinite loop il your code, there needs to be a nop instruction (or something else) inside of it.

    Example:

     while (1)
     {
    	_asm("nop");
     }