From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19396 invoked by alias); 16 Oct 2009 12:48:48 -0000 Received: (qmail 19385 invoked by uid 22791); 16 Oct 2009 12:48:47 -0000 X-SWARE-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from pluto.danlawinc.com (HELO pluto.danlawinc.com) (12.168.12.70) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Oct 2009 12:48:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by pluto.danlawinc.com (Postfix) with ESMTP id 957D11840002; Fri, 16 Oct 2009 08:48:38 -0400 (EDT) X-Spam-Score: -4.151 Received: from pluto.danlawinc.com ([127.0.0.1]) by localhost (pluto.danlawinc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YhixLnrezBBz; Fri, 16 Oct 2009 08:48:36 -0400 (EDT) Received: from NBDLFPWFC51 (unknown [192.168.1.127]) by pluto.danlawinc.com (Postfix) with ESMTP id 14DEA1840001; Fri, 16 Oct 2009 08:48:36 -0400 (EDT) From: "Ramesh C Satyavaram" To: "'John Dallaway'" Cc: Date: Fri, 16 Oct 2009 12:48:00 -0000 Message-ID: <000b01ca4e5e$cd03c870$7f01a8c0@danlawinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <4AD83E39.7050004@dallaway.org.uk> Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] RE: Error: Malloc.h :No such file or directory. X-SW-Source: 2009-10/txt/msg00106.txt.bz2 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