[llvm-bugs] [Bug 45271] New: When suffixed with a version, llvm-strip is no longer recognized as llvm-strip
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 21 19:08:25 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45271
Bug ID: 45271
Summary: When suffixed with a version, llvm-strip is no longer
recognized as llvm-strip
Product: tools
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: natechancellor at gmail.com
CC: alexander.v.shaposhnikov at gmail.com,
jake.h.ehrlich at gmail.com,
jh7370.2008 at my.bristol.ac.uk,
llvm-bugs at lists.llvm.org, rupprecht at google.com
Debian's apt.llvm.org symlinks all of the LLVM binaries from
/usr/lib/llvm-<num>/bin to /usr/bin/<tool_name>-<num> (e.g.
/usr/lib/llvm-11/bin/clang -> /usr/bin/clang-11) so that multiple versions of
clang can be installed and used at one time without stepping over each other.
After commit c54959c00d0 ("Introduce llvm-install-name-tool"), llvm-strip fails
to work in this configuration (as initially reported at
https://github.com/ClangBuiltLinux/linux/issues/940):
llvm-strip-11: error: unknown argument '-o'
This is because 'strip' is required to be the ending to the binary after this
change, whereas before the binary merely needed to contain 'strip'. I am not
familiar enough with LLVM data structures to try and fix this myself, hence
this report (maybe moving back to using sys::path::stem(...).contains(...)?).
Should you need to reproduce:
```
$ ln -s llvm-strip llvm-strip-11
$ echo | ./clang -c -x c - -o test.o
$ ./llvm-strip-11 -o test-stripped.o test.o
```
--
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/20200322/488ba028/attachment.html>
More information about the llvm-bugs
mailing list