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

[HELP!HELP!]Compiling Error

Discussion in 'Tomato Firmware' started by eiji, Mar 16, 2008.

  1. eiji

    eiji LI Guru Member

    When i compile the src of tomato 1.17,it's occured following error:

    make[2]: Nothing to be done for `default'.
    make[2]: Leaving directory `/root/tomato/release/src/router/iptables'
    make[2]: Entering directory `/root/tomato/release/src/router/rc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/root/tomato/release/src/router/rc'
    make[2]: Entering directory `/root/tomato/release/src/router/iproute2'
    make[3]: Entering directory `/root/tomato/release/src/router/iproute2/lib'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/root/tomato/release/src/router/iproute2/lib'
    make[3]: Entering directory `/root/tomato/release/src/router/iproute2/ip'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/root/tomato/release/src/router/iproute2/ip'
    make[3]: Entering directory `/root/tomato/release/src/router/iproute2/tc'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/root/tomato/release/src/router/iproute2/tc'
    make[2]: Leaving directory `/root/tomato/release/src/router/iproute2'
    make[2]: Entering directory `/root/tomato/release/src/router/rom'
    make[2]: Leaving directory `/root/tomato/release/src/router/rom'
    make[2]: Entering directory `/root/tomato/release/src/router/others'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/root/tomato/release/src/router/others'
    make[2]: Entering directory `/root/tomato/release/src/router/busybox'
    CC applets/applets.o
    cc1: error: unrecognized command line option "-mips2"
    make[3]: *** [/root/tomato/release/src/router/busybox/applets/applets.o] Error 1
    make[2]: *** [_all] Error 2
    make[2]: Leaving directory `/root/tomato/release/src/router/busybox'
    make[1]: *** [busybox] Error 2
    make[1]: Leaving directory `/root/tomato/release/src/router'
    make: *** [all] Error 2
    root@hserver:~/tomato/release/src#


    Please help me how to slove this problem,my linux is ubuntu 7,thanks a lot.
     
  2. roadkill

    roadkill Super Moderator Staff Member Member

    brcm tools not in path?
     
  3. eiji

    eiji LI Guru Member

    brcm already linked.
     
  4. roadkill

    roadkill Super Moderator Staff Member Member

    cc1: error: unrecognized command line option "-mips2"
    cc linker doesn't recognize mips2 flag maybe it is the wrong cc
     
  5. eiji

    eiji LI Guru Member

    How to slove it?
     
  6. roadkill

    roadkill Super Moderator Staff Member Member

    you're running the host system CC linker which doesn't include mips support
    add brcm tools to your .bashrc path
     
  7. eiji

    eiji LI Guru Member

    export PATH=/opt/brcm/hndtools-mipsel-linux/bin:$PATH
    export PATH=/opt/brcm/hndtools-mipsel-uclibc/bin:$PATH
    This is right?
     
  8. roadkill

    roadkill Super Moderator Staff Member Member

    yes but Tomato's brcm is usually cascaded below Tomato's directory
     
  9. eiji

    eiji LI Guru Member

    I already do it,but the same error
     
  10. mstombs

    mstombs Network Guru Member

    Another user had problems compiling under Ubuntu in this thread

    http://www.linksysinfo.org/forums/showthread.php?t=55794

    I see I appended the brcm tools to my path in there - not prepended. If its not paths it will be the version of system "make" and how it is interpretting the path I guess?
     
  11. eiji

    eiji LI Guru Member

    OH!YEAR!The problem killed!
    It's SH's problem,ubuntu's shell default is dash,but tomato need "bash".
    Just change dash->bash,is ok.
    rm /bin/sh
    ln -s /bin/bash /bin/sh
     

Share This Page