李永超
2013-Oct-10 13:05 UTC
[LLVMdev] llvm-ld file not recognized: File format not recognized
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. It will be appreciated if anyone of you can help. Cheers, Ben Li -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131010/8e22d75e/attachment.html>
Tim Northover
2013-Oct-10 13:13 UTC
[LLVMdev] llvm-ld file not recognized: File format not recognized
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.Unfortunately, both llvm-gcc and llvm-ld are dead these days. I'm assuming you're on some OS X variant, in which case the preferred replacement for llvm-gcc is Clang. Dragonegg is a replacement GCC/LLVM bridge, primarily designed to allow people to run code in non-C/C++ languages that GCC supports (Fortran, Ada, ...). For llvm-ld, the task of linking together .bc files is now done by llvm-link. For its other features you'll want your system linker. Cheers. Tim.
Hongxu Chen
2013-Oct-10 15:47 UTC
[LLVMdev] llvm-ld file not recognized: File format not recognized
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>