Compilation ERROR (FreeRTOS) on WinARM

OP #1172499
Rate this post
• ▲ useful
▼ not useful
Hello friends,

I am compiling the freeRTOS on WinARM for my own LPC2148 Board ,it
givies following errors

Can u please Help me out !!!!

The error is expecting the "specifier-qualifier-list before use of any
of the port based variable defined in the
/freeRTOS/source/portable/portmacro.h

Could anybody tell me what GCC CFLAGS expects such
specifier-qualifier-list before the basic data types...

Following are the ERRORS


-------- begin --------
arm-elf-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Assembling (ARM-only): crt0.S
arm-elf-gcc -c -mcpu=arm7tdmi  -I. -x assembler-with-cpp -DROM_RUN
-Wa,-adhlns=crt0.lst,-gdwarf-2 crt0.S -o crt0.o

Compiling C (ARM-only): demo/LEDFlash.c
arm-elf-gcc -c -mcpu=arm7tdmi  -I. -gdwarf-2 -DROM_RUN
-I../../Source/include -I./demo  -Os -Wall -Wcast-align -Wcast-qual
-Wimplicit  -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type
-Wshadow -Wunused -Wa,-adhlns=demo/LEDFlash.lst  -I./demo -MD -MP -MF
./LEDFlash.o.d -Wstrict-prototypes -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs  -std=gnu99 demo/LEDFlash.c -o
demo/LEDFlash.o
In file included from ../../Source/include/FreeRTOS.h:49,
                 from demo/LEDFlash.c:4:
../../Source/include/portable.h:133: error: expected '=', ',', ';',
'asm' or '__attribute__' before '*' token
../../Source/include/portable.h:146: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'xPortStartScheduler'
In file included from ../../Source/include/task.h:37,
                 from demo/LEDFlash.c:5:
../../Source/include/list.h:70: error: expected specifier-qualifier-list
before 'portTickType'
../../Source/include/list.h:80: error: expected specifier-qualifier-list
before 'portTickType'
../../Source/include/list.h:91: error: expected ':', ',', ';', '}' or
'__attribute__' before 'uxNumberOfItems'
In file included from demo/LEDFlash.c:5:
../../Source/include/task.h:62: error: expected specifier-qualifier-list
before 'portBASE_TYPE'
../../Source/include/task.h:200: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xTaskCreate'
../../Source/include/task.h:295: error: expected ')' before
'xTicksToDelay'
../../Source/include/task.h:354: error: expected ')' before '*' token
../../Source/include/task.h:401: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uxTaskPriorityGet'
../../Source/include/task.h:443: error: expected declaration specifiers
or '...' before '(' token
../../Source/include/task.h:563: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xTaskResumeFromISR'
../../Source/include/task.h:753: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xTaskResumeAll'
../../Source/include/task.h:769: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xTaskGetTickCount'
../../Source/include/task.h:783: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'uxTaskGetNumberOfTasks'
../../Source/include/task.h:810: error: expected ';', ',' or ')' before
'*' token
../../Source/include/task.h:831: error: expected ';', ',' or ')' before
'*' token
../../Source/include/task.h:844: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'ulTaskEndTrace'
../../Source/include/task.h:884: error: expected declaration specifiers
or '...' before 'portTickType'
../../Source/include/task.h:901: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xTaskRemoveFromEventList'
../../Source/include/task.h:940: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xTaskCheckForTimeOut'
demo/LEDFlash.c:10: error: expected ';', ',' or ')' before
'mainPRIORITY'
demo/LEDFlash.c: In function 'delay':
demo/LEDFlash.c:21: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'i'
demo/LEDFlash.c:21: error: 'i' undeclared (first use in this function)
demo/LEDFlash.c:21: error: (Each undeclared identifier is reported only
once
demo/LEDFlash.c:21: error: for each function it appears in.)
make.exe: *** [demo/LEDFlash.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:01
Moderator #1172500
Rate this post
• ▲ useful
▼ not useful
In the FreeRTOS package there are some examples prepared to be built
with an GNU arm-elf toolchain. Try to build these examples first to
verify that everything is installed correctly. The examples include
"setting-batch-files" and makefiles where you can see the
compiler/linker-options.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.