<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 - Compiling Exim mailserver with clang and gold linker(-flto) the created archive files (.a) are invalid."
href="https://bugs.llvm.org/show_bug.cgi?id=36467">36467</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compiling Exim mailserver with clang and gold linker(-flto) the created archive files (.a) are invalid.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</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>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sami.djafari@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>compiling Exim with setting CC=clang-5.0 -flto creates the object files as LLVM
IR Bitcode, and also the archive file that has a collection of these objects
become invalid.
--the NM output:
nm: auth-spa.o: File format not recognized
nm: call_pam.o: File format not recognized
nm: call_pwcheck.o: File format not recognized
nm: call_radius.o: File format not recognized
nm: check_serv_cond.o: File format not recognized
nm: cram_md5.o: File format not recognized
nm: cyrus_sasl.o: File format not recognized
nm: dovecot.o: File format not recognized
nm: get_data.o: File format not recognized
nm: get_no64_data.o: File format not recognized
nm: gsasl_exim.o: File format not recognized
nm: heimdal_gssapi.o: File format not recognized
nm: md5.o: File format not recognized
nm: plaintext.o: File format not recognized
nm: pwcheck.o: File format not recognized
nm: spa.o: File format not recognized
nm: tls.o: File format not recognized
nm: xtextdecode.o: File format not recognized
nm: xtextencode.o: File format not recognized
--The error on console is as follow:
clang-5.0 -flto -o exim_fixdb
auths/auths.a: error adding symbols: Archive has no index; run ranlib to add
one
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:641: recipe for target 'exim_fixdb' failed
make[1]: *** [exim_fixdb] Error 1
make[1]: Leaving directory
'/home/saman/exim/exim-clang5_2/exim/src/build-Linux-x86_64'
Makefile:35: recipe for target 'all' failed
make: *** [all] Error 2</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>