Thanks for your response, that's kinda what I've gathered over the years. I was hoping that the Xcode project would have "just worked". I'll keep piece-mealing it together, and hope that it works. I'll try to post a radar. Joe Joe Abbey Director of S/W Development Arxan Technologies, Inc. 1305 Cumberland Ave, Ste 215 West Lafayette, IN 47906 W: 765-889-4756 x2 C: 765-464-9893 jabbey at arxan.com www.arxan.com On Jan 14, 2012, at 11:47 AM, Benjamin Kramer wrote:> > On 14.01.2012, at 17:23, Joe Abbey wrote: > >> I have a need to build ld from source to understand an assert(0). >> >> I got excited when I found that ld64 on the opensource portal contains an xcodeproj >> >> http://opensource.apple.com/source/ld64/ld64-127.2/ >> >> But... it seems like I'm lacking mach-o/arm/reloc.h, and dyld_priv.h. >> >> I'm doing my best to stitch it all together, but if anyone has any pointers to make this less painful, it would be much obliged. > > Most of the stuff on opensource.apple.com is very painful to build. In this case you have to pick up reloc.h from > the cctools archive and dyld_priv.h from dyld. > > http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h > http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h > > put them in the right directories and it should compile. > > - Ben > >> Humbly, >> >> Joe Abbey >> Director of S/W Development >> Arxan Technologies, Inc. >> 1305 Cumberland Ave, Ste 215 >> West Lafayette, IN 47906 >> W: 765-889-4756 x2 >> C: 765-464-9893 >> jabbey at arxan.com >> www.arxan.com >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120114/8ebab450/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4350 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120114/8ebab450/attachment.bin>
On Sat, Jan 14, 2012 at 11:57 AM, Joe Abbey <jabbey at arxan.com> wrote:> Thanks for your response, that's kinda what I've gathered over the years. I > was hoping that the Xcode project would have "just worked". > > I'll keep piece-mealing it together, and hope that it works. > > I'll try to post a radar. > > JoeFor what it's worth, I have a bug report about adding <mach-o/arm/reloc.h> you could reference: 10281358. As for dyld_priv.h, you can remove LocalAddressSpace::findUnwindSections (which is unused) and no longer need to include it. -- Joe Ranieri
Ben, Thanks for your help!> http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.hYep, as Joe Ranieri pointed out, I had to tell MachOFileAbstraction.hpp about ARM relocs> http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.hI tried to use the dyld_priv.h from cctools to no avail, using the one from dyld (as you pointed out) worked Also I had to "drag and drop" llvm-c/lto.h into the project, since no combination of Project/Target/Recursive Header Search paths to /home/jabbey/src/llvm/include seemed to do the trick. Maybe I'm doing it wrong? Hurray, maybe I can debug my linker issue now. Joe Joe Abbey Director of S/W Development Arxan Technologies, Inc. 1305 Cumberland Ave, Ste 215 West Lafayette, IN 47906 jabbey at arxan.com www.arxan.com On Jan 14, 2012, at 11:57 AM, Joe Abbey wrote:> Thanks for your response, that's kinda what I've gathered over the years. I was hoping that the Xcode project would have "just worked". > > I'll keep piece-mealing it together, and hope that it works. > > I'll try to post a radar. > > On Jan 14, 2012, at 11:47 AM, Benjamin Kramer wrote: > >> >> On 14.01.2012, at 17:23, Joe Abbey wrote: >> >>> I have a need to build ld from source to understand an assert(0). >>> >>> I got excited when I found that ld64 on the opensource portal contains an xcodeproj >>> >>> http://opensource.apple.com/source/ld64/ld64-127.2/ >>> >>> But... it seems like I'm lacking mach-o/arm/reloc.h, and dyld_priv.h. >>> >>> I'm doing my best to stitch it all together, but if anyone has any pointers to make this less painful, it would be much obliged. >> >> Most of the stuff on opensource.apple.com is very painful to build. In this case you have to pick up reloc.h from >> the cctools archive and dyld_priv.h from dyld. >> >> http://opensource.apple.com/source/cctools/cctools-806/include/mach-o/arm/reloc.h >> http://opensource.apple.com/source/dyld/dyld-195.5/include/mach-o/dyld_priv.h >> >> put them in the right directories and it should compile. >>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/2b21e2e9/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4350 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/2b21e2e9/attachment.bin>
Hi all, I wrote code that compiled with llvm 3.0 And when I compile i llvm-3.0/llvm/include/llvm/Support/Casting.h:50:12: error: type 'unsigned long' cannot be used prior to '::' because it has no members return To::classof(&Val); ^~~ Do you know what's wrong ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/974b9492/attachment.html>