llvm-objcopy --version won't work for 7.0.0 trunk
| Bugzilla Link | 38298 |
| Resolution | FIXED |
| Resolved on | Mar 12, 2019 09:11 |
| Version | trunk |
| OS | All |
| CC | @kamleshbhalui,@rupprecht,@yonghong-song |
| Fixed by commit(s) | rL342702 |
Extended Description
llvm-objcopy for 7.0.0 won't work for option "--version". It works fine for 6.0.0.
I did not find llvm-objcopy component, so I assign it to llvm-objdump. Please feel free assign to proper person/team. Thanks!
-bash-4.2$ llvm-objcopy --version llvm-objcopy: unknown argument '--version'. -bash-4.2$ llvm-objdump --version LLVM (http://llvm.org/): LLVM version 7.0.0svn Optimized build. Default target: x86_64-unknown-linux-gnu Host CPU: broadwell
Registered Targets: bpf - BPF (host endian) bpfeb - BPF (big endian) bpfel - BPF (little endian) x86 - 32-bit X86: Pentium-Pro and above x86-64 - 64-bit X86: EM64T and AMD64 -bash-4.2$
https://reviews.llvm.org/D52328 sent
Reopened it .since this is present in llvm trunk current llvm 8. looking into it.
bft$:~/bin$ ./llvm-objcopy --version ./llvm-objcopy: error: unknown argument '--version'.
I built the llvm manually from trunk with command:
cmake -G "Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="BPF;X86"
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/install ..
make -j100
make install
The llvm-objcopy produced by this command still has the issue with latest trunk. Not sure how this could make a difference compared to release build.
Since I have tried and it is working fine .Closing it.
It is working fine in my case
sir$:~/compiler/build-llvm7$ llvm-objcopy --version LLVM (http://llvm.org/): LLVM version 7.0.0svn Optimized build. Default target: x86_64-unknown-linux-gnu Host CPU: broadwell
Even this works:
sir$:~/compiler/build-llvm7$ llvm-objcopy -version LLVM (http://llvm.org/): LLVM version 7.0.0svn Optimized build. Default target: x86_64-unknown-linux-gnu Host CPU: broadwell
assigned to @rupprecht