Richard Pennington
2013-Dec-21 22:51 UTC
[LLVMdev] How do I disable --version-script when cross compiling clang/LLVM on a Mac?
Hi, I asked this question a few days ago and didn't get any responses. I thought I'd try again with a little more detail. I am trying to cross compile my clang/LLVM based ELLCC cross development tools project (http://ellcc.org) on a Mac. I am targeting ARM/Linux. The build fails while building FileCheck (or tbl-gen or any of the other build tools built during the cross-compile-build-tools step) because the build rules try to pass the --version-script option to the linker. There is a lot of configure magic going on and I can't seem to find the spell that says not to use --version-script on a Mac. A little clarification of my problem. ELLCC builds fine on a Mac and creates executables that can be used to create ARM/Linux programs (or Mips/Linux, Microblaze/Linux, PowerPC/Linux, etc). The trouble I'm having is when I try to make ELLCC compile itself for the target. clang/LLVM needs several tools that it supplies that need to run on the build host. Those tools are being compiled properly as Mac executables using the native Mac clang, but the link stage is mixed up and trying to use --version-script even though the Mac linker doesn't support it. Thanks in advance for any help. -Rich
Alp Toker
2013-Dec-21 23:21 UTC
[LLVMdev] How do I disable --version-script when cross compiling clang/LLVM on a Mac?
On 21/12/2013 22:51, Richard Pennington wrote:> Hi, > > I asked this question a few days ago and didn't get any responses. I > thought I'd try again with a little more detail. > > I am trying to cross compile my clang/LLVM based ELLCC cross > development tools project (http://ellcc.org)Hi Richard, Nobody replied because your question lacks immediate relevance to this mailing list. You may have more luck if you pose your question in a way that relates to, and can be tried using stock LLVM/clang. If you think there's a bug, you can also file a bug report at http://llvm.org/bugs/ including the steps needed to reproduce the issue. Feel free to CC me in, hope we can set you in the right direction. Alp.> on a Mac. I am targeting ARM/Linux. The build fails while building > FileCheck (or tbl-gen or any of the other build tools built during the > cross-compile-build-tools step) because the build rules try to pass > the --version-script option to the linker. There is a lot of configure > magic going on and I can't seem to find the spell that says not to use > --version-script on a Mac. > > A little clarification of my problem. ELLCC builds fine on a Mac and > creates executables that can be used to create ARM/Linux programs (or > Mips/Linux, Microblaze/Linux, PowerPC/Linux, etc). The trouble I'm > having is when I try to make ELLCC compile itself for the target. > > clang/LLVM needs several tools that it supplies that need to run on > the build host. Those tools are being compiled properly as Mac > executables using the native Mac clang, but the link stage is mixed up > and trying to use --version-script even though the Mac linker doesn't > support it. > > Thanks in advance for any help. > > -Rich > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- http://www.nuanti.com the browser experts
Richard Pennington
2013-Dec-22 01:33 UTC
[LLVMdev] How do I disable --version-script when cross compiling clang/LLVM on a Mac?
On 12/21/2013 05:21 PM, Alp Toker wrote:> > On 21/12/2013 22:51, Richard Pennington wrote: >> Hi, >> >> I asked this question a few days ago and didn't get any responses. I >> thought I'd try again with a little more detail. >> >> I am trying to cross compile my clang/LLVM based ELLCC cross >> development tools project (http://ellcc.org) > > Hi Richard, > > Nobody replied because your question lacks immediate relevance to this > mailing list. > > You may have more luck if you pose your question in a way that relates > to, and can be tried using stock LLVM/clang. > > If you think there's a bug, you can also file a bug report at > http://llvm.org/bugs/ including the steps needed to reproduce the issue. > > Feel free to CC me in, hope we can set you in the right direction. > > Alp. >Hi Alp, I hope you don't think I was whining about the lack of response, I wasn't. This list has always been extremely helpful. I understand that my use case is a bit out the norm. I was just hoping that someone more familiar with the clang/LLVM cross build rules might be able to shed a little insight. I suspect that there aren't too many people using clang/LLVM to cross build for Linux on a Mac. The normal cross build on a Linux box for another Linux target works just fine. -Rich
Seemingly Similar Threads
- [LLVMdev] How do I disable --version-script when cross compiling clang/LLVM on a Mac?
- [LLVMdev] clang/LLVM cross testing environment
- [LLVMdev] using just llvm/clang for building mips llvm
- [LLVMdev] Can libc++ build for arm cross compiler?
- [LLVMdev] RFC: Another go at a cross compiler config file.