Adding newlib to existing GCC, prefix?

Jeff Johnston jjohnstn@redhat.com
Wed Apr 7 06:31:00 GMT 2004


Vitus Jensen wrote:
> Hej!
> 
> I'm trying to add newlib-1.12.0 to an existing port of GCC.  That GCC was
> produced some year ago by a collegue no longer available.  He used the coldfire
> project (http://sca.uwaterloo.ca/coldfire/) to crosscompile from Windows
> 2000 (cygwin B20) to our own hardware/software plattform which uses Motorola
> DragonBall and a propritary OS. The compiler itself runs fine, it's just that
> now I need a CRT...
> 
> "configure" and "make all" complete successfully, but "make install" fails
> :-(
> 
> //T/C/coldfire/gcc-m68k                       ; contains
> bin/m68k-coff-gcc.exe etc
> //T/C/coldfire/newlib-1.12.0                  ; contains original
> newlib1.12.0
> //T/C/coldfire/newlib                            ; my build directory
> 
> I'm using the following configure command (with variations of --host and
> --prefix values):
> 
> //T/C/coldfire/newlib-1.12.0/configure --target m68k-coff
> --enable-target-optspace --prefix=//T/C/coldfire/gcc-m68k
> 
> "make install" fails when calling install:
> 

You appear to be picking up an install binary that isn't the default "install" 
binary for Cygwin (note the message you get).  You might try reissuing the make 
install command and overriding it's choice by adding INSTALL="xxxx" where xxxx 
is the normal Cygwin install.

-- Jeff J.

> =============================
> ...
> Making install in doc
> make[2]: Entering directory `/newlib/m68k-coff/newlib/doc'
> make[3]: Entering directory `/newlib/m68k-coff/newlib/doc'
> make[3]: Nothing to be done for `install-exec-am'.
> make[3]: Nothing to be done for `install-data-am'.
> make[3]: Leaving directory `/newlib/m68k-coff/newlib/doc'
> make[2]: Leaving directory `/newlib/m68k-coff/newlib/doc'
> Making install in .
> make[2]: Entering directory `/newlib/m68k-coff/newlib'
> make[3]: Entering directory `/newlib/m68k-coff/newlib'
> make[3]: Nothing to be done for `install-exec-am'.
> /bin/sh //T/C/coldfire/newlib-1.12.0/newlib/../mkinstalldirs
> //T/C/coldfire/gcc-m68k/m68k-coff/lib
>  /GCC-M68K/BIN/install -c -m 644 libm.a
> //T/C/coldfire/gcc-m68k/m68k-coff/lib/libm.a
> INSTALL - gcc-m68k for Win95/NT Release 6
> 
> Usage:
>   install install-directory
> 
> This program will install gcc-m68k Release 6
> to the install-directory from the current directory.
> 
> Press return to continue...
> =============================
> 
> 
> I assume that I need a different --prefix value?  Or am I totally lost?  Any
> hints?
> 
> By[t]e,
>     Vitus
> 
> PS: meanwhile I will go on testing different configure switches.  But each
> compile run takes ages!
> 



More information about the Newlib mailing list