Error occurred in building newlib

View: New views
4 Messages — Rating Filter:   Alert me  

Error occurred in building newlib

by daniel tian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.
    Now I port the newlib to my RISC32 chip.
   The gcc and binutils are ready now.
    And I ported the newlib just like the CRX (a national
semiconductor 32bit RISC chip) did.
    But on my first building of this chip, error occurred. Here is the
error message:

   make[3]: Entering directory
`/home/daniel.tian/gcc_rice_dev/rice-binutils/build-newlib/etc'
/home/daniel.tian/gcc_rice_dev/rice-binutils/newlib-1.15.0/missing
makeinfo --split-size=5000000 --split-size=5000000 --no-split
-I../../newlib-1.15.0/etc -o standards.info
../../newlib-1.15.0/etc/standards.texi
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [standards.info] Error 1
make[3]: Leaving directory
`/home/daniel.tian/gcc_rice_dev/rice-binutils/build-newlib/etc'
make[2]: *** [info] Error 1
make[2]: Leaving directory
`/home/daniel.tian/gcc_rice_dev/rice-binutils/build-newlib/etc'
make[1]: *** [all-etc] Error 2
make[1]: Leaving directory
`/home/daniel.tian/gcc_rice_dev/rice-binutils/build-newlib'
make: *** [all] Error 2

BTW: rice is my chip name.

configure script :

export TARGET=rice-elf
export PREFIX=/usr/local/cross/$TARGET
export PATH=$PATH:$PREFIX/bin

rm -fr build-newlib
mkdir build-newlib

cd build-newlib
../newlib-1.15.0/configure --target=$TARGET --prefix=$PREFIX

make all 2>&1 | tee build.log

make install

the build.log is attached in this mail.

Can somebody give me some advice?

Thank you very much.

                                                         daniel


build.log (2K) Download Attachment

Re: Error occurred in building newlib

by Dave Korn-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

daniel tian wrote:

> /home/daniel.tian/gcc_rice_dev/rice-binutils/newlib-1.15.0/missing
> makeinfo --split-size=5000000 --split-size=5000000 --no-split
> -I../../newlib-1.15.0/etc -o standards.info
> ../../newlib-1.15.0/etc/standards.texi
> WARNING: `makeinfo' is missing on your system.  You should only need it if
>          you modified a `.texi' or `.texinfo' file, or any other file
>          indirectly affecting the aspect of the manual.  The spurious
>          call might also be the consequence of using a buggy `make' (AIX,
>          DU, IRIX).  You might want to install the `Texinfo' package or
>          the `GNU make' package.  Grab either from any GNU archive site.

  Looks like makeinfo is missing on your system.  You should only need it if...

  Anyway, the point is, install the "texinfo" package on your build machine.


    cheers,
      DaveK

Re: Error occurred in building newlib

by daniel tian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dave
    I checked my system, the makeinfo was installed and the version is 4.13.
    And I tried the newlib-1.16.0, it can be built successfully. But
v1.15.0 can't.
    So I missed something, thanks.

                       daniel

Re: Error occurred in building newlib

by Dave Korn-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

daniel tian wrote:
> Hi Dave
>     I checked my system, the makeinfo was installed and the version is 4.13.
>     And I tried the newlib-1.16.0, it can be built successfully. But
> v1.15.0 can't.
>     So I missed something, thanks.

  Ah, I remember this.  There's a bad regex in an autoconf script somewhere
that checks the "makeinfo --version" number, and it only expects one digit
after the decimal place and started failing once makeinfo reached version
4.10.  Let me try a quick google, hang on:

http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01271.html

  That should be very easy to backport to older versions of newlib's configure.ac.

    cheers,
      DaveK