Problem building llvm-gcc for iphone

Discussion in 'iOS Development' started by mohitd2000, Sep 19, 2010.

  1. mohitd2000

    mohitd2000 Member

    Joined:
    Jul 6, 2009
    Messages:
    231
    Likes Received:
    0
    Device:
    3G iPod touch
    I was following this guide written by Saurik here: http://www.saurik.com/id/4. Everything is fine until I run
    Code:
    make -j2
    Then I get this error:
    Code:
    gcc: gengtype-lex.c: No such file or directory
    What could be causing this error. I configured llvm-gcc with this command:
    Code:
    mkdir -p "${build}" 
    cd "${build}" 
    mkdir gcc-4.2-iphone 
    cd gcc-4.2-iphone 
    "${gcc}"/configure \     
        --target="${target}" \     
        --prefix="${prefix}" \     
        --with-sysroot="${sysroot}" \     
        --enable-languages=c,c++,objc,obj-c++ \     
        --with-as="${prefix}"/bin/"${target}"-as \  
        --with-ld="${prefix}"/bin/"${target}"-ld \     
        --enable-wchar_t=no \     
        --with-gxx-include-dir=/usr/include/c++/4.0.0 
    What could be the problem?
    By the way I already installed flex:
    Code:
    sudo apt-get install flex
    ------------------double post merged------------------
    Wait. I forgot to run
    Code:
    make distclean
    then reconfigure and rerun
    Code:
    make -j2
    . It works great now. Finally got the toolchain up and running

    Please Register or Log in to view images

    !

Share This Page