This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: problem patching gcc-2.7.2.1 /.2 [ contains longish log ]


   Date: Mon, 1 Sep 1997 14:21:55 +0100 (BST)
   From: Michael Meeks <michael@zeus.imaginator.com>

	   I am struggling with rather unexpected problems involved in
   compiling GCC as a cross compiler :-(, and I was wondering whether they
   are related to the odd messages I get when I patch gcc ....

Patch failures shouldn't happen (obviously), and should generally be fixed
before trying to use the patched sources [otherwise one is just asking for
trouble].

   [... patch session showing patch failures ...]

Which version of `patch' are you using?

I went to the trouble of grabbing a fresh copy of gcc-2.7.2.2,
a fresh copy of GNU patch 2.5, and obtained the following.

canuck:/canuck/spiff/crossgcc/tmp/gcc-2.7.2.2$ /tmp/junk/bin/patch --verbose <../../crossgcc-gcc-2.7.2.2.patch -p1 2>&1 | tee foo
Hmm...  Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|To apply this patch:
|
|cd gcc-2.7.2.2
|patch -p1 < this-file
|
|Send comments or bug reports to dje@cygnus.com.
|
|Mon Mar 17 10:59:14 1997  <Various people at Cygnus>
|
|	* configure (i386-go32): Set xmake_file to x-go32.
|	* config/i386/x-go32: New file.
|	* ginclude/ppc-asm.h: New file.
|
|Tue Nov 21 13:24:41 1995  <Various people at Cygnus>
|
|	* Makefile.in (objc): Don't build objc-runtime, must be done later.
|	(distclean): rm float.h.
|	* config/float.h-ieee: New file.
|	* config/float.h-i32: New file.
|	* config/float.h-vax: New file.
|	* i386/t-go32 (LIBGCC1, CROSS_LIBGCC1): Define as null.
|	* i386/xm-go32.h: New file.
|	* config.sub: Recognize go32* as an os.
|	* configure: Handle float_format.
|	(i[345]86-*-go32): Define xm_file and tmake_file.
|	(LIBGCC2_FLAGS): Define inhibit_libc if cross compiler.
|
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/Makefile.in ./Makefile.in
|*** /tege/gcc/gcc-2.7.2.2/Makefile.in	Sun Nov 26 11:44:25 1995
|--- ./Makefile.in	Fri Feb 21 16:38:53 1997
--------------------------
Patching file `Makefile.in' using Plan A...
Hunk #1 succeeded at 636.
Hunk #2 succeeded at 1984.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config/float.h-i32 ./config/float.h-i32
|*** /tege/gcc/gcc-2.7.2.2/config/float.h-i32	Wed Dec 31 16:00:00 1969
|--- ./config/float.h-i32	Fri Feb 21 16:38:53 1997
--------------------------
Patching file `config/float.h-i32' using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config/float.h-ieee ./config/float.h-ieee
|*** /tege/gcc/gcc-2.7.2.2/config/float.h-ieee	Wed Dec 31 16:00:00 1969
|--- ./config/float.h-ieee	Fri Feb 21 16:38:54 1997
--------------------------
Patching file `config/float.h-ieee' using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config/float.h-vax ./config/float.h-vax
|*** /tege/gcc/gcc-2.7.2.2/config/float.h-vax	Wed Dec 31 16:00:00 1969
|--- ./config/float.h-vax	Fri Feb 21 16:38:54 1997
--------------------------
Patching file `config/float.h-vax' using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config/i386/t-go32 ./config/i386/t-go32
|*** /tege/gcc/gcc-2.7.2.2/config/i386/t-go32	Wed Dec 31 16:00:00 1969
|--- ./config/i386/t-go32	Fri Feb 21 16:38:54 1997
--------------------------
Patching file `config/i386/t-go32' using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config/i386/x-go32 ./config/i386/x-go32
|*** /tege/gcc/gcc-2.7.2.2/config/i386/x-go32	Wed Dec 31 16:00:00 1969
|--- ./config/i386/x-go32	Sat Mar 15 16:44:28 1997
--------------------------
Patching file `config/i386/x-go32' using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config/i386/xm-go32.h ./config/i386/xm-go32.h
|*** /tege/gcc/gcc-2.7.2.2/config/i386/xm-go32.h	Wed Dec 31 16:00:00 1969
|--- ./config/i386/xm-go32.h	Fri Feb 21 16:38:54 1997
--------------------------
Patching file `config/i386/xm-go32.h' using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/config.sub ./config.sub
|*** /tege/gcc/gcc-2.7.2.2/config.sub	Thu Jun 15 14:01:49 1995
|--- ./config.sub	Fri Feb 21 16:38:54 1997
--------------------------
Patching file `config.sub' using Plan A...
Hunk #1 succeeded at 642.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/configure ./configure
|*** /tege/gcc/gcc-2.7.2.2/configure	Thu Jan 30 14:20:15 1997
|--- ./configure	Sat Mar 15 16:43:47 1997
--------------------------
Patching file `configure' using Plan A...
Hunk #1 succeeded at 493.
Hunk #2 succeeded at 673.
Hunk #3 succeeded at 1027.
Hunk #4 succeeded at 2353.
Hunk #5 succeeded at 2367.
Hunk #6 succeeded at 2514.
Hunk #7 succeeded at 2867.
Hunk #8 succeeded at 2999.
Hunk #9 succeeded at 3027.
Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -rcp2N /tege/gcc/gcc-2.7.2.2/ginclude/ppc-asm.h ./ginclude/ppc-asm.h
|*** /tege/gcc/gcc-2.7.2.2/ginclude/ppc-asm.h	Wed Dec 31 16:00:00 1969
|--- ./ginclude/ppc-asm.h	Sun Mar 16 19:23:55 1997
--------------------------
Patching file `ginclude/ppc-asm.h' using Plan A...
Hunk #1 succeeded at 1.
done