[ECOS] RE: Error: Malloc.h :No such file or directory.
Ramesh C Satyavaram
Fri Oct 16 12:48:00 GMT 2009
Thanks for your mail. I included the package "CYGPKG_MEMALLOC". After I
compile the ECOS , I am not able to find the malloc.h file. Instead of
malloc.h file, in the ECOS install directory I found memalloc.h file.
Do I need to include some other packages?
From: John Dallaway [mailto:email@example.com]
Sent: Friday, October 16, 2009 5:35 AM
To: Ramesh C Satyavaram
Subject: Re: Error: Malloc.h :No such file or directory.
Ramesh C Satyavaram wrote:
> I have old ecos tool chain. I am using the ARM(ARM7DI ,StronARM) which
> arm-elf for compiling. I am able to compile my application with this tool
> Now I decided to use the different ecos tool chain ARM (ARM7TDMI, ARM9,
> and Xscale) which is "arm-eabi" based.
> I am able to compile the ecos with the new tool chain. But when I tried to
> compile my application I am getting the following error message
> "Error:Malloc.h: No such file or directory" .
> When I tried to compile my application with the old tool chain on the same
> system , I am not getting this problem. It is only when I use the new tool
> chain I am getting this problem.
It sounds like the C pre-processor is finding a version of malloc.h in
the arm-elf toolchain when you compile your application code rather than
the version provided by the eCos package CYGPKG_MEMALLOC.
Make sure that you are using the correct compiler flags to compile your
application code. Typically, these should match the flags used by the
eCos build system when compiling eCos tests.
I hope this helps...
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss