Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82907 - binutils-2.15.92.0.2-r3 fails to build with gcc-4.0.0.20050220
Summary: binutils-2.15.92.0.2-r3 fails to build with gcc-4.0.0.20050220
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-21 20:35 UTC by richard juckes
Modified: 2005-03-08 18:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to allow successful build of binutils with gcc-4.0.0.20052020 - fatally flawed! (binutils_gcc4.patch,1.04 KB, text/plain)
2005-02-21 20:37 UTC, richard juckes
Details
Correctly fixes the compile error (binutils-2.15.92.0.2-gcc4.patch,1.79 KB, patch)
2005-03-04 00:06 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description richard juckes 2005-02-21 20:35:35 UTC
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.
Comment 1 richard juckes 2005-02-21 20:37:37 UTC
Created attachment 51833 [details]
patch to allow successful build of binutils with gcc-4.0.0.20052020 - fatally flawed!
Comment 2 SpanKY gentoo-dev 2005-02-22 19:52:36 UTC
added to the 1.4 patchset, thanks !
Comment 3 richard juckes 2005-02-24 06:28:51 UTC
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 4 richard juckes 2005-02-25 03:17:17 UTC
Comment on attachment 51833 [details]
patch to allow successful build of binutils with gcc-4.0.0.20052020 - fatally flawed!

no use whatsoever
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-03-04 00:06:27 UTC
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. :)
Comment 6 Disenchanted (RETIRED) gentoo-dev 2005-03-04 00:16:53 UTC
reopening for mark, new details
Comment 7 SpanKY gentoo-dev 2005-03-04 07:36:57 UTC
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)
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-03-04 13:55:01 UTC
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.
Comment 9 Bret Towe 2005-03-04 15:22:53 UTC
the new patch works for me
binutils can accutally be built and rebuilt now without as segfaulting
Comment 10 SpanKY gentoo-dev 2005-03-08 18:36:16 UTC
added to binutils-2.15.92.0.2-r5