1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Shibby 112 build issues with updated tool chain

Discussion in 'Tomato Firmware' started by jerrm, Aug 6, 2013.

  1. jerrm

    jerrm Network Guru Member

    Has anyone else tried building Shibby 112? I get errors with the updated tool chain. Going back to 110 or to Toastman works fine.

    I'm getting the following error when attempting to make:
    Code:
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 1: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: cannot open ^H^C: No suc$
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 1: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: ^?ELF^B^A^A^B: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 3: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^F+^Vc^EK^H^Vc^EO^P^Vc^$
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 2: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^Bh: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 3: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^GNp: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 4: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^Cx: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 5: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^D�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 6: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^E�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 7: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^F�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 8: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^G�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 9: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^H�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 10: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 11: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 12: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: �: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 13: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^K�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 14: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^L�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 15: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^M�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 16: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^N�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 17: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^O�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 18: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^P�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 19: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^Q�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 20: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^R�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 21: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^S�: not found
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 22: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^T^Kc^G^U^H^Kc^G^V^P$
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 1: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: ^Lc^GBh^Lc^GCp^Lc^GDx^Lc$
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 25: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: c^G^A^Kc^G!h^Kc^Gp^Kc^G$
    /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: 1: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc: Syntax error: Unterminat$
    
    I get the same error(s) when executing /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-gcc directly from a dash or busybox sh command line.

    Bash seems a little smarter and gives:
    Code:
    j@jvm:~$ /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-linux-gcc
    bash: /opt/brcm/hndtools-mipsel-linux/bin/mipsel-linux-uclibc-gcc: cannot execute binary file
    mipsel-linux-linux-gcc ultimately links to mipsel-linux-uclibc-gcc-4.2.4 and executing it directly gives the same results.
     
  2. shibby20

    shibby20 Network Guru Member

    x86 or x64 Linux do you have? I compiled toolchain on x64 Debian distro.
    /opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/mipsel-linux-uclibc-gcc-4.2.4: ELF 64-bit LSB executable, x86-64, version 1 (SYSV)

    Older toolchain was compiled on x86
    /home/shibby/git-102/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/mipsel-linux-uclibc-gcc-4.2.4: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV)

    and propably here is the problem.
    If you have x86 linux then remove /opt/brcm directory and compile own toolchain for x86. Go to <sources>/toolchain dir and run build26.sh script. It will take a while (hour or two). After that you will have new toolchain in /opt directory. If it will work fine i will have request to compress (tar.gz) /opt/brcm dir and send me. I will push it to git.

    Best Regards.
     
  3. jerrm

    jerrm Network Guru Member

    Thanks. Thought that might be the case. May be a few days before I can get back to it, but will give it a try.
     
  4. jerrm

    jerrm Network Guru Member

    Went ahead and installed an Unbuntu 64bit VM. Everything built fine on the first run.

    Glad went ahead and built the new 64 bit VM, got a much bigger performance increase than I had expected.
     

Share This Page