From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8686 invoked by alias); 8 Apr 2011 10:57:42 -0000 Received: (qmail 8677 invoked by uid 22791); 8 Apr 2011 10:57:42 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Apr 2011 10:57:36 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q89Nc-0001mW-N4 for ecos-discuss@sources.redhat.com; Fri, 08 Apr 2011 12:57:32 +0200 Received: from pro1.proekspert.ee ([212.47.207.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2011 12:57:32 +0200 Received: from tarmo.kuuse by pro1.proekspert.ee with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2011 12:57:32 +0200 To: ecos-discuss@sources.redhat.com From: Tarmo Kuuse Date: Fri, 08 Apr 2011 10:57:00 -0000 Message-ID: References: <55E5231BD2EB004EB1E67397C33B3A3E39ECF98D@ex004tcg> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110303 Lightning/1.0b1 Icedove/3.0.11 In-Reply-To: <55E5231BD2EB004EB1E67397C33B3A3E39ECF98D@ex004tcg> X-IsSubscribed: yes 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: Questions about CodeSourcery g++ Lite tool chain and eCos X-SW-Source: 2011-04/txt/msg00029.txt.bz2 Hi Eigil, On 05.04.2011 10:57, Eigil Krogh Sørensen wrote: > . Is it possible to use CodeSourcery g++ Lite toolchain for eCos? I would like to use that because the compiler is newer, gcc-4.5.1, than the gnutools for ARM, that comes with eCos, gcc-4.3. gcc-4.5. can make code ARM11 and Cortex-R/A. > > . Can CodeSourcery g++ Lite toolchain be used together with eCos config tool in Windows? > > . Which version of the CodeSourcery g++ Lite toolchain should be used with eCos? I have succesfully used Sourcery G++ Personal to compile and link eCos in Windows. The graphical config tool works. I assume the latest version of SG++ Lite also works, but you'll have to test this. It is a bit of a hassle, though. 1. SG++ is a native Windows program, meaning it expects Windows paths. Fortunately, it also supports CygWin paths. To enable this, the "cygpath" utility (installed with CygWin) must be made available: 1.1 Append your CygWin "/bin" directory to Windows path (right-click on My Computer, select "Properites", "Advanced", "Environment variables"). e.g. PATH="other stuff;C:\cygwin\bin" 1.2 Add a Windows system variable named "CYGPATH". Set it's value to "cygpath". 1.3 Start a new CygWin termial, verify that Bash shell can see both changes you made. 2. You need to add SG++ system headers to eCos. Before you do this the project should be cleaned. In eCos configuration tool, under "Configuration", "Global build options", "Global compiler flags" following options should be added: -isystem /cygdrive/c/Program\ Files/CodeSourcery/Sourcery\ G++\ Lite\lib/gcc/m68k-elf/4.3.3/include -isystem /cygdrive/c/Program\ Files/CodeSourcery/Sourcery\ G++\ Lite\lib/gcc/m68k-elf/4.3.3/include-fixed This assumes SG++ is installed to "C:\Program Files\CodeSourcery\Sourcery G++ Lite" and the GCC version is 4.3.3. Update this to match your setup. 3. Then ask the linker to not use it's standard library. Click on "Global linker flags". Add flag "-nostdlib". Now save the configuration and select "Build", "Generate build tree". 4. Do not start the build from within configtool because it will not pass environment variables to compiler. Instead, start a CygWin terminal, navigate to your eCos build directory, cross your fingers and type "make -j4". I may have forgotten some details, but this should be the bulk of it. -- Kind regards, Tarmo Kuuse -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss