Failed build of AVR cross-compiler with combined tree

Ulf Magnusson
Thu Nov 30 05:22:00 GMT 2006

I downloaded the binutils-2.17 and gcc-3.4.6 distributions and
attempted to build a cross-compiler for AVR using the following:

tar -xvjf binutils-2.17.tar.bz2
tar -xvjf gcc-3.4.6.tar.bz2
mkdir combined-tree && cd combined_tree
../binutils-2.17/symlink-tree ../gcc-3.4.6
../binutils-2.17/symlink-tree ../binutils-2.17
mkdir ../build && cd ../build
../combined_tree/configure --target=avr --enable-languages=c

The configuration step seems to go through fine, but after issuing
'make', the build process fails with the following error:

make[2]: Entering directory '/home/ulf/devel/avr/gcc/build/gcc'
../../combined-tree/gcc/../include/hashtab.h:111: syntax error,
unexpected ',', expecting '('
make[2]: *** [s-gtype] Error 1

Could the problem be that I'm combining versions of gcc and binutils
that should not be mixed? What versions are "safe" to combine in that

Should I report this as a bug?

/Ulf Magnusson

More information about the Gcc-help mailing list