From 5544a1d8fb4cbaf1579769ddff7de2ed483365ac Mon Sep 17 00:00:00 2001 From: nrdmn Date: Fri, 26 Jun 2020 17:47:09 +0000 Subject: [PATCH] Updated Troubleshooting Build Issues (markdown) --- Troubleshooting-Build-Issues.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Troubleshooting-Build-Issues.md b/Troubleshooting-Build-Issues.md index 30860ef..26febe3 100644 --- a/Troubleshooting-Build-Issues.md +++ b/Troubleshooting-Build-Issues.md @@ -26,3 +26,11 @@ need to pass `ZIG_PREFER_CLANG_CPP_DYLIB` flag set to true like so: ``` cmake .. -DZIG_PREFER_CLANG_CPP_DYLIB=true ``` + +#### Gentoo + +Like Arch Linux' clang package, Gentoo's Clang is built without static libraries, so you'll need to pass `-DZIG_PREFER_CLANG_CPP_DYLIB=true` to cmake. + +If you get the message `: CommandLine Error: Option 'mc-relax-all' registered more than once!`, you're affected by the issue discussed in https://reviews.llvm.org/D75579. The fix has not (yet?) been included in clang 10.0.1. As a workaround, you can build clang with the line `add_clang_subdirectory(handle-llvm)` removed from clang/tools/clang-fuzzer/CMakeLists.txt. + +Additionally, you'll need lld's .a and .h files, which aren't installed by Gentoo's lld ebuild, so you'll need to modify your lld ebuild file to not delete them. \ No newline at end of file