From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21941 invoked by alias); 21 Jan 2009 19:48:57 -0000 Received: (qmail 21930 invoked by uid 22791); 21 Jan 2009 19:48:56 -0000 X-SWARE-Spam-Status: No, hits=-2.2 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; Wed, 21 Jan 2009 19:48:52 +0000 Received: from aamtaout03-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 <20090121194839.CCTX7670.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Wed, 21 Jan 2009 19:48:39 +0000 Received: from cog.dallaway.org.uk ([213.106.81.244]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090121194838.NEFF2093.aamtaout03-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Wed, 21 Jan 2009 19:48:38 +0000 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 n0LJmaSH020606; Wed, 21 Jan 2009 19:48:36 GMT Message-ID: <49777C14.8070201@dallaway.org.uk> Date: Wed, 21 Jan 2009 19:48:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.19 (X11/20090107) MIME-Version: 1.0 To: Jonathan Larmour CC: ecos-maintainers@ecos.sourceware.org Subject: Building RedBoot for SH3 targets with new toolchain Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-maintainers-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-maintainers-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00011.txt.bz2 Hi Jifl There is a problem linking RedBoot for all SH3 targets with the new sh-elf toolchain based on GCC 4.3.2. For example, linking RAM RedBoot for sh7708: > /var/local/releng/build/redboot/install/lib/extras.o: In function `fis_write': > /var/local/releng/ecos-3.0pre/packages/redboot/current/src/flash.c:1660: undefined reference to `___udivsi3_i4i' > /var/local/releng/build/redboot/install/lib/extras.o: In function `fis_erase': > /var/local/releng/ecos-3.0pre/packages/redboot/current/src/flash.c:1710: undefined reference to `___udivsi3_i4i' > /var/local/releng/build/redboot/install/lib/extras.o: In function `do_flash_init': > /var/local/releng/ecos-3.0pre/packages/redboot/current/src/flash.c:1920: undefined reference to `___udivsi3_i4i' > /var/local/releng/build/redboot/install/lib/extras.o: In function `fis_create': > /var/local/releng/ecos-3.0pre/packages/redboot/current/src/flash.c:1286: undefined reference to `___udivsi3_i4i' > /var/local/releng/build/redboot/install/lib/libtarget.a(hal_common_hal_if.o): In function `flash_fis_op2': > /var/local/releng/ecos-3.0pre/packages/hal/common/current/src/hal_if.c:264: undefined reference to `___udivsi3_i4i' > /var/local/releng/build/redboot/install/lib/libtarget.a(io_flash_flash.o):/var/local/releng/ecos-3.0pre/packages/io/flash/current/src/flash.c:595: more undefined references to `___udivsi3_i4i' follow > collect2: ld returned 1 exit status I note that the multi-libbing for sh-elf has changed, but for both old and new toolchains: > [jld@cog ~]$ sh-elf-gcc -m3 -print-multi-directory > m2 > [jld@cog ~]$ sh-elf-gcc -m3 -ml -print-multi-directory > ml/m2 > [jld@cog ~]$ The m2 and ml/m2 multi-libs exist in both toolchains. Building RedBoot for target sh4_202_md (an SH4 target) works fine with the new tools and building RedBoot for SH3 targets works fine with the old tools. Any idea what's going wrong here? John Dallaway