If sys-devel/llvm-3.8.1-r2 is compiled with USE="default-libcxx default-compiler-rt", afl fails to compile llvm_mode.
I don't have the old build.log around, but i could recompile llvm and reproduce it, if needed.
Created attachment 447868 [details]
that is the error i got.
CCing llvm team, maybe they have an idea.
I'm not familiar with these use flags.
Created attachment 452282 [details, diff]
Same error here. This can be worked around by forcing clang to use the standard stdlib and rtlib, see attached ebuild patch.
But then that makes it deviate from the user's choice to default to compiler-rt and libc++. I'm not sure that qualifies as a proper, tree-worthy fix.
I must admit I'm unfamiliar how the different compilers and standard libraries interact. Anyone from the llvm team wants to comment?
If we commit something to support that useflag combination I'd appreciate if I could get confirmation from some Gentoo dev familiar with that stuff that it's a good solution.
The whole issue looks weird. I don't know what AFL is supposed to do but it looks that the pass is missing libraries, and -stdlib/-rtlib exposing it is purely a coincidence.
*** Bug 663420 has been marked as a duplicate of this bug. ***