All of lore.kernel.org
 help / color / mirror / Atom feed
* binutils fails for AVR32
@ 2008-07-20 22:31 Ulf Samuelsson
  2008-07-20 22:57 ` Ulf Samuelsson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ulf Samuelsson @ 2008-07-20 22:31 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I managed to complete the AT91SAM9263 build, but
now I am caught in the configure hell when trying the AVR32.


I first got stuck in the binutils build since CC is defined as
"'CC=ccache" in the binutils Makefile, and this should be
"'CC=ccache gcc'"

(<OpenEmbedded>/build-avr32/tmp/work/avr32-angstrom-linux-uclibc/ \
binutils-cross-2.17-r6/binutils-2.17/ \
build.i686-linux.avr32-angstrom-linux-uclibc/Makefile)

The failure means that the initial quote character is dangling free.

I tried to check binutils "configure" where this is defined
but came to the conclusion that this was part of "$ac_arg"
and have not managed to dig any further.


Managed to fix that by patching binutils-avr32.inc
Added:

(cd ${B} && sed -i -e "s,'CC=ccache,'CC=ccache gcc'," Makefile)

to "do_avr32_configure_bfd" but then when making "intl", there
is a complaint that both the build and host is i686-linux.

| Configuring in ./intl
| configure: warning: build_alias=i686-linux: invalid host type
| configure: warning: host_alias=i686-linux: invalid host type
| configure: error: can only configure for one host and one target at a time
| make[1]: *** [configure-intl] Error 1
| make[1]: Leaving directory
`/mnt/home/ulf/OpenEmbedded/build-avr32/tmp/work/avr32-angstrom-linux-uclibc/binutils-cross-2.17-r6/binutils-2.17/build.i686-linux.avr32-angstrom-linux-uclibc'
| make: *** [all] Error 2
| FATAL: oe_runmake failed

These problems seems to be caused by build_alias, host_alias and
target_alias beeing passed to "configure", but these are only
supported by binutils-2.18 and not 2.17 which is used by the AVR32.

I am adding
~ (cd ${B} && sed -i -e "s,'host_alias=i686-linux',," Makefile)
~ (cd ${B} && sed -i -e "s,'build_alias=i686-linux',," Makefile)
~ (cd ${B} && sed -i -e "s,'target_alias=avr32-angstrom-linux-uclibc',,"
Makefile)

to the do_avr32_configure_bfd

host_alias etc. should not be generated in the first place for
binutils-2.17...

Anyone got the AVR32 toolchain to build properly using a recent version?

BR
Ulf Samuelsson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIg7yxAyRRH5cXxqwRAiwtAJ9mgndjSDdeM/dgyHOR7wrjWOYMMACeNu/x
IK9zwA5tisI3ZSFeSkutq9Q=
=QY5Q
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-10-04  8:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-10-03 11:46 ` Robert Wörle
2008-10-03 15:26   ` Koen Kooi
2008-10-04  8:38     ` Robert Wörle

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.