This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: "No targets specified and no makefile found" error making newlib.
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: Doug Broadwell <dougb at value dot net>
- Cc: newlib at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 14:11:43 -0400
- Subject: Re: "No targets specified and no makefile found" error making newlib.
- Organization: Red Hat Inc.
- References: <005001c260ca$afcaa9b0$3cfea8c0@dba03>
Doug Broadwell wrote:
>
> Hello all,
>
> Using Bill Gatliff's "Tutorial Introduction Using the ARM Evaluator-7T" as a
> template, I am trying to make an m68k-unknown-coff cross compiler on
> i686-pc-linux-gnu. After making bunutils and the bootstrap version of gcc,
> I get the following error making newlib:
>
> make[4]: Leaving directory
> `/opt/xgcc/build-newlib/m68k-coff/m68000/libgloss/libnosys'
> make[4]: Entering directory
> `/opt/xgcc/build-newlib/m68k-coff/m68000/libgloss/m68k'
> make[4]: *** No targets specified and no makefile found. Stop.
> make[4]: Leaving directory
> `/opt/xgcc/build-newlib/m68k-coff/m68000/libgloss/m68k'
> make[3]: *** [stmp-bsp] Error 2
> make[3]: Leaving directory
> `/opt/xgcc/build-newlib/m68k-coff/m68000/libgloss'
> make[2]: *** [multi-do] Error 1
> make[2]: Leaving directory `/opt/xgcc/build-newlib/m68k-coff/libgloss'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/opt/xgcc/build-newlib/m68k-coff/libgloss'
> make: *** [all-target-libgloss] Error 2
>
> I'm using the following script:
>
> export TARGET=m68k-coff
> export PREFIX=`pwd`/install
> export PATH=${PREFIX}/bin:${PATH}
> tar -zxvf newlib-*.tar.gz
> if [ ! -d build-newlib ] ; then mkdir build-newlib ; fi
> cd build-newlib
> ../newlib-1.10.0/configure --target=${TARGET} --prefix=${PREFIX}
> make all install info install-info 2>&1 | tee make.log
>
> Thanks, Doug Broadwell
There was a bug in m68k configuration that was patched after 1.10 was released.
Apply the patches found at:
http://sources.redhat.com/ml/newlib-cvs/2002-q2/msg00015.html
to your source directory and reconfigure/etc...
-- Jeff J.