From: Ian Campbell Subject: Re: xen/x86: unable to build with gcc5 Date: Fri, 13 Mar 2015 13:35:48 +0000 Message-ID: <1426253748.32572.140.camel@citrix.com> References: <1426248035.32572.125.camel@citrix.com> <5502F3650200007800069CD1@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5502F3650200007800069CD1@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2015-03-13 at 13:25 +0000, Jan Beulich wrote: > >>> On 13.03.15 at 13:00, wrote: > > Error: size of boot.o:.text is 0x026c > > /build/gcc5/xen.git/xen/Rules.mk:180: recipe for target 'boot.init.o' failed > > > > $ objdump -t ./xen/arch/x86/efi/boot.o | grep -P '[^t]\.text[^\.]' > > 0000000000000000 l d .text 0000000000000000 .text > > 0000000000000000 l F .text 00000000000000e9 pre_parse.constprop.9 > > 00000000000000f0 l F .text 0000000000000123 get_value.constprop.10 > > 0000000000000220 l F .text 000000000000004c set_color.part.4.constprop.11 > > > > pre_parse, get_value and set_color are all annotated with __init, but I > > guess this is something else. Any idea what to do? Possibly a gcc bug? > > > > Building with -k -s I also see: > > > > Error: size of unxz.o:.text is 0x06b > > -> > > 0000000000000000 l d .text 0000000000000000 .text > > 0000000000000000 l F .text 000000000000006b dec_vli.isra.1 > > > > Error: size of dmi_scan.o:.text is 0x018f > > -> > > grep -P '[^t]\.text\b' > > 0000000000000000 l d .text 0000000000000000 .text > > 0000000000000000 l F .text 000000000000018f _dmi_iterate.constprop.6 > > The same with these other two cases too - they're properly > annotated. I.e. the compiler forgets to propagate the section > attribute when generating variants of the functions (e.g. after > having detected that it always gets called with some argument > set to some specific value). Do you want to report this as a bug > (assuming there isn't one already; I for one can't find any) from > the Debian side, or should I open one? I'll bounce the Debian Xen bug back to the Debian gcc package with your comments and I suppose the maintainer will then take it upstream. Ian.