<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 - llvm-config generates options that are incompatible with clang++"
href="https://bugs.llvm.org/show_bug.cgi?id=40678">40678</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-config generates options that are incompatible with clang++
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>7.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>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>michael.finn.jorgensen@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21460" name="attach_21460" title="Output from "llvm-config --cxxflags"">attachment 21460</a> <a href="attachment.cgi?id=21460&action=edit" title="Output from "llvm-config --cxxflags"">[details]</a></span>
Output from "llvm-config --cxxflags"
I have a minimal C++ file (named test.cc), and I try to compile it with clang++
and llvm-config.
I run the command:
clang++ `llvm-config --cxxflags` test.cc
This command fails with the error:
clang-7: error: unknown argument: '-fstack-clash-protection'
If I run "llvm-config --cxxflags" alone I see that the problematic option is
indeed part of the output. The full output is attached.
I believe this is an error, and that the options generated by the llvm-config
command should all be accepted by the clang++ command.
Additional information:
I can compile the given file test.cc without problems if I don't invoke
llvm-config, i.e. the following command works without error:
clang++ test.cc
The versions I'm using are: 7.0.1 for both clang++ and llvm-config.
I'm using Fedora 29 (64-bit).
P.S. This is all part of a large project (not my own) on github
(<a href="https://github.com/ghdl/ghdl">https://github.com/ghdl/ghdl</a>).</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>