This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: something is missing while making newlib 1.9.0
- To: yang tengyong <yangtengyong at hotmail dot com>
- Subject: Re: something is missing while making newlib 1.9.0
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- Date: Wed, 18 Jul 2001 18:45:10 -0400
- CC: newlib at sourceware dot cygnus dot com
- Organization: Red Hat Inc.
- References: <F168CNY1fVoRPBbOpWB0001387d@hotmail.com>
yang tengyong wrote:
>
> Hello, Dear sir:
>
> according to the instructions on http://www.objsw.com/CrossGCC, I tried to
> make an Cross Compiler for my destination PowerPC platform. After binutils
> and gcc3.0 have been configured and built successfully, I typed The
> following instructions :
>
> configure --target=powerpc-eabi --prefix=/home/newgcc -v
> make all install
>
> I failed in making newlib 1.9.0 , the message listed below:
>
> powerpc-eabi-ar : fstat.o: no such file or directory
> make[2]: *** [libsim.a] Error 1
>
> I tried copy fstat.o , getpid.o ,isatty.o and kill.o into rs6000
> directory(I found them at other directory), and typed `make all' again.
> this time it said "putnum.o: no such file or directory". I could not find
> putnum.o anywhere.
>
> would you give me some suggestions?
>
If you look in the libgloss/rs6000 directory, you will see that there are rules to build fstat.o,
putnum.o, etc..
close.o: $(srcdir)/../close.c
fstat.o: $(srcdir)/../fstat.c
getpid.o: $(srcdir)/../getpid.c
isatty.o: $(srcdir)/../isatty.c
kill.o: $(srcdir)/../kill.c
lseek.o: $(srcdir)/../lseek.c
open.o: $(srcdir)/../open.c
putnum.o: $(srcdir)/../putnum.c
sbrk.o: $(srcdir)/../sbrk.c
stat.o: $(srcdir)/../stat.c
unlink.o: $(srcdir)/../unlink.c
As you can see, they use source files one directory up. What does your Makefile set srcdir to? You
might also try going to the libgloss/rs6000 directory and do a make fstat.o putnum.o ....
-- Jeff J.