Error when upgrading toolchain 2.0 to 3.0

Discussion in 'iOS Development' started by demonlj, Jul 22, 2009.

  1. demonlj

    demonlj New Member

    Joined:
    Jul 8, 2009
    Messages:
    12
    Likes Received:
    0
    I have previously build toolchain 2.0 on CYGWIN , now i want to upgrade it to 3.0
    i got SYSROOT from ipsw, and got HEADERS from SDK(also patched follow the instruction by saurik)
    then i run make-toolchain on CYGWIN
    1. occtools is done
    2. when building gcc,i got errors like this
    Code:
    /usr/local/bin/arm-apple-darwin9-ld: /usr/local/iphone-sysroot/usr/lib/libc.dyli
    b truncated or malformed object (mach header extends past the end of the file)
    collect2: ld returned 1 exit status
    make[3]: *** [libgcc_s.dylib] Error 1
    make[3]: Leaving directory `/home/Jason/iphone-2.0-toolchain/build/gcc-4.2-iphon
    e/gcc'
    make[2]: *** [stmp-multilib] Error 2
    make[2]: Leaving directory `/home/Jason/iphone-2.0-toolchain/build/gcc-4.2-iphon
    e/gcc'
    make[1]: *** [install-gcc] Error 2
    make[1]: Leaving directory `/home/Jason/iphone-2.0-toolchain/build/gcc-4.2-iphon
    e'
    make: *** [install] Error 2
    help me please
  2. NolesFans

    NolesFans New Member

    Joined:
    Sep 23, 2008
    Messages:
    404
    Likes Received:
    0
    Device:
    iPod touch
  3. demonlj

    demonlj New Member

    Joined:
    Jul 8, 2009
    Messages:
    12
    Likes Received:
    0
    i finally got the answer
    for files, which size is smaller than 1kb, should edit it and find out which file it is linked to. then copy the file to overwrite it
    in my situation, i find libSystem.B.dylib and overwrite the file. then it works

Share This Page