From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10701 invoked by alias); 16 Oct 2009 09:35:01 -0000 Received: (qmail 10690 invoked by uid 22791); 16 Oct 2009 09:35:00 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtaout03-winn.ispmail.ntl.com (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Oct 2009 09:34:55 +0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091016093452.JTL17277.mtaout03-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Fri, 16 Oct 2009 10:34:52 +0100 Received: from cog.dallaway.org.uk ([213.106.93.52]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20091016093452.HQZV13254.aamtaout01-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Fri, 16 Oct 2009 10:34:52 +0100 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id n9G9Ynt1015800; Fri, 16 Oct 2009 10:34:50 +0100 Message-ID: <4AD83E39.7050004@dallaway.org.uk> Date: Fri, 16 Oct 2009 09:35:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Ramesh C Satyavaram CC: ecos-discuss@ecos.sourceware.org References: <001c01ca4daa$101d3890$7f01a8c0@danlawinc.com> In-Reply-To: <001c01ca4daa$101d3890$7f01a8c0@danlawinc.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00104.txt.bz2 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