From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11973 invoked by alias); 9 May 2013 22:26:17 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 11962 invoked by uid 89); 9 May 2013 22:26:16 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 09 May 2013 22:26:15 +0000 Received: by mail-lb0-f175.google.com with SMTP id w20so3577660lbh.20 for ; Thu, 09 May 2013 15:26:13 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.161.38 with SMTP id xp6mr6333321lbb.32.1368138373412; Thu, 09 May 2013 15:26:13 -0700 (PDT) Received: by 10.112.137.100 with HTTP; Thu, 9 May 2013 15:26:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 09 May 2013 22:26:00 -0000 Message-ID: Subject: Re: Canadian build for AVR From: "jonsmirl@gmail.com" To: Martin Guy Cc: crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-05/txt/msg00022.txt.bz2 I'm making some progress. I'm currently stuck on this error. gcc -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../.././gcc/../include -I./../intl -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd -I../libdecnumber \ -o build/genflags.o ../.././gcc/genflags.c In file included from ../.././gcc/rtl.h:28:0, from ../.././gcc/genflags.c:28: ../.././gcc/real.h:77:13: error: size of array 'test_real_width' is negative make[6]: *** [build/genflags.o] Error 1 make[6]: Leaving directory `/home/apps/openwrt/build_dir/target-mipsel_uClibc-0.9.33.2/gcc-4.7.2/host-mipsel-openwrt-linux-uclibc/gcc' make[5]: *** [all-gcc] Error 2 On Thu, May 9, 2013 at 8:15 AM, jonsmirl@gmail.com wrote: > On Thu, May 9, 2013 at 6:49 AM, Martin Guy wrote: >> Hi Jon >> >> On 9 May 2013 00:32, jonsmirl@gmail.com wrote: >>> I've been trying to do a Canadian build for the Avr32 without much >>> success. I get lots of different compile failures depending on which >>> releases of the various components I pick. >>> >>> I used this approach.. >>> >>> apt-get install avc-gcc, etc... >> >> Sorry, are you working for the AVR or AVR32? They are two totally >> different processors, AVR has GCC support in mainline but not in >> crosstool-ng. AVR32 does not have support in mainline GCC but does in >> crosstool, thanks to several megabytes of patches for gcc-4.2.2, >> binutils-2.18 and newlib-1.17 > > Target is the 8-bit AVR. I was confused and thought that the AVR32 > compilers worked for both CPUs. I need the AVR8 gcc. > > So crosstool-ng is missing AVR8 support which is my final target. That > probably rules it out. > >> Mind you, I can't see GCC running on the 8-bit AVR processors, so I >> assume you mean AVR32, in which case you might start from here: >> http://spaces.atmel.com/gf/project/ct-ng/ >> which has patches for AVR32 for more versions, up to gcc-4.4.7. > > Compiler needs to run on a mipel with uclibc. > > So it is: > x86 --> mipsel (uclibs) --> AVR8 (bare metal) > > ---------------- > > I'm trying a couple of other schemes too... > Using the Openwrt cross build environment to make the AVR8 compiler. > I am missing all of the makefile for this and haven't found a combo > yet that builds. > > Using Debian on a mipel emulator. > I have the make files for the AVR8 compiler, but I need to figure out > how to modify them to build for mipsel/uclibc instead of normal > Debian. > > >> That said, the current AVR32 stuff in crosstool-ng only supports >> newlib on bare-metal targets if I understand correctly. What operating >> system environment platform are you wanting the ct-ng-generated >> compiler to run on? >> I think the AVR32 patches have support for uclinux (or had... I fear >> I may have diked that part out while pruning the patches for my >> project). Do you maybe have linux/uclibc running on AVR32? >> >> M > > > > -- > Jon Smirl > jonsmirl@gmail.com -- Jon Smirl jonsmirl@gmail.com -- For unsubscribe information see http://sourceware.org/lists.html#faq