This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Error: Malloc.h :No such file or directory.
- From: "Ramesh C Satyavaram" <rameshcs at danlawinc dot com>
- To: "'John Dallaway'" <john at dallaway dot org dot uk>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 16 Oct 2009 08:47:20 -0400
- Subject: [ECOS] RE: Error: Malloc.h :No such file or directory.
Hi John,
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?
Thank you,
S.Ramesh Chandra.
-----Original Message-----
From: John Dallaway [mailto:john@dallaway.org.uk]
Sent: Friday, October 16, 2009 5:35 AM
To: Ramesh C Satyavaram
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: Error: Malloc.h :No such file or directory.
Hi Ramesh
Ramesh C Satyavaram wrote:
> I have old ecos tool chain. I am using the ARM(ARM7DI ,StronARM) which
uses
> arm-elf for compiling. I am able to compile my application with this tool
> chain.
>
> 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...
John Dallaway
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss