[oe] binutils fails for AVR32

Ulf Samuelsson ulf.samuelsson at atmel.com
Sun Jul 20 22:31:13 UTC 2008


-----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-----




More information about the Openembedded-devel mailing list