<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Mismatch between binary and host architectures unless absolute path is given"
href="https://llvm.org/bugs/show_bug.cgi?id=24959">24959</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Mismatch between binary and host architectures unless absolute path is given
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>evangelos@foutrelis.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The following behavior in LLDB 3.7.0 seems quite weird; unless I specify an
absolute path, lldb will refuse to create a target for an executable that
exists in $PATH. If I specify an absolute path then it works fine. (Perhaps
related to <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Ubuntu & Debian failing to find architecture for native binaries (and many other test failures)"
href="show_bug.cgi?id=20400">bug 20400</a>.)
`llvm-config --host-target` prints "i686-pc-linux-gnu".
Bellow is an lldb session that showcases the issue:
(lldb) target create ls
error: '/usr/bin/ls' doesn't contain any 'host' platform architectures: i686
(lldb) target create /usr/bin/ls
Current executable set to '/usr/bin/ls' (i386).
(lldb) target list
Current targets:
* target #0: /usr/bin/ls ( arch=i386-unknown-linux, platform=remote-linux )</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>