<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 - llvm-ranlib does not support -D flag"
   href="https://bugs.llvm.org/show_bug.cgi?id=41707">41707</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-ranlib does not support -D flag
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>llvm-ar
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arichardson.kde@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have been trying to build FreeBSD (well CheriBSD actually) with llvm binutils
instead of elftoolchain utilities.
I noticed that building static archives was failing because ranlib is invoked
with the -D flag which is not supported by llvm-ranlib.

FreeBSD manpage:

     -D      When used in combination with the -r or -q option, with the -s
             option without other options, or when invoked as ranlib, insert
             0's instead of the real mtime, uid and gid values and 0644
             instead of file mode from the members named by arguments file
             ....  This ensures that checksums on the resulting archives are
             reproducible when member contents are identical.  This option is
             enabled by default.  If multiple -D and -U options are specified
             on the command line, the final one takes precedence.

GNU manpage:
       -D  Operate in deterministic mode.  The symbol map archive member's
header will show zero for the UID, GID, and timestamp.  When this option is
used, multiple runs will produce identical
           output files.

           If binutils was configured with --enable-deterministic-archives,
then this mode is on by default.  It can be disabled with the -U option,
described below.</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>