This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: can't install newlib-1.9.0


xu wrote:
> 
> I can't install newlib-1.9.0.
> 
> [root@linux62 newlib-1.9.0]# ./configure --prefix=/opt/newlib
> Configuring for a i686-pc-linux-gnu host.
> Created "Makefile" in /home/a/newlib-1.9.0 using "mt-frag"
> Configuring texinfo...
> No configuration information in texinfo
> Configuring etc...
> loading cache ../config.cache
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> creating ./config.status
> creating Makefile
> [root@linux62 newlib-1.9.0]# make
> make[1]: Entering directory `/home/a/newlib-1.9.0/etc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/a/newlib-1.9.0/etc'
> 
> However the version of my texinfo is 4.0-5.
> 
> How to install it?
> 
> Thanks for all.

Do not configure in your source directory.  Create a separate build directory and configure there. 
It is also recommended that you specify the full path to the configure script.

The reason nothing is happening is that you are configuring newlib natively which is restricted by
default.  To make it work you must specify the --with-newlib option when you configure.  Note that
newlib will look for tools of the form i686-pc-linux-gnu-xxxxx.  You can use the xxx_FOR_TARGET
flags (CC_FOR_TARGET, CXX_FOR_TARGET, AS_FOR_TARGET, AR_FOR_TARGET, RANLIB_FOR_TARGET,
LD_FOR_TARGET, NM_FOR_TARGET) to get newlib to use the native tools without any prefix.

-- Jeff J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]