ToolChain Compile error

Discussion in 'iOS Development' started by dragoy, Feb 15, 2009.

  1. dragoy

    dragoy New Member

    Joined:
    Feb 7, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    Hello =], [ Window & Cygwin ]

    I tried to compile the toolchain, but when i try to make it with the makefile, i have this error :
    Code:
    Cedrik@PC-de-Cedrik ~/iphone-2.0-toolchain
    $ ./make-toolchain
    ./make-toolchain: line 21: syntax error near unexpected token `)'
    ./make-toolchain: line 21: `*cygwin*)'
    
    The lines in the makefile :
    Code:
    export SUDO=sudo
    
    case "${OSTYPE}" in
    *win32*)
    *cygwin*)
      export SUDO='echo "";'
      ;;
    esac
    
    I already try to replace those line with "echo" but it didn't worked ( crimsondynamo329's solution )
    If i do, i have a bunch of error with "$r" like :

    Code:
    Cedrik@PC-de-Cedrik ~/iphone-2.0-toolchain
    $ ./make-toolchain
    ./make-toolchain: line 4: $'\r': command not found
    ./make-toolchain: line 8: $'\r': command not found
    ./make-toolchain: line 10: $'\r': command not found
    ./make-toolchain: line 14: $'\r': command not found
    ./make-toolchain: line 16: $'\r': command not found
    ./make-toolchain: line 18: $'\r': command not found
    
    This script requires that you enter the proper administrator password
    in order to create a folder called iphone-sysroot in /usr/local
    
    ./make-toolchain: line 23: $'\r': command not found
    ./make-toolchain: line 24: $'echo\r': command not found
    ./make-toolchain: line 25: $'echo\r': command not found
    ./make-toolchain: line 26: $'echo\r': command not found
    ./make-toolchain: line 27: $'\r': command not found
    cp: cannot stat `/home/Cedrik/iphone-2.0-toolchain\r/iphone-fs\r/System': No suc
    h file or directory
    cp: cannot stat `/home/Cedrik/iphone-2.0-toolchain\r/iphone-fs\r/usr': No such f
    ile or directory
    
    All the path have the "\r" char. I guess that don't help.



    Thanks for further help.
  2. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    well 1st just check everything on line 21 is exactly right becuase that where the error is it seems there is something wrong with the code because it says syntaz error. other than that I cant help I don't know about compiling toolchain.
  3. dragoy

    dragoy New Member

    Joined:
    Feb 7, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    Somebody have any idea ?
    ------------------double post merged------------------
    Sorry for double post, but i wanted to add that i searched a lot on google, etc and i didn't find anything yet.

    So, if someone have any idea, i will be happy to listen to it.
  4. zfrx

    zfrx New Member

    Joined:
    Mar 30, 2009
    Messages:
    1
    Likes Received:
    0
    simply replace the above code with

    Code:
      export SUDO='echo "";'
    
    It seems your editor saved the edited file in PC mode (strings end with CR/LF). You need to save the file in UNIX mode (strings end with LF). Check if your editor supports that.

    I had a bunch of similar problems after I unpacked iphone-2.0-toolchain.tgz using winzip. After I re-unpack the file with 'tar xzvf iphone-2.0-toolchain.tgz', edited make-toolchain with a UNIX-friendly text editor it started to work. Well, the compiling is still in progress...

Share This Page