Summary: | app-forensics/afl fails to build with sys-devel/llvm-3.8.1-r2[default-compiler-rt default-libcxx]: unable to load plugin '../afl-llvm-pass.so': '../afl-llvm-pass.so: undefined symbol | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | jo77ah |
Component: | Current packages | Assignee: | Hanno Böck <hanno> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ago, jaak, jstein, llvm, pageexec, quentin, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log
afl-2.35b.ebuild-force-clang-rtlib-stdlib.patch |
Description
jo77ah
2016-09-25 14:52:22 UTC
I'm checking. Created attachment 447868 [details]
build log
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]
afl-2.35b.ebuild-force-clang-rtlib-stdlib.patch
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. *** Does this bug still appear with current sys-devel/llvm versions, or can we close the ticket? fixed IMO |