[llvm-bugs] [Bug 24959] New: Mismatch between binary and host architectures unless absolute path is given

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 28 03:58:12 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24959

            Bug ID: 24959
           Summary: Mismatch between binary and host architectures unless
                    absolute path is given
           Product: lldb
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: evangelos at foutrelis.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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 bug 20400.)

`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 )

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150928/f0d52e50/attachment.html>


More information about the llvm-bugs mailing list