[llvm-bugs] [Bug 36467] New: Compiling Exim mailserver with clang and gold linker(-flto) the created archive files (.a) are invalid.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 21 06:27:31 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36467

            Bug ID: 36467
           Summary: Compiling Exim mailserver with clang and gold
                    linker(-flto) the created archive files (.a)  are
                    invalid.
           Product: new-bugs
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sami.djafari at gmail.com
                CC: llvm-bugs at lists.llvm.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180221/515a3b7a/attachment.html>


More information about the llvm-bugs mailing list