"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"

Hi,

Getting below error while building code in cces,

"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_prio.c".
Compilation terminated.
1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_msg.c".
Compilation terminated.
cc3089: fatal error: Compilation failed (code:4)
cc3089: fatal error: Compilation failed (code:4)
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_int.c".
Compilation terminated.
make: *** [system/uCOS-III/Source/os_prio.doj] Error 1
make: *** Waiting for unfinished jobs....
cc3089: fatal error: Compilation failed (code:4)
make: *** [system/uCOS-III/Source/os_msg.doj] Error 1
make: *** [system/uCOS-III/Source/os_int.doj] Error 1
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_core.c".
Compilation terminated.
cc3089: fatal error: Compilation failed (code:4)
make: [pre-build] Error 10 (ignored)
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_pend_multi.c".
Compilation terminated.
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_cfg_app.c", line 38: cc2388: catastrophic error: cannot open source file "os_cfg_app.h"
#include <os_cfg_app.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_cfg_app.c".
Compilation terminated.
cc3089: fatal error: Compilation failed (code:4)
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\TLS\CCES\../../Source/os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

make: *** [system/uCOS-III/Source/os_core.doj] Error 1
cc3089: fatal error: Compilation failed (code:4)
1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\TLS\CCES\os_tls.c".
Compilation terminated.
make: *** [system/uCOS-III/Source/os_pend_multi.doj] Error 1
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

cc3089: fatal error: Compilation failed (code:4)
make: *** [system/uCOS-III/Source/os_cfg_app.doj] Error 1
1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_dbg.c".
Compilation terminated.
make: *** [system/uCOS-III/TLS/CCES/os_tls.doj] Error 1
cc3089: fatal error: Compilation failed (code:4)
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_mem.c".
Compilation terminated.
' '
make: *** [system/uCOS-III/Source/os_dbg.doj] Error 1
cc3089: fatal error: Compilation failed (code:4)
make: *** [system/uCOS-III/Source/os_mem.doj] Error 1
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_flag.c".
Compilation terminated.
cc3089: fatal error: Compilation failed (code:4)
make: *** [system/uCOS-III/Source/os_flag.doj] Error 1
"C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os.h", line 55: cc2388: catastrophic error: cannot open source file "os_cfg.h"
#include <os_cfg.h>
^

1 catastrophic error detected in the compilation of "C:\Analog Devices\uCOS-III-Rel2.7.0\uCOS-III\common\uCOS-III\Source\os_mutex.c".
Compilation terminated.
cc3089: fatal error: Compilation failed (code:4)
make: *** [system/uCOS-III/Source/os_mutex.doj] Error 1

15:59:19 Build Finished (took 11s.370ms)

Is there any step I am missing here?

Thanks and Regards,

Nikesh

  • +1
    •  Analog Employees 
    on Dec 23, 2020 8:45 AM

    Hi Nikesh,

    To avoid the build error, you have to include the file path in the project using "Additional include directories" option.

    To do the same go to project > Properties > C/C++ Build > Settings > CrossCore Blackfin C/C++ Compiler > Preprocessor > Additional Include Directories(I).In that add the location of the file which you want to include using add(+) button and click apply and close. You should now able to see the added file/folder in your project under includes folder.

    For example location: "${workspace_loc:/${ProjName}/Include}"

    If you are still facing the same issue, please share us the exact scenario that you are doing along with sample project to replicate the issue here. This will help us to assist you further.

    We request you to refer the settings for the examples available in the below installation path
    C:\Analog Devices\uCOS-III-Rel2.9.0\uCOS-III\Examples
     
    Regards,
    Santhakumari.K