From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13841 invoked by alias); 23 Jan 2008 06:32:37 -0000 Received: (qmail 13833 invoked by uid 22791); 23 Jan 2008 06:32:37 -0000 X-Spam-Check-By: sourceware.org Received: from blu139-omc2-s22.blu139.hotmail.com (HELO blu139-omc2-s22.blu139.hotmail.com) (65.55.175.192) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 23 Jan 2008 06:32:09 +0000 Received: from BLU111-W46 ([65.55.162.186]) by blu139-omc2-s22.blu139.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 22 Jan 2008 22:32:07 -0800 Message-ID: From: ANILA SOOMRO To: Mike Arthur CC: Antoine Zen-Ruffinen , eCos Mailing List Date: Wed, 23 Jan 2008 06:32:00 -0000 In-Reply-To: <2a3305fe0801221027o7553ed10of121278cb931604f@mail.gmail.com> References: <2cbbd8de0801110231p559aa23dqd024ecb07a47a40b@mail.gmail.com> <2cbbd8de0801110431q2a7fd7bfh4350b8b79df1f413@mail.gmail.com> <2cbbd8de0801140451v4f862e16mdfd9e68ed7f4603@mail.gmail.com> <2a3305fe0801221027o7553ed10of121278cb931604f@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: RE: [ECOS] target.ld error X-SW-Source: 2008-01/txt/msg00138.txt.bz2 It helped. Thanks. I was building the kernel library with the right compiler but the problem w= as with my path. After adding the path to XP settings, everything started w= orking. However when I run the program I get the following instead of the program o= utput: Starting program: /ecos-c/ecos-work/PPC_install/a.out core_find_mapping() - access to unmaped address, attach a default map to ha= ndle this - addr=3D0xf000101a nr_bytes=3D0x1 processor=3D0xc871c0 cia=3D0x4514 I don't know how to get around this. Also, let me tell you when I use the c= onfig tool to build the library for PowerPC simulator target, I get certain= conflicts. I just continue building. Is the above error due to the conflic= ts? Thanks dranne > Date: Tue, 22 Jan 2008 12:27:14 -0600 > From: arth2219@gmail.com > To: dranne27@hotmail.com > Subject: Re: [ECOS] target.ld error > CC: antoine.zen@gmail.com; ecos-discuss@ecos.sourceware.org > >> I choose the PowerPC simulator target and build it. > > Did you build your kernel library with the PowerPC compiler or your > native compiler (gcc) ? What's the value of > CYGBLD_GLOBAL_COMMAND_PREFIX in your kernel configuration? > > If you don't know how to find the value of CYGBLD_GLOBAL_COMMAND_PREFIX: > 1.) Select Edit -> Find... in the ConfigTool. A find dialog box should po= p up. > 2.) Set the "Search In" field to "Macro Names" > 3.) Search for CYGBLD_GLOBAL_COMMAND_PREFIX > > It should be "powerpc-eabi-". If it is, then you've been compiling > with the powerpc-eabi-gcc compiler that's on your Windows machine. > That's a good thing! > > >> My installation or build directory is c:\eCos-Work\PPC_install. >> After doing this and following the user guide, I try to compile the hell= o.c example. >> When I use the powerpc-eabi-gcc command, I get this error: bash: powerpc= -eabi-gcc: command not found. > > This means that either you don't have have the powerpc-eabi-gcc > compiler, or (more likely) that the command's path is not in your PATH > environment variable. > > Usually the eCos cross compilers reside in C:\cygwin\opt\gnutools. My > powerpc-eabi-gcc resides in: > > C:\cygwin\opt\gnutools\powerpc-eabi\bin\powerpc-eabi-gcc > > Make sure to use a cygwin formatted path (i.e. /cygdrive/c/...). > > Hope this helps, > Mike _________________________________________________________________ Helping your favorite cause is as easy as instant messaging.=A0You IM, we g= ive. http://im.live.com/Messenger/IM/Home/?source=3Dtext_hotmail_join -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss