This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

Re: problem in make install


Corinna Vinschen wrote:
On May 2 08:42, Tom Hawkins wrote:
On Sun, May 2, 2010 at 12:29 AM, Tom Hawkins <tomahawkins@gmail.com> wrote:
I'm building a cross compiler to target a bare metal powerpc embedded
platform.  I've been able to build and install binutils and gcc (c,
c++, ada).  And Newlib successfully configures and compiles, but dies
on the install (see below).
One further inspection, 'make all' also has errors, but they were
hidden because they didn't kill the make process.  They stem from a
missing file libgloss/rs6000/xil-exit.c, which is referenced by
libgloss/rs6000/Makefile.in.  Any idea what this should be?  I created
a symbolic link to mbx-exit.c and everything seemed to build and
install OK.

I'm working with newlib-1.18.0, but the problem is also in the latest from cvs.

It looks like an oversight when checking in this change:


2009-06-17 Michael Eager <...>

        * rs6000/Makefile.in: Add xilinx support.
        * rs6000/xil-crt0.s: New crt0 file for powerpc-xilinx-eabi.
        * rs6000/xilinx.ld: New file.
        * rs6000/xilinx440.ld: Ditto.

Makefile.in refered to xil-exit.c, but it was neither checked in,
nor even mentioned in the ChangeLog.

Michael, what's wrong, the Makefile.in reference to xil-exit.c or
the fact that the file is missing?

My bad. Xilinx originally had a modified version of exit, which I was able to eliminate. But I missed removing the reference from the makefile or, more likely, missed checking in the change.

Patch attached.


-- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/libgloss/rs6000/Makefile.in,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile.in
--- Makefile.in	17 Jun 2009 16:38:22 -0000	1.5
+++ Makefile.in	3 May 2010 14:33:51 -0000
@@ -125,7 +125,7 @@ XIL_SCRIPTS 	= xilinx.ld xilinx440.ld
 XIL_SPECS 	= 
 XIL_CRT0	= xil-crt0.o  xil-pgcrt0.o  xil-sim-crt0.o  xil-sim-pgcrt0.o
 XIL_BSP		= libxil.a
-XIL_OBJS	= open.o close.o lseek.o sbrk.o read.o write.o print.o xil-exit.o
+XIL_OBJS	= open.o close.o lseek.o sbrk.o read.o write.o print.o 
 XIL_TEST	= xil-test
 XIL_INSTALL	= install-xil
 
@@ -312,8 +312,6 @@ mbx-inbyte.o: mbx-inbyte.c
 mbx-outbyte.o: mbx-outbyte.c
 mbx-print.o: mbx-print.c
 
-xil-exit.o: xil-exit.c
-
 xil-crt0.o: xil-crt0.S
 	${CC} -c -o $@ $<
 

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