Sedat Dilek via llvm-dev
2016-Jul-24 15:58 UTC
[llvm-dev] [llvm-3.8.1] /usr/bin/objcopy: unrecognized option '--extract-dwo'
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. ) Thanks. Regards, - Sedat - -------------- next part -------------- A non-text attachment was scrubbed... Name: build_llvm-toolchain.sh Type: application/x-sh Size: 6896 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160724/85680f8b/attachment.sh>
Sedat Dilek via llvm-dev
2016-Jul-24 16:17 UTC
[llvm-dev] [llvm-3.8.1] /usr/bin/objcopy: unrecognized option '--extract-dwo'
On Sun, Jul 24, 2016 at 5:58 PM, Sedat Dilek <sedat.dilek at gmail.com> 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'. >binuils v2.22 was released 2011-11-21 (see [1]) [2] says about --extract-dwo options... 2012-05-08 Cary Coutant <ccoutant at google.com> * doc/binutils.texi (objcopy): Add --strip-dwo, --extract-dwo options. (strip): Add --strip-dwo option. * objcopy.c (enum strip_action): Add STRIP_DWO, STRIP_NONDWO. (enum command_line_switch): Add OPTION_EXTRACT_DWO, OPTION_STRIP_DWO. (strip_options): Add --strip-dwo option. (copy_options): Add --extract-dwo, --strip-dwo options. (copy_usage): Likewise. (strip_usage): Add --strip-dwo option. (is_dwo_section): New function. (is_strip_section_1): Check for DWO sections. (copy_object): Check for --strip-dwo, --extract-dwo options. (copy_relocations_in_section): Discard relocations for DWO sections. Discard entire relocation section when no relocations. (strip_main): Add --strip-dwo option. (copy_main): Add --strip-dwo, --extract-dwo options. Hmm, Ubuntu/precise seems to be a bit outdated :-(. - Sedat - [1] https://ftp.gnu.org/gnu/binutils/ [2] https://github.com/bennoleslie/binutils/blob/master/binutils/ChangeLog#L259> 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. ) > > Thanks. > > Regards, > - Sedat -
David Blaikie via llvm-dev
2016-Jul-25 15:08 UTC
[llvm-dev] [llvm-3.8.1] /usr/bin/objcopy: unrecognized option '--extract-dwo'
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. - Dave> > Thanks. > > Regards, > - Sedat - > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160725/701d663b/attachment.html>
Sedat Dilek via llvm-dev
2016-Jul-27 09:40 UTC
[llvm-dev] [llvm-3.8.1] /usr/bin/objcopy: unrecognized option '--extract-dwo'
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
Seemingly Similar Threads
- [llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
- [llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
- [llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
- [LLVM/Clang v3.8.1] Missing Git branches/tags and source-tarballs?
- [LLVM/Clang v3.8.1] Missing Git branches/tags and source-tarballs?