On Sat, Aug 01, 2020 at 01:28:09PM -0600, Jeff Law wrote:
On Sat, 2020-08-01 at 12:34 +0100, Richard W.M. Jones wrote:
> On Fri, Jul 31, 2020 at 05:32:34PM -0600, Jeff Law wrote:
> > On Fri, 2020-07-31 at 19:26 +0100, Richard W.M. Jones wrote:
> > > On Fri, Jul 31, 2020 at 12:02:22PM -0600, Jeff Law wrote:
> > > > Looks like it's in the buildroots now. Let me know if that
doesn't fix the
> > > > problem.
> > >
> > > Looks as if "ar" is segfaulting again ...
> > >
> > > https://koji.fedoraproject.org/koji/taskinfo?taskID=48288440
> > > https://kojipkgs.fedoraproject.org//work/tasks/8440/48288440/build.log
> > >
> > > That was built with binutils 2.35-8.fc33
> > Just an FYI binutils-2.35-9 is in the buildroots. It's got the fix for the
> > issue, but does not turn on LTO for binutils itself (that'll be in the -10
> > build).
> > I've confirmed that the -9 build will correctly build binutils-2.35-10.
> > also confirmed that the -9 build will correctly build libguestfs.
> > I'm going to take my local -10 build and use that to build libguestfs as
> > additional sanity check.
> Can confirm that libguestfs has been built correctly and is working (with LTO).
> FYI I filed this bug about LTO and inheriting warnings in functions
> inlined across files:
Yes, that's by design. Conceptually the compiler doesn't really know that the
pragma refers to any particular function since they don't appear in any function
scope. ASMs outside function scope have similar issues.
You could try moving the pragmas into function scope.
I'm not sure exactly what you mean, but this doesn't work (same
error as before):
--- test.c ---
test (int i)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstack-usage="
memset (str, 0, sizeof str);
#pragma GCC diagnostic pop
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.