Re: Strange error from koji

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

 



https://github.com/tachoknight/libdispatch-packaging-fedora/blob/main/libdispatch.spec



On 2 Jun 2021, at 12:59, Tom Stellard wrote:

> On 6/2/21 10:57 AM, Ron Olson wrote:
>> Hm, I do have %global toolchain clang set, which interestingly enough was not picked up by the %cmake macro (thus my explicit setting of CXX and CC) so I guess for the time being I’ll revert to manually building without the macros. :\
>>
>
> Can you show me your full spec file?
>
> -Tom
>
>> On 2 Jun 2021, at 10:51, Tom Stellard wrote:
>>
>>     On 6/1/21 5:51 PM, Ron Olson wrote:
>>
>>         Hey all, I’m trying to build my package for EPEL and got a strange error
>>
>>         clang-11: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument]
>>         clang-11: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Werror,-Wunused-command-line-argument]
>>
>>       https://kojipkgs.fedoraproject.org//work/tasks/653/69120653/build.log <https://kojipkgs.fedoraproject.org//work/tasks/653/69120653/build.log>
>>
>>         The relevant section of the spec file is:
>>
>>         %build
>>         export CXX=clang++
>>         export CC=clang
>>         %cmake -G Ninja .
>>         %cmake_build
>>
>>         Is this a bug, or something I’m doing wrong? If it is a bug I’d be happy to file a ticket in Bugzilla, but I’m not sure which project to file it under.
>>
>>     Some of the default Fedora flags aren't supported by clang, so if you build in
>>     clang you need to use the clang equivalents of those flags. In rawhide,
>>     you can enable the correct flags by setting the macro:
>>
>>     %global toolchain clang
>>
>>     I'm not sure if this macro is supported in EPEL, though, so you may need
>>     to manually update the flags yourself.
>>
>>     -Tom
>>
>>         Ron
>>         _______________________________________________
>>         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/ <https://docs.fedoraproject.org/en-US/project/code-of-conduct/>
>>         List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines <https://fedoraproject.org/wiki/Mailing_list_guidelines>
>>         List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx <https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx>
>>         Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure <https://pagure.io/fedora-infrastructure>
>>
>>
_______________________________________________
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