Re: ppc64le: SLOF failed to rebuild: error: unrecognized argument in option '-mtune=generic'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 21, 2022 at 09:32:56AM +0000, Tom Hughes wrote:
> On 21/01/2022 09:29, Tom Hughes via devel wrote:
> >On 21/01/2022 09:08, Richard W.M. Jones wrote:
> >
> >>https://koji.fedoraproject.org/koji/taskinfo?taskID=81468000
> >>
> >>This seems like a compiler bug or a bug in the standard switches being
> >>added by RPM on ppc64le.  SLOF itself does not appear to add or adjust
> >>the -mtune flag.
> >
> >That's not even a ppc64le build, it's an x86_64 build using a cross
> >compiler from the gcc-powerpc64-linux-gnu package - that is actually
> >still 11.2 and hasn't been upgraded to 12 yet.
> >
> >I don't know where -mtune=generic comes from but a normal ppc64le
> >build uses -mcpu=power8 -mtune=power8 as it's defaults.
> 
> Ah the problem is that -mtune=generic is the x864_64 default which
> the spec is passing in CFLAGS because you're building on x86_64 but
> that doesn't work for the ppc64 cross compiler.

Indeed.  The weird thing is that something in redhat-rpm-config
changed:

redhat-rpm-config-206-1.fc36.noarch => builds OK
redhat-rpm-config-209-1.fc36.noarch => build fails

I cannot see what in the spec file could pull in the wrong cflags,
since it doesn't use %configure.  Not seeing it at the moment ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux