# gmake: \*\*\* \[\] error 1 building FreeRTOS project

**URL:** <https://forums.freertos.org/t/gmake-error-1-building-freertos-project/6159>\
**Category:** Kernel\
**Created:** [September 13, 2016, 2:12pm UTC](https://forums.freertos.org/t/gmake-error-1-building-freertos-project/6159 "2016-09-13T14:12:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [September 13, 2016, 2:12pm UTC](https://forums.freertos.org/t/gmake-error-1-building-freertos-project/6159/1 "2016-09-13T14:12:15Z")

</div>

**[jesseb9900](https://sourceforge.net/u/jesseb9900/)** wrote on [Tuesday, September 13, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/b6bcde6b/#f201):

Good afternoon,

While trying to get started with FreeRTOS, I’ve came across a problem. I tried building the demo project for the TI Hercules Cortex R4 boards, but came across a few unidentifiable (by me) errors. I’ve followed the exact steps given in the tutorial. The only difference is I’m running CCS v6 instead of v5?

The link to the tut: [http://www.freertos.org/Free\_RTOS\_for\_TI\_RM48\_and\_TMS570.html#SourceCodeOrg](http://www.freertos.org/Free_RTOS_for_TI_RM48_and_TMS570.html#SourceCodeOrg)

A bunch of these errors are in the output:

\*\*“C:/Users/jesse/Desktop/Stage Waternet/Software/Zips/FreeRTOSv9.0.0/FreeRTOS/Demo/CORTEX\_R4\_RM48\_TMS570\_CCS5/FreeRTOSConfig.h”, line 75: fatal error #35: #error directive: Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.  
\*\*

And these are a few of the errors in the ‘Problems’ tab:

\*\*gmake: \* [Common-Demo-Source/BlockQ.obj] Error 1 CORTEX-R4\_TI\_CCS5 C/C++ Problem  
gmake: \* [Common-Demo-Source/blocktim.obj] Error 1 CORTEX-R4\_TI\_CCS5 C/C++ Problem  
gmake: \* [Common-Demo-Source/comtest.obj] Error 1 CORTEX-R4\_TI\_CCS5 C/C++ Problem  
gmake: \* [Common-Demo-Source/countsem.obj] Error 1 CORTEX-R4\_TI\_CCS5 C/C++ Problem  
gmake: \* [Common-Demo-Source/death.obj] Error 1 CORTEX-R4\_TI\_CCS5 C/C++ Problem  
\*\*

I’ve read other users had similar problems and most of the time it was due to a compiler issue. My compiler is the default (?) TI v15.12.3.LTS included in CCSv6

Anybody an idea? Perhaps installing a different compiler like MinWG or Cygwin?

Thanks, Jesse

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 13, 2016, 2:27pm UTC](https://forums.freertos.org/t/gmake-error-1-building-freertos-project/6159/2 "2016-09-13T14:27:28Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, September 13, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/b6bcde6b/#f201/d46d):

You are right in thinking that the compiler mismatch may cause an error.  
You can create a FreeRTOS project from TI’s HalCOGen tool too - where  
the compiler version will be correct, although I believe their FreeRTOS  
version is a little different to ours.

However, in this case the first problem seems to be documented in the  
out put you have posted:

> line 75: fatal error #35: #error directive: Ensure  
> CreateProjectDirectoryStructure.bat has been executed before building.  
> See comment immediately above.

Here you have hit a #error that is telling you to do something (run the  
batch file) after which you can delete the #error. It will not build as  
long as the #error is there.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [September 13, 2016, 2:43pm UTC](https://forums.freertos.org/t/gmake-error-1-building-freertos-project/6159/3 "2016-09-13T14:43:19Z")

</div>

**[jesseb9900](https://sourceforge.net/u/jesseb9900/)** wrote on [Tuesday, September 13, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/b6bcde6b/#2efa):

Ah thanks, fixed it.

I’ve ran the bat file before, so expected the message is only triggered when there is an actual error. I commented the error out and it build alright!

Actually weird right? I don’t suppose it is necessary to comment things out before able to build?

Thanks!

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 13, 2016, 2:48pm UTC](https://forums.freertos.org/t/gmake-error-1-building-freertos-project/6159/4 "2016-09-13T14:48:39Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, September 13, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/b6bcde6b/#2efa/cdef):

That is an old project that was created when Eclipse made it extremely  
[!] difficult to reference files that were outside of the project  
directory - hence a batch file is used to copy the necessary files  
(which are common to and built by all FreeRTOS demos) into the project  
directory. More recent versions of Eclipse only make it hard (rather  
than extremely hard) to reference files outside of the project directory  
so use the technique documented on the following link in place of the  
batch file:

[http://www.freertos.org/Project\_Workspace\_Relative\_File\_Paths\_Eclipse.html](http://www.freertos.org/Project_Workspace_Relative_File_Paths_Eclipse.html)
