sparc-rtems4.11-gcc error

Luca Cinquepalmi cinquepalmi at planetek.it
Mon Jul 30 14:20:01 UTC 2012


Thank you all!!! I simply forgot to insert CFLAGS in compilation options.
I compiled my program and tested it on my target board and it WORKS!!!:-)
Special thanks to Jiri for his patience...:-)

     Luca

Il 30/07/2012 15.57, Pierre Ficheux ha scritto:
> Le 30/07/2012 15:23, Luca Cinquepalmi a écrit :
>>
>> Supposing that I have a simple hello.c rtems file, could you please
>> indicate me the complete command line to compile it?
>
> You can use a Makefile such as the following:
>
> PGM=${ARCH}/hello.exe
>
> MANAGERS=all
>
> # C source names
> CSRCS = hello.c
> COBJS = $(CSRCS:%.c=${ARCH}/%.o)
>
> include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
> include $(RTEMS_CUSTOM)
> include $(PROJECT_ROOT)/make/leaf.cfg
>
> OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS)
>
> all:    ${ARCH} $(PGM)
>
> $(PGM): $(OBJS)
>     $(make-exe)
>
>
>
>
> 1- Set  RTEMS_MAKEFILE_PATH environment variable:
>
> $ export RTEMS_MAKEFILE_PATH=/opt/rtems-4.11/sparc-rtems/leon2
>
> 2- Compile with:
>
> $ make
>
>
>
>




More information about the users mailing list