<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - 'Malformed block', using libLTO version 'LLVM version 3.5svn'"
   href="http://llvm.org/bugs/show_bug.cgi?id=21577">21577</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'Malformed block', using libLTO version 'LLVM version 3.5svn'
          </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>All
          </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>kulakov.ilya@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm building OpenSSL using with LTO:

    ./Configure
        no-ssl2
        darwin64-x86_64-cc
        zlib-dynamic
        enable-cms
        shared
        -isysroot ...MacOSX10.10.sdk
        -mmacosx-version-min=10.8
        -mssse3
        -gdwarf-4
        -fslp-vectorize
        -fvectorize
        -flto
        -Xlinker -dead_strip
        -Xlinker -object_path_lto
        -Xlinker /tmp/$(@F).lto.o"

The same command worked for me many times. Then once it failed to build under
the exactly same environment with the following error:

ld: in libcrypto.a(tasn_typ.o), could not parse object file
libcrypto.a(tasn_typ.o): 'Malformed block', using libLTO version 'LLVM version
3.5svn' for architecture x86_64

I just deleted all intermediate files and started build from scratch and it
finished without a problem.</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>