<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title></title><style type="text/css">body{padding:1ex;margin:0px;font-family:sans-serif;font-size:small;}a[href]{color:-moz-hyperlinktext !important;text-decoration:-moz-anchor-decoration;}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em;}blockquote blockquote{border-color:#006312;}blockquote blockquote blockquote{border-color:#540000;}</style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div>I get the same error on my Ubuntu box, and have for as long as I can remember.</div>
<div> </div>
<div>On Fri, 29 May 2009 05:58 -0700, "Peter Weichai" <peterweichai@yahoo.com> wrote:</div>
<blockquote type="cite" class="QuoteMessage">
<table cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr>
            <td valign="top" style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;">Hi Guys,<br>
            <br>
            I'm trying to build buildroot on my ubuntu system. I encountered the below problem. Need advice. The error might due to my gcc and g++? Any idea how to solve it? <br>
            <br>
            Thanks in advance<br>
            <br>
            <br>
            Checking build system dependencies:<br>
            BUILDROOT_DL_DIR clean:                Ok<br>
            CC clean:                    Ok<br>
            CXX clean:                    Ok<br>
            CPP clean:                    Ok<br>
            CFLAGS clean:                    Ok<br>
            INCLUDES clean:                     Ok<br>
            CXXFLAGS clean:                    Ok<br>
            which installed:                Ok<br>
            sed works:                    Ok (/bin/sed)<br>
            GNU make version '3.81':            Ok<br>
            [: 202: Illegal number: gcc<br>
            C compiler '/usr/bin/gcc'<br>
            C compiler version 'gcc':            Ok<br>
            [: 233: Illegal number: g++<br>
            C++ compiler '/usr/bin/g++'<br>
            C++ compiler version 'g++':            Ok<br>
            bison installed:                Ok<br>
            flex installed:                     Ok<br>
            gettext installed:                Ok<br>
            makeinfo installed:                Ok<br>
            Build system dependencies:            Ok<br>
            <br>
            rm -rf /home/peter/lab/buildroot/project_build_arm/uclibc/buildroot-config<br>
            mkdir -p /home/peter/lab/buildroot/project_build_arm/uclibc<br>
            cp -dpRf package/config/buildroot-config /home/peter/lab/buildroot/project_build_arm/uclibc/buildroot-config<br>
            /usr/bin/make -j1 -C /home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build all<br>
            make[1]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build'<br>
            make[2]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build'<br>
            make[3]: Entering directory  `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/libiberty'<br>
            make[4]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/libiberty/testsuite'<br>
            make[4]: Nothing to be done for `all'.<br>
            make[4]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/libiberty/testsuite'<br>
            make[3]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/libiberty'<br>
            make[3]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/intl'<br>
            make[3]: Nothing to be done for `all'.<br>
            make[3]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/intl'<br>
            make[3]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'<br>
            Making info in doc<br>
            make[4]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/doc'<br>
            restore=:  && backupdir=".am$$" && \<br>
                rm -rf $backupdir && mkdir $backupdir && \<br>
                if (/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18/missing makeinfo --split-size=5000000 --split-size=5000000 --version) >/dev/null 2>&1; then \<br>
                  for f in bfd.info bfd.info-[0-9] bfd.info-[0-9][0-9] bfd.i[0-9] bfd.i[0-9][0-9]; do \<br>
                    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \<br>
                  done; \<br>
                else :; fi && \<br>
                if /home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18/missing makeinfo --split-size=5000000 --split-size=5000000   -I /home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18/bfd/doc \<br>
                 -o bfd.info `test -f 'bfd.texinfo' || echo  '/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18/bfd/doc/'`bfd.texinfo; \<br>
                then \<br>
                  rc=0; \<br>
                else \<br>
                  rc=$?; \<br>
                  $restore $backupdir/* `echo "./bfd.info" | sed 's|[^/]*$||'`; \<br>
                fi; \<br>
                rm -rf $backupdir; exit $rc<br>
            WARNING: `makeinfo' is missing on your system.  You should only need it if<br>
                     you modified a `.texi' or `.texinfo' file, or any other file<br>
                     indirectly affecting the aspect of the manual.  The spurious<br>
                     call might also be the consequence of using a buggy `make' (AIX,<br>
                     DU, IRIX).  You might want to install the `Texinfo' package  or<br>
                     the `GNU make' package.  Grab either from any GNU archive site.<br>
            make[4]: *** [bfd.info] Error 1<br>
            make[4]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/doc'<br>
            Making info in po<br>
            make[4]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/po'<br>
            make[4]: Nothing to be done for `info'.<br>
            make[4]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/po'<br>
            make[4]: Entering directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'<br>
            make[4]: Nothing to be done for `info-am'.<br>
            make[4]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'<br>
            make[3]: *** [info-recursive] Error 1<br>
            make[3]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'<br>
            make[2]: *** [all-bfd] Error  2<br>
            make[2]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build'<br>
            make[1]: *** [all] Error 2<br>
            make[1]: Leaving directory `/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build'<br>
            make: *** [/home/peter/lab/buildroot/toolchain_build_arm/binutils-2.18-build/binutils/objdump] Error 2<br>
             </td>
        </tr>
    </tbody>
</table>
<br>
</blockquote></div></body></html>