Description of problem: The following command doesn't succeed on rawhide: $ echo "int main() {}" | clang $(llvm-config --cflags) -x c - It fails with: clang-7: error: unknown argument: '-fstack-clash-protection' I assume this is because llvm has been compiled with gcc, and using gcc instead of clang works. But it's a bit surprising being forced to compile clang plugins with gcc. Version-Release number of selected component (if applicable): clang version 7.0.1 (Fedora 7.0.1-2.fc30) How reproducible: Always Steps to Reproduce: 1. See above. Actual results: Fails as described above. Expected results: Succeeds, and generates an executable that does nothing.
> I assume this is because llvm has been compiled with gcc, and using gcc instead of clang works. Exactly. @tstellar, maybe clang should just issue a warning for this specific flag, instead of throwing an error?
This has been fixed upstream in LLVM by https://reviews.llvm.org/rL349068.
Great. Should we backport it to llvm-7 then?
Yes, let's backport it.
I'll take this one.
Submitted PR: https://src.fedoraproject.org/rpms/llvm/pull-request/9
llvm-7.0.1-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b2152f77e0
llvm-7.0.1-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b2152f77e0
llvm-7.0.1-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.