[LLVMdev] llvm-ld file not recognized: File format not recognized

Hongxu Chen leftcopy.chx at gmail.com
Thu Oct 10 08:47:07 PDT 2013


On Thu, Oct 10, 2013 at 9:10 PM, 李永超 [via LLVM] <
ml-node+s1065342n61932h83 at n5.nabble.com> wrote:

> Hi,
> When using llvm-ld to link .bc files(compiled with llvm-gcc with option
> --emit-llvm), I went into error like: file not recognized: File format not
> recognized.
>


>
> I was confused because llvm-ld is the LLVM linker to link llvm bitcode
> files together, then why this error occurred?
>
> I am using llvm 2.9 and the corresponding binary version of llvm-gcc.
>

Do you have to use llvm 2.9 to fulfill your work? llvm 2.9 is a relatively
old version and newer versions don't contain llvm-ld any longer.
For llvm-ld,  would you please share the exact error message? Or have a try
for llvm-link if you don't have a need to link llvm archieves?

>
> It will be appreciated if anyone of you can help.
>
> Cheers,
> Ben Li
>
> _______________________________________________
> LLVM Developers mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=61932&i=0>
>   http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://llvm.1065342.n5.nabble.com/llvm-ld-file-not-recognized-File-format-not-recognized-tp61932.html
>  To start a new topic under LLVM - Dev, email
> ml-node+s1065342n3h84 at n5.nabble.com
> To unsubscribe from LLVM, click here<http://llvm.1065342.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=bGVmdGNvcHkuY2h4QGdtYWlsLmNvbXwyfC0xMjc2Njc5OTI2>
> .
> NAML<http://llvm.1065342.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://llvm.1065342.n5.nabble.com/llvm-ld-file-not-recognized-File-format-not-recognized-tp61932p61939.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131010/f1e9deec/attachment.html>


More information about the llvm-dev mailing list