[llvm-dev] [llvm-3.8.1] /usr/bin/objcopy: unrecognized option '--extract-dwo'

Sedat Dilek via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 27 02:40:19 PDT 2016


On Mon, Jul 25, 2016 at 5:08 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
> On Sun, Jul 24, 2016 at 8:59 AM Sedat Dilek via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>>
>> Hi,
>>
>> I am still struggling with my optimized/speedup build of llvm-toolchain
>> v3.8.1.
>> Here: Enable LTO, PGO, optimized-TableGen, split-DWARF and build with
>> GNU/gold and LLVMgold-plugin.
>>
>> The objcopy (binutils v2.22) here on Ubuntu/precise AMD64 does not
>> support '--extract-dwo'.
>>
>> My build fails with... /usr/bin/objcopy: unrecognized option
>> '--extract-dwo'.
>>
>> Now, I did a full build of binutils v2.26.1 and using its binaries.
>>
>> Is it possible to embed a test if objcopy is able to perform
>> '--extract-dwo'?
>> ( I cannot say which of the speedup options require this option. )
>
>
> split-DWARF requires objcopy's --extract-dwo. If your tools don't support
> it, turn off split DWARF & you should be fine.
>

[ CC Chris ]

Dave, Thanks for the explanations.
I have filed a bug, see [1].

- Sedat -

[1] https://llvm.org/bugs/show_bug.cgi?id=28737


More information about the llvm-dev mailing list