From: Robert Schuster <theBohemian@gmx.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: binutils fails for AVR32
Date: Sun, 10 Aug 2008 18:37:57 +0200 [thread overview]
Message-ID: <489F1965.2080806@gmx.net> (raw)
In-Reply-To: <g7ms6d$n91$1@ger.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1600 bytes --]
Hi,
Koen Kooi schrieb:
> Robert Schuster wrote:
>> Hi,
>> got an ngw100 and wanted to build angstrom for it and have the same
>> issues as Ulf with binutils-cross.
>
> If you work around that you'll notice that gcc-cross doesn't compile
> anymore :( I'm hoping to spend some time on it next week
Oh no. :$
I just prepared a patch that takes Ulf's approach and implements it
indepedent from $BUILD_SYS. I attached the patch but when you say this
will break gcc-cross it is probably moot.
>, but don't let that stop you from fixing it yourself :)
This is my first encounter with AVR32. :)
I just looked at the Makefile that is generated for binutils 2.18.50.0.7
(machine = beagleboard). The *_CONFIGARGS variables do not contain
stuff like host_alias and CC there. I suspect that due to some weird
script problem (perhaps quoting?) things end up in the *_CONFIGARGS
variables that should not be there. The three variables are supposed to
contain the arguments given to the initial 'configure' but in the
avr32's case they contain environment variables.
As Ulf already told it all leads to ac_configure_args (or ac_arg). The
shell code that generates it is different for our binutils (avr32) 2.17
and 2.18.50.0.7. The former is created by autoconf 2.61 (AFAIU it is
re-generated after the avr32 patch is applied), while the latter is
created by 2.61.
--
While writing this my build has failed at gcc-cross. The compiler
crashes while compiling the Objective C library. As a workaround I
disabled it and now it works. So many bugs ... :|
Regards
Robert
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: oe-binutils-avr32-compilefix.patch --]
[-- Type: text/x-patch; name="oe-binutils-avr32-compilefix.patch", Size: 1182 bytes --]
#
# old_revision [20adcf1d7f147947dc29ead2037c53133b6eb39f]
#
# patch "packages/binutils/binutils-avr32.inc"
# from [7d4de5cdff8cbe23a79ceaf4ae9d202ba3b70583]
# to [32742801acaf13d8d36e0bccb714fea20c6053da]
#
============================================================
--- packages/binutils/binutils-avr32.inc 7d4de5cdff8cbe23a79ceaf4ae9d202ba3b70583
+++ packages/binutils/binutils-avr32.inc 32742801acaf13d8d36e0bccb714fea20c6053da
@@ -18,6 +18,14 @@ do_avr32_configure_bfd () {
do_avr32_configure_bfd () {
if test ${TARGET_ARCH} == avr32; then
+ # fix Makefile brokenness due to unmatched single quotes
+ (cd ${B} && sed -i -e "s,'CC=ccache,'CC=${CC}'," Makefile)
+ # *_alias options are not supported in binutils 2.17 and need
+ # to be removed
+ (cd ${B} && sed -i -e "s,'host_alias=.*',," Makefile)
+ (cd ${B} && sed -i -e "s,'build_alias=.*',," Makefile)
+ (cd ${B} && sed -i -e "s,'target_alias=*.',," Makefile)
+
(cd ${B} && make configure-bfd) || die "Error running 'make configure-bfd'"
(cd ${B}/bfd && make headers) || die "Error running 'make headers'"
fi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
next prev parent reply other threads:[~2008-08-10 16:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-20 22:31 binutils fails for AVR32 Ulf Samuelsson
2008-07-20 22:57 ` Ulf Samuelsson
2008-07-22 17:42 ` Leon Woestenberg
2008-08-10 13:19 ` Robert Schuster
2008-08-10 13:58 ` Koen Kooi
2008-08-10 16:37 ` Robert Schuster [this message]
2008-10-03 11:46 ` Robert Wörle
2008-10-03 15:26 ` Koen Kooi
2008-10-04 8:38 ` Robert Wörle
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=489F1965.2080806@gmx.net \
--to=thebohemian@gmx.net \
--cc=openembedded-devel@lists.openembedded.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.