Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

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

Posted by jesseb9900 on September 13, 2016

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/FreeRTOSforTIRM48andTMS570.html#SourceCodeOrg

A bunch of these errors are in the output:

**"C:/Users/jesse/Desktop/Stage Waternet/Software/Zips/FreeRTOSv9.0.0/FreeRTOS/Demo/CORTEXR4RM48TMS570CCS5/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-R4TICCS5 C/C++ Problem gmake: * [Common-Demo-Source/blocktim.obj] Error 1 CORTEX-R4TICCS5 C/C++ Problem gmake: * [Common-Demo-Source/comtest.obj] Error 1 CORTEX-R4TICCS5 C/C++ Problem gmake: * [Common-Demo-Source/countsem.obj] Error 1 CORTEX-R4TICCS5 C/C++ Problem gmake: * [Common-Demo-Source/death.obj] Error 1 CORTEX-R4TICCS5 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


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

Posted by rtel on September 13, 2016

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.


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

Posted by jesseb9900 on September 13, 2016

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!


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

Posted by rtel on September 13, 2016

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/ProjectWorkspaceRelativeFilePaths_Eclipse.html


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS