<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lld error @ thin-lto: --plugin-opt: unknown option: -debugger-tune=gdb"
   href="https://bugs.llvm.org/show_bug.cgi?id=36035">36035</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld error @ thin-lto: --plugin-opt: unknown option: -debugger-tune=gdb
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pawel_sikora@zoho.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>% /home/pawels/src/toolchain/llvm/sysroot/bin/clang -Wall -fuse-ld=lld -ggdb
-gdwarf-4 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Og -flto=thin
hello-world.c -o hello-world.c-lnx64

/home/pawels/src/toolchain/llvm/sysroot/bin/ld.lld: error: --plugin-opt: number
expected, but got 'g'
/home/pawels/src/toolchain/llvm/sysroot/bin/ld.lld: error: --plugin-opt:
unknown option: -debugger-tune=gdb
clang-6.0: error: linker command failed with exit code 1 (use -v to see
invocation)


the "-v" invocation shows one more possible bug, passing a non-existent
LLVMgold.so plugin to lld.


 "/home/pawels/src/toolchain/llvm/sysroot/bin/ld.lld" --hash-style=gnu
--no-add-needed --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o hello-world.c-lnx64
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
-L/usr/lib/gcc/x86_64-redhat-linux/7
-L/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/7/../../..
-L/home/pawels/src/toolchain/llvm/sysroot/bin/../lib -L/lib -L/usr/lib -plugin
/home/pawels/src/toolchain/llvm/sysroot/bin/../lib/LLVMgold.so
-plugin-opt=mcpu=x86-64 -plugin-opt=Og -plugin-opt=thinlto
-plugin-opt=-debugger-tune=gdb /tmp/hello-world-6028f6.o -lgcc --as-needed
-lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/x86_64-redhat-linux/7/crtend.o
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crtn.o</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>