From: Gustavo Zacarias <gustavo@zacarias.com.ar>
To: buildroot@busybox.net
Subject: [Buildroot] AVR32 toolchain build failure
Date: Thu, 08 Aug 2013 07:56:20 -0300 [thread overview]
Message-ID: <52037954.9080408@zacarias.com.ar> (raw)
In-Reply-To: <20130808100303.2b0226dd@skate>
On 08/08/2013 05:03 AM, Thomas Petazzoni wrote:
> Dear Simon Dawson,
>
> On Thu, 8 Aug 2013 08:21:14 +0100, Simon Dawson wrote:
>
>> From my point of view, the ideal solution would be to reinstate uClibc
>> 0.9.31 support, and to lock the avr32 toolchain to that version of
>> uClibc. But I understand that this is likely to be unacceptable to
>> others.
>
> Gustavo, you're the one who removed uClibc 0.9.31. What would it take
> to reinstate it? Have we made some significant simplifications/cleanups
> that would be complicated to rework to bring back 0.9.31 support for
> AVR32 ?
Hi.
1) Reinstate patches in the appropiate place since uclibc was packaged.
2) Probably add various "depends on !BR2_avr32" in packages that need
newer syscalls (alternatively add a ton of backports for uclibc 0.9.31
from newer releases).
3) Revert startfiles cleanup to the old manual way, adding new
exceptions/modes for the noMMU crowd (it wasn't handled before) - or
alternatively also patch the uclibc 0.9.31 makefile to make it more
0.9.32/33-ish like.
That said, i can't get anywhere with the AVR32 toolchain, it's failing
very early on:
-----
/home/gustavoz/b/avr32/output/build/host-gcc-initial-4.2.2-avr32-2.1.5/build/./gcc/xgcc
-B/home/gustavoz/b/avr32/output/build/host-gcc-initial-4.2.2-avr32-2.1.5/build/./gcc/
-B/home/gustavoz/b/avr32/output/host/usr/avr32-buildroot-linux-uclibc/bin/
-B/home/gustavoz/b/avr32/output/host/usr/avr32-buildroot-linux-uclibc/lib/
-isystem
/home/gustavoz/b/avr32/output/host/usr/avr32-buildroot-linux-uclibc/include
-isystem
/home/gustavoz/b/avr32/output/host/usr/avr32-buildroot-linux-uclibc/sys-include
-O2 -g -Os -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -I. -I. -I../../gcc -I../../gcc/.
-I../../gcc/../include -I../../gcc/../libcpp/include
-I/home/gustavoz/b/avr32/output/host/usr/include
-I/home/gustavoz/b/avr32/output/host/usr/include
-I../../gcc/../libdecnumber -I../libdecnumber -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc -mrelax \
-c ../../gcc/crtstuff.c -DCRT_END \
-o crtend.o
/tmp/ccN15d7y.s: Assembler messages:
/tmp/ccN15d7y.s:12: Error: invalid register list `,lr'
/tmp/ccN15d7y.s:22: Error: invalid register list `,pc'
/tmp/ccN15d7y.s:36: Error: invalid register list `,pc'
/tmp/ccN15d7y.s:54: Error: invalid register list `,lr'
/tmp/ccN15d7y.s:68: Error: invalid register list `,pc'
make[2]: *** [crtbegin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/ccMp5aAy.s: Assembler messages:
/tmp/ccMp5aAy.s:12: Error: invalid register list `,lr'
/tmp/ccZ5kyzy.s: /tmp/ccMp5aAy.s:43: Assembler messages:
Error: invalid register list `,pc'
/tmp/ccZ5kyzy.s:10: /tmp/ccMp5aAy.s:61: Error: Error: invalid register
list `,lr'
invalid register list `,lr'/tmp/ccMp5aAy.s:75: Error: invalid register
list `,pc'
/tmp/ccZ5kyzy.s:25: Error: invalid register list `,pc'
-----
Which is documented (?!?!) upstream at
http://www.atmel.no/buildroot/buildroot-issues.html
So it seems any "modern" host gcc (4.6.x-ish here) will fail and the
solution is "use some old stuff".
There are patches for newer binutils and gcc in openwrt svn (for 2.20.1
and 4.4.7 respectively). I've tried in the past with them and hit some
issues too, though i don't remember OTOH what they were.
Also, these are pretty big patches, binutils being about 900 KiB and gcc
about 750 KiB, they wouldn't be pretty to carry around.
In my opinion, sorry if it hurts someone, we're going in circles trying
to keep up with a dead architecture, because that's what it is, no
matter how much support some people/companies want to give for their
products the onus shouldn't be on us that things weren't upstreamed in a
proper fashion which would make things far more simple.
Regards.
next prev parent reply other threads:[~2013-08-08 10:56 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 12:01 [Buildroot] AVR32 toolchain build failure Thomas De Schampheleire
2013-08-05 12:29 ` Thomas De Schampheleire
2013-08-06 9:27 ` Alexander Lukichev
2013-08-06 9:39 ` Alexander Lukichev
2013-08-06 14:40 ` Thomas De Schampheleire
2013-08-06 15:03 ` Thomas De Schampheleire
2013-08-08 15:35 ` Alexander Lukichev
2013-08-06 17:54 ` Thomas Petazzoni
2013-08-06 19:33 ` Thomas De Schampheleire
2013-08-07 7:05 ` Thomas De Schampheleire
2013-08-07 15:20 ` Thomas Petazzoni
2013-08-07 16:01 ` Thomas De Schampheleire
2013-08-07 18:20 ` Thomas De Schampheleire
2013-08-07 22:07 ` Thomas Petazzoni
2013-08-08 5:55 ` Thomas De Schampheleire
2013-08-08 7:21 ` Simon Dawson
2013-08-08 8:03 ` Thomas Petazzoni
2013-08-08 10:56 ` Gustavo Zacarias [this message]
2013-08-08 16:18 ` Simon Dawson
2013-08-08 17:57 ` Gustavo Zacarias
2013-08-08 17:59 ` Thomas Petazzoni
2013-08-13 6:15 ` Arnout Vandecappelle
2013-08-08 8:12 ` Thomas De Schampheleire
2013-08-08 16:09 ` Simon Dawson
2013-08-08 17:34 ` Thomas De Schampheleire
2013-08-08 17:57 ` Thomas Petazzoni
2013-08-08 18:05 ` Thomas De Schampheleire
2013-08-08 19:42 ` Simon Dawson
2013-08-08 20:09 ` Thomas De Schampheleire
2013-08-08 20:24 ` Thomas De Schampheleire
2013-08-08 22:22 ` Thiago A. Corrêa
2013-08-09 4:51 ` Alexander Lukichev
2013-08-09 7:16 ` Simon Dawson
2013-08-09 11:12 ` Thomas De Schampheleire
2013-08-09 20:29 ` Thomas Petazzoni
2013-08-09 22:34 ` Gustavo Zacarias
2013-08-08 7:29 ` Alexander Lukichev
2013-08-08 8:13 ` Thomas De Schampheleire
-- strict thread matches above, loose matches on Subject: below --
2013-11-13 21:36 Thomas Petazzoni
2013-11-14 8:53 ` Simon Dawson
2013-11-14 9:10 ` Thomas Petazzoni
2013-11-15 8:58 ` Simon Dawson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52037954.9080408@zacarias.com.ar \
--to=gustavo@zacarias.com.ar \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox