<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Linux::AddClangSystemIncludeArgs() uses wrong paths"
href="https://bugs.llvm.org/show_bug.cgi?id=51914">51914</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linux::AddClangSystemIncludeArgs() uses wrong paths
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>12.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>libclang
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>christian.morales.vega@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>klimek@google.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Doxygen doesn't work <a href="https://github.com/doxygen/doxygen/issues/8783">https://github.com/doxygen/doxygen/issues/8783</a>, apparently
because of <a href="https://bugzilla.redhat.com/show_bug.cgi?id=2005620">https://bugzilla.redhat.com/show_bug.cgi?id=2005620</a>. But it doesn't
seem to be a Fedora-specific issue, but a generic issue that Ubuntu has been
patching for years
<a href="https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/snapshot/debian/patches/fix-clang-path-and-build.diff">https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/snapshot/debian/patches/fix-clang-path-and-build.diff</a>.
I could create a Ubuntu-style patch to fix the usage of
clang_parseTranslationUnit() that I need, but it would probably be better to
have a more generic fix upstream.
FWIW this is the CC1Args I have seen after adding a printf to the end of
Linux::AddClangSystemIncludeArgs().
-cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free
-main-file-name file.c -mrelocation-model static -mframe-pointer=all
-fallow-editor-placeholders -fmath-errno -fno-rounding-math
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic
-fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib64/clang/12.0.1
-internal-isystem /usr/local/include -internal-isystem
lib64/clang/12.0.1/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include
Not sure how the -resource-dir thing works. But if it were "-internal-isystem
/lib64/clang/12.0.1/include" instead of "-internal-isystem
lib64/clang/12.0.1/include" it would already work.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>