Results 1 to 10 of 10
Discuss compiling the toolchain at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; I had no problems compiling the old toolchain, but the current SVN alpha branch does ...
  1. #1
    Newbie Array

    Join Date
    Aug 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default compiling the toolchain

    I had no problems compiling the old toolchain, but the current SVN alpha branch does not seem to compile. The first problem I came across was that cctools/cbtlibs/Makedep had entries for "/usr/local/include/mach/machine/" which does not exist. I commented those out, but have come across a problem compiling Csu-71, with:

    Code:
    cd Csu-71 && make
    /Developer/SDKs/iPhone/bin/arm-apple-darwin-cc -c -DMACH_HEADER_SYMBOL_NAME=__mh_execute_header -U__PIC__ -o arm-start_nopic.s.o arm-start.s
    make[1]: *** [arm-start_nopic.s.o] Error 1
    If anyone has any clue what's happening, it would be greatly appreciated. I finally have some free time to start hacking apps, but have run into this stumbling block. While I am trying to figure out what's happening, I've also run into the continual problem that the currently generated Makefiles use 'cp -Rvn', where '-n' causes copy to not overwrite files already there. While this is a good safety for when doing normal installs, it doesn't work well in this circumstance, where recompiling the entire toolchain is required when trying to debug (making progress difficult). I'm not familiar with automake/autoconf (I usually use other tools), so I'm having trouble figuring out how to fix this. Any help would be greatly appreciated.

    ** update **

    On further inspection, when I try to make just in that directory, the line:

    Code:
    /Developer/SDKs/iPhone/bin/arm-apple-darwin-cc -c -DMACH_HEADER_SYMBOL_NAME=__mh_execute_header -U__PIC__ -o arm-start_nopic.s.o arm-start.s
    fails. When I run it on the command line, nothing gets produced (no 'arm-start_nopic.s.o'), which explains that error from make. Any ideas?
    Last edited by bram; 08-08-2007 at 09:18 PM.



  2. #2
    Rookie Array

    Join Date
    Jul 2007
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I have had a few interesting problems with compiling the toolchain too. First, cctools/ld/ld_dir/ld.NEW has issues over wether to be a file or directory. It wants to be both, but I can "fix" the error if I rename the file immediately after it's generated (this seems to slightly defeat the purpose of creating the file...) and then a directory (empty) is created.

    I had another error when cctools/as/aarm_dir/as wanted to be a directory, but was a file. I renamed the file and made a directory and it stopped giving an error message, but again I think this probably doesn't do that much good.

    Then I run into the same error as you... Did you have the first few errors? or was my attempt even screwier than yours? and can someone possibly link to a the source or binary of something that actually compliles/works.

    It's interesting to note that two files are actually generated: a /bin/arm-apple-darwin-cc, which sounds great but is only 36 KB and apparently refuses to do anything, and an /etc/arm-cc-specs/ which tells me to rename it .arm-cc-specs and put it in my home directory (which does nothing).

  3. #3
    Newbie Array

    Join Date
    Aug 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I don't believe I've gotten the first errors you describe.. are you compiling the alpha branch or trunk? I've tried trunk previously, but as they state it's bleeding edge, I wasn't expecting it to work. However, I definitely got different errors than I did with alpha.

    The second line of errors that we're running into is due to arm-darwin-cc getting made, but not correctly. I get it too, but running it doesn't produce anything that is runnable.

    I tried a second line of attack using the Macports version, but I've never had much luck with Macports. I've used many distribution systems before (debian/ubuntu, redhat, slackware, etc.) and have never come across one so buggy before. Except perhaps Fink. I've never owned an apple before my MBP, but I'm of the understanding that the intel chip caused havoc for the maintainers. Anyways, I got as far as trying to install llvm-gcc4, at which point it fails.

  4. #4
    Rookie Array

    Join Date
    Jul 2007
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I've been trying the trunk, I got different errors with the alpha branch, and still other errors with macports (similar to yours). I finally found this website: http://ellkro.jot.com/WikiHome/ToolchainInstallation (someone let me know if it's becoming a standard practice to obfuscate all links...) and the second dmg on that page actually installed properly. After that I had some issues with a little thing called -larmfp, so I removed that flag from the .arm-cc-specs file. I managed to compile the eBook reader, and it works quite nicely.

    I'm still not quite sure of what I'm doing, but it's nice to have a somewhat usable (I think) toochain.

    P.S. I have a MBP too! Fantastic machine, IMO, but I've been using macs since I was 3ish (an SE30, loved that too.) I can't recall I've ever had something work with macports, actually.

  5. #5
    Newbie Array

    Join Date
    Aug 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Awesome! Thanks! I haven't tested them yet, but I compiled the UIHelloWorld and MobileTerminal apps -- which before was impossible. I ran the Shiney App, but it didn't touch my path, so I had to edit .bash_profile manually to add it. Oh well, can't get everything for free.

    It also could find libarmfp for me either. I'm guessing the 'fp' stands for floating point. I seem to remember someone say that for some reason Apple did something funny with their floating point number library (maybe even made it a static lib, which would mean '-l' is the wrong way to link to it...).

    Anyways, I can finally start writing apps! Well, that is, when I'm not currently working on my thesis...

    Also, yeah, I'm in love with my MBP. As I take mine everywhere (and use it for everything), it's a bit beaten now. I grew up with Windows, but switched to Linux when I first had a choice. Macs didn't catch my attention until I saw how beautiful Cocoa was, and how IB (PB back then) did things right (I had the misfortune of having to use Microsoft's Visual Studios before .. I still get bad headaches thinking back to those times). Then I knew I needed a Mac if for no other reason than to code in Cocoa.


  6. #6
    Newbie Array

    Join Date
    Aug 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    By the way, the main page of the link you sent, has additional information on how to compile the toolchain:

    http://ellkro.jot.com/WikiHome/HowToBuildObjCApps

    It apparently requires the editing of 1 Makefile, applying two patches, and editing a bunch of random header files.

    It also contains information about libarmfp.dylib (not static!). You can return your .arm-cc-specs file to have '-larmfp', and copy libarmfp.dylib to the correct directory:

    sudo cp /Developer/SDKs/iPhone/lib/libarmfp.dylib /Developer/SDKs/iPhone/heavenly/usr/lib/

  7. #7
    Rookie Array

    Join Date
    Jul 2007
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Wow! I didn't notice that at all, I was excited to get that close to having something work and didn't expect to actually find something as outlandish as documentation on patches! Thank you!

  8. #8
    Guest Array

    Join Date
    Jul 2007
    Posts
    48
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Why all the hard work when there is a installer ?

    http://ellkro.jot.com/WikiHome/ToolchainInstallation


  9. #9
    Newbie Array

    Join Date
    Aug 2007
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default toolchain on PowerPC

    Because i'v enowhere found a similar package for a PPC, i've used the MacPorts version of th ectoolchain installation. With this it was possible to create a console app which runs on the iPhone, but got no luck with Cocoa apps?
    Is there any news out there about a PPC port?

    Btw. I see the following in Crash Report:

    ...
    Exception Type: EXC_BAD_ACCESS
    Exception Codes: KERN_INVALID_ADDRESS at 0xfffeff00
    Crashed Thread: 0

    Thread 0 Crashed:
    0 (null) 0xfffeff00 0 + -65792
    1 Hello 0x00002528 0x1000 + 5416

    Thread 0 crashed with ARM Thread State:
    r0: 0x3886b86c r1: 0x30e997f0 r2: 0x2ffffeb4 r3: 0x0000502c
    r4: 0xfffeff00 r5: 0x00000000 r6: 0x00000000 r7: 0x2ffffe7c
    r8: 0x2ffffea4 r9: 0x3800da94 r10: 0x00000000 r11: 0x00000000
    ip: 0x3800c4fc sp: 0x2ffffe5c lr: 0x00002604 pc: 0xfffeff00
    cpsr: 0x60000010 instr: 0x00000000

    Binary Images:
    0x1000 - 0x2fff +Hello UUID (61B6B2C28EF6423487B0CE91A53C19C3) /Applications/Hello.app/Hello
    0x7000 - 0x7fff libarmfp.dylib UUID (61721D9F021C41818014B127E730593C) /usr/lib/libarmfp.dylib
    0x2fe00000 - 0x2fe39fff dyld UUID (64B27A87A815459D953C3260809F811A) /usr/lib/dyld
    0x30000000 - 0x300fdfff libSystem.B.dylib UUID (A585814285214B9B8613ED0EA06B400F) /usr/lib/libSystem.B.dylib
    0x3015d000 - 0x3019efff libstdc++.6.dylib UUID (CD0A5DCC6A164C86B91C79E15C552E9E) /usr/lib/libstdc++.6.dylib
    0x301c7000 - 0x301d4fff AddressBook UUID (F514BE744A904B34A3B17B9D7E15AC08) /System/Library/Frameworks/AddressBook.framework/AddressBook
    0x301de000 - 0x301e7fff AppSupport UUID (ECD7CD5ED21E40F798264D8DFF508A45) /System/Library/Frameworks/AppSupport.framework/AppSupport
    0x301ef000 - 0x30236fff CFNetwork UUID (2BBD2470195A4E04A3CDF80647B892FF) /System/Library/Frameworks/CFNetwork.framework/CFNetwork
    0x3036c000 - 0x303bdfff CoreAudio UUID (98E237599CFB45E08C67D1E42C98681B) /System/Library/Frameworks/CoreAudio.framework/CoreAudio
    0x303e8000 - 0x30461fff CoreFoundation UUID (DE3331E0CE4D43DFAFAD084E689DE12F) /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
    0x30514000 - 0x307abfff CoreGraphics UUID (0B2DC458C52843A6A65FB2E79D2E2B5D) /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
    0x3085f000 - 0x3090afff Foundation UUID (858A2A1A7BEC4407B2FDB78C05449008) /System/Library/Frameworks/Foundation.framework/Foundation
    0x30989000 - 0x30991fff GraphicsServices UUID (AD452FB6F1C14B268969990EAA6C7B17) /System/Library/Frameworks/GraphicsServices.framework/GraphicsServices
    0x30999000 - 0x30a21fff IOKit UUID (03E5752F94E3424589F1C596ED08815D) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x30a3d000 - 0x30a9afff JavaScriptCore UUID (A85D056527804A889487E19D6F19A179) /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
    0x30ac5000 - 0x30b15fff LayerKit UUID (80CB47718FE9455A9A7AB375F1A90AC4) /System/Library/Frameworks/LayerKit.framework/LayerKit
    0x30b35000 - 0x30b3dfff MBX2D UUID (A50D74CC200044C496246914DA0F59DF) /System/Library/Frameworks/MBX2D.framework/MBX2D
    0x30d98000 - 0x30e80fff libiconv.2.dylib UUID (BFF8FECDB7AF4996AA7E47BA4E9D7A97) /usr/lib/libiconv.2.dylib
    0x30e8b000 - 0x30e9afff libobjc.A.dylib UUID (1DF02759041D49AF9938563D172FC491) /usr/lib/libobjc.A.dylib
    0x30ea4000 - 0x30f77fff libicucore.A.dylib UUID (C7BEFA4022D2414DBD2EF88A0285AC8E) /usr/lib/libicucore.A.dylib
    0x3101d000 - 0x31048fff libsqlite3.0.dylib UUID (2F122880FFAC48318A753E1D788E7409) /usr/lib/libsqlite3.0.dylib
    0x31098000 - 0x31128fff libxml2.2.dylib UUID (EB77B5D5553B41659DA3EABDFF5E990E) /usr/lib/libxml2.2.dylib
    0x3131c000 - 0x31343fff Security UUID (7596924807BF47BA9F50D5748042107A) /System/Library/Frameworks/Security.framework/Security
    0x31353000 - 0x31645fff WebCore UUID (008F2A3E565E44A7BCEF83432DCDEBC7) /System/Library/Frameworks/WebCore.framework/WebCore
    0x31786000 - 0x317dafff WebKit UUID (C390D890DBCB4A37BC35C43F28D42D79) /System/Library/Frameworks/WebKit.framework/WebKit
    0x31817000 - 0x31840fff SystemConfiguration UUID (7FCD389840814C6EB34074C7787862D1) /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
    0x318d5000 - 0x318e3fff libz.1.dylib UUID (019DB9B198DA46E98600C1417D98E6E9) /usr/lib/libz.1.dylib
    0x31912000 - 0x31914fff CoreSurface UUID (1DEC49F8DE414E2A87115B4CB2C81DC1) /System/Library/Frameworks/CoreSurface.framework/CoreSurface
    0x3196e000 - 0x31977fff libIOAudio2User.dylib UUID (DA36DB71B2AF487890A3C9C474A48911) /usr/lib/libIOAudio2User.dylib
    0x3197e000 - 0x31abbfff AudioToolbox UUID (95DAF760C655461C84C1BD1816BBE6D1) /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
    0x31bb3000 - 0x31bb5fff MBXConnect UUID (D0811FA7E80E497BA6672DE63A846FFC) /System/Library/Frameworks/MBXConnect.framework/MBXConnect
    0x31bb8000 - 0x31be9fff OpenGLES UUID (C3E461AEB92C49E2A3EA13679CFBD369) /System/Library/Frameworks/OpenGLES.framework/OpenGLES
    0x31bfc000 - 0x31bfdfff IOMobileFramebuffer UUID (0320D8C45ABC47C1B3C82800A47657DC) /System/Library/Frameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
    0x31c3c000 - 0x31c43fff libgcc_s_v6.1.dylib UUID (C3CE0B41C9CA490EAEADA6D7EB997082) /usr/lib/libgcc_s_v6.1.dylib
    0x323af000 - 0x324f8fff UIKit UUID (A0B29B85F4D14C859707D8B0B6801B16) /System/Library/Frameworks/UIKit.framework/UIKit
    ...

  10. #10
    Newbie Array

    Join Date
    Aug 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by BenjaminD View Post
    I've been trying the trunk, I got different errors with the alpha branch, and still other errors with macports (similar to yours). I finally found this website: http://ellkro.jot.com/WikiHome/ToolchainInstallation (someone let me know if it's becoming a standard practice to obfuscate all links...) and the second dmg on that page actually installed properly. After that I had some issues with a little thing called -larmfp, so I removed that flag from the .arm-cc-specs file. I managed to compile the eBook reader, and it works quite nicely.

    I'm still not quite sure of what I'm doing, but it's nice to have a somewhat usable (I think) toochain.

    P.S. I have a MBP too! Fantastic machine, IMO, but I've been using macs since I was 3ish (an SE30, loved that too.) I can't recall I've ever had something work with macports, actually.
    You're supposed to copy libarmfp.dylib from /Developer/SDKs/iPhone/lib to /Developer/SDKs/iPhone/heavenly/usr/lib.

    There are notes on iphone.fivefourty.net about the iPhone's libarmfp.dylib missing symbols, so they hacked together this alternate.

    Here's the URL explaining it. Check out the libarmfp notes at the bottom:

    http://iphone.fiveforty.net/wiki/ind...lchain_Project


 

 

Similar Threads

  1. [Toolchain Question] Unable to compile UI App in toolchain
    By sireko in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 06-26-2009, 10:31 PM
  2. [Toolchain 2.0] - problem compiling XAR
    By ironmang in forum iPhone Developer Exchange
    Replies: 5
    Last Post: 06-06-2009, 05:32 AM
  3. Undefined symbols when compiling with toolchain
    By Pinhassi in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 01-22-2009, 04:00 PM
  4. (Toolchain) New VMWare Community Toolchain (2.0)
    By Shade.sh in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 10-20-2008, 10:14 PM
  5. Replies: 0
    Last Post: 09-18-2007, 08:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 11:41 PM.
twitter, follow us!