llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

llvm-objcopy --version won't work for 7.0.0 trunk

Open yonghong-song opened this issue 8 years ago • 6 comments

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$

yonghong-song avatar Jul 25 '18 00:07 yonghong-song

https://reviews.llvm.org/D52328 sent

rupprecht avatar Sep 20 '18 23:09 rupprecht

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'.

kamleshbhalui avatar Sep 20 '18 05:09 kamleshbhalui

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.

yonghong-song avatar Sep 20 '18 04:09 yonghong-song

Since I have tried and it is working fine .Closing it.

kamleshbhalui avatar Sep 20 '18 02:09 kamleshbhalui

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

kamleshbhalui avatar Sep 19 '18 16:09 kamleshbhalui

assigned to @rupprecht

yonghong-song avatar Jul 25 '18 00:07 yonghong-song