perl /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/binutils/../etc/texi2pod.pl -Dman -Dnm < /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/binutils/doc/binutils.texi > nm.pod In file included from ./targ-cpu.h:2, from /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/gas/config/obj-elf.h:43, from ./obj-format.h:2, from /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/gas/config/te-linux.h:5, from ./targ-env.h:2, from /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/gas/as.h:626, /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/gas/app.c:31: /var/tmp/portage/binutils-2.15.92.0.2-r3/work/binutils-2.15.92.0.2/gas/config/tc-i386.h:457: error: array type has incomplete element type make[3]: *** [app.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r3/work/build/gas' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r3/work/build/gas' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.15.92.0.2-r3/work/build/gas' make: *** [all-gas] Error 2 make: *** Waiting for unfinished jobs.... This is because of the change from warning to error in the latest snapshots. It also occured with binutils-2.15.92.0-rc2 and gcc-4.0.0.20050213 and the attached patch allowed binutils to build and the toolchain has remained functional for a week. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 51833 [details] patch to allow successful build of binutils with gcc-4.0.0.20052020 - fatally flawed!
added to the 1.4 patchset, thanks !
binutils-2.15.92.0.2-r4 compiled with gcc-4.0.0 20050220 is causing gcc segfaults. Ok when compiled with gcc-3.4.3
Comment on attachment 51833 [details] patch to allow successful build of binutils with gcc-4.0.0.20052020 - fatally flawed! no use whatsoever
Created attachment 52625 [details, diff] Correctly fixes the compile error This patch correctly fixes the compile error the previous patch tried to fix. Many thanks to Alan Modra for this one: http://sources.redhat.com/ml/binutils/2005-02/msg00393.html All of the patches he has there don't apply cleanly, and they seem to be warning cleanup only. This patch compiles fine for me on GCC4. I will compile it with gcc 3.3 and gcc 3.4 as well and comment here if it does not compile with them. This patch should make it so you can get rid of the old patch that was modified to make it so `as` just segfaults for us GCC4 people. :)
reopening for mark, new details
also make sure that you can build stuff with gcc-3.3 and gcc-3.4 ... the previous problems were that binutils compiled with those gcc's, they just did not run (as segfault like you said)
They all work like a charm. The patch broke `as' for all versions of GCC, not just 3.3 and 3.4. Currently with how the patch was changed due to it breaking `as' for everyone, it now just breaks for GCC4 people since you check what version of GCC it is being compiled with.
the new patch works for me binutils can accutally be built and rebuilt now without as segfaulting
added to binutils-2.15.92.0.2-r5