[haiku-development] Hybrid builds

Hi all,

today I tried to use hybrid builds (specifically gcc4 with a gcc2 alternate). After updating buildtools etc, I started up the configure step for the gcc2, which worked fine.

Trying to build the gcc4 though failed. Here is some output:

- configure step:
../configure --build-cross-tools-gcc4 x86 ../../buildtools/ --alternative-gcc-output-dir ../generated-gcc2

- compile error:
gcc -DHAVE_CONFIG_H -I. -I/home/mauricek/dev/haiku/buildtools/binutils/gas -I. -D_GNU_SOURCE -I. -I/home/mauricek/dev/haiku/buildtools/binutils/gas -I../bfd -I/home/mauricek/dev/haiku/buildtools/binutils/gas/config -I/home/mauricek/dev/haiku/buildtools/binutils/gas/../include -I/home/mauricek/dev/haiku/buildtools/binutils/gas/.. -I/home/mauricek/dev/haiku/buildtools/binutils/gas/../bfd -I/home/mauricek/dev/haiku/buildtools/binutils/gas/../intl -I../intl -DLOCALEDIR="\"/home/mauricek/dev/haiku/host/generated-gcc4/cross-tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -c /home/mauricek/dev/haiku/buildtools/binutils/gas/app.c
cc1: warnings being treated as errors
/home/mauricek/dev/haiku/buildtools/binutils/gas/app.c: In function ‘do_scrub_chars’: /home/mauricek/dev/haiku/buildtools/binutils/gas/app.c:566: error: array subscript is below array bounds
make[4]: *** [app.o] Error 1
make[4]: Leaving directory `/home/mauricek/dev/haiku/host/generated-gcc4/cross-tools-build/binutils/gas'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mauricek/dev/haiku/host/generated-gcc4/cross-tools-build/binutils/gas'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mauricek/dev/haiku/host/generated-gcc4/cross-tools-build/binutils/gas'
make[1]: *** [all-gas] Error 2
make[1]: Leaving directory `/home/mauricek/dev/haiku/host/generated-gcc4/cross-tools-build/binutils'
make: *** [all] Error 2


Interestingly calling configure modifies file in the buildtools checkout, namely these:
M binutils/gas/doc/as.info
M binutils/binutils/doc/binutils.info
M binutils/bfd/doc/bfd.info
I guess it would be best to avoid this, but maybe there was no easy workaround for this.

I am using Debian etch together with gcc 4.3.2.

Am I missing something bloody obvious or is there really something broken?

Best Regards,
Maurice


Other related posts: