Re: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument]

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

 



On Wed, Mar 23, 2022 at 6:55 PM Ron Olson <tachoknight@xxxxxxxxx> wrote:
>
> Hey all-
>
> I’m trying to build a new version of a package and got the aforementioned error, but only under EPEL 8, all other builds (Rawhide, F35, F34, EPEL 9) built fine. The failed build is at https://koji.fedoraproject.org/koji/taskinfo?taskID=84560380.
>
> I’m curious what I can do, but also to understand what causes this; I have this same behavior on a different package where under Rawhide I see the warning (but it doesn’t fail because the -Werror switch isn’t used), but under F35 there is no warning at all.
>
> Thanks for any info,

The "-specs" hardening option is used for gcc, and "--config"
is used for clang.

I believe (suspect) that the el8 redhat macros do not
specify the toolchain dependent hardening flags (which
would use --config for clang).

I have no clue if RH will update the macros in el8,
but I suspect you are going to have ro do your own
equivalent.
_______________________________________________
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