toolchain error

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
qlfecv
Posts: 4
Joined: Sat Jul 30, 2005 10:00 pm

toolchain error

Post by qlfecv »

Code: Select all

patching file `bfd/Makefile.am'
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to bfd/Makefile.am.rej
patching file `bfd/bfd-in2.h'
Hunk #1 FAILED at 1600.
1 out of 1 hunk FAILED -- saving rejects to bfd/bfd-in2.h.rej
patching file `bfd/archures.c'
Hunk #1 FAILED at 155.
1 out of 1 hunk FAILED -- saving rejects to bfd/archures.c.rej
patching file `bfd/elfxx-mips.c'
Hunk #1 FAILED at 4669.
Hunk #2 FAILED at 7885.
Hunk #3 FAILED at 9589.
3 out of 3 hunks FAILED -- saving rejects to bfd/elfxx-mips.c.rej
patching file `bfd/cpu-mips.c'
Hunk #1 FAILED at 86.
Hunk #2 FAILED at 119.
2 out of 2 hunks FAILED -- saving rejects to bfd/cpu-mips.c.rej
patching file `bfd/Makefile.in'
Hunk #1 FAILED at 250.
1 out of 1 hunk FAILED -- saving rejects to bfd/Makefile.in.rej
patching file `bfd/version.h'
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to bfd/version.h.rej
patching file `binutils/readelf.c'
Hunk #1 FAILED at 2043.
1 out of 1 hunk FAILED -- saving rejects to binutils/readelf.c.rej
patching file `config.sub'
Hunk #1 FAILED at 253.
Hunk #2 FAILED at 327.
Hunk #3 FAILED at 667.
3 out of 3 hunks FAILED -- saving rejects to config.sub.rej
patching file `gas/config/tc-mips.c'
Hunk #1 FAILED at 365.
Hunk #2 FAILED at 7821.
Hunk #3 FAILED at 8513.
Hunk #4 FAILED at 13772.
4 out of 4 hunks FAILED -- saving rejects to gas/config/tc-mips.c.rej
patching file `gas/configure'
Hunk #1 FAILED at 4537.
1 out of 1 hunk FAILED -- saving rejects to gas/configure.rej
patching file `gas/configure.in'
Hunk #1 FAILED at 222.
1 out of 1 hunk FAILED -- saving rejects to gas/configure.in.rej
patching file `include/elf/common.h'
Hunk #1 FAILED at 93.
1 out of 1 hunk FAILED -- saving rejects to include/elf/common.h.rej
patching file `include/elf/mips.h'
Hunk #1 FAILED at 212.
1 out of 1 hunk FAILED -- saving rejects to include/elf/mips.h.rej
patching file `include/opcode/mips.h'
Hunk #1 FAILED at 148.
Hunk #2 FAILED at 455.
Hunk #3 FAILED at 504.
Hunk #4 FAILED at 526.
4 out of 4 hunks FAILED -- saving rejects to include/opcode/mips.h.rej
patching file `include/bin-bugs.h'
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to include/bin-bugs.h.rej
patching file `ld/Makefile.am'
Hunk #1 FAILED at 190.
Hunk #2 FAILED at 865.
2 out of 2 hunks FAILED -- saving rejects to ld/Makefile.am.rej
patching file `ld/Makefile.in'
Hunk #1 FAILED at 315.
Hunk #2 FAILED at 1602.
2 out of 2 hunks FAILED -- saving rejects to ld/Makefile.in.rej
patching file `ld/configure.tgt'
Hunk #1 FAILED at 428.
1 out of 1 hunk FAILED -- saving rejects to ld/configure.tgt.rej
patching file `ld/emulparams/elf_mipsallegrexel_psp.sh'
patching file `ld/scripttempl/elf_psp.sc'
patching file `opcodes/mips-dis.c'
Hunk #1 FAILED at 140.
Hunk #2 FAILED at 421.
Hunk #3 FAILED at 540.
Hunk #4 FAILED at 1214.
4 out of 4 hunks FAILED -- saving rejects to opcodes/mips-dis.c.rej
patching file `opcodes/mips-opc.c'
Hunk #1 FAILED at 109.
Hunk #2 FAILED at 272.
Hunk #3 FAILED at 434.
Hunk #4 FAILED at 445.
Hunk #5 FAILED at 469.
Hunk #6 FAILED at 601.
Hunk #7 FAILED at 611.
Hunk #8 FAILED at 645.
Hunk #9 FAILED at 679.
Hunk #10 FAILED at 711.
Hunk #11 FAILED at 756.
Hunk #12 FAILED at 769.
Hunk #13 FAILED at 786.
Hunk #14 FAILED at 938.
Hunk #15 FAILED at 976.
Hunk #16 FAILED at 1079.
Hunk #17 FAILED at 1164.
Hunk #18 FAILED at 1175.
Hunk #19 FAILED at 1508.
19 out of 19 hunks FAILED -- saving rejects to opcodes/mips-opc.c.rej
ERROR PATCHING BINUTILS
Any idea?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

What version of patch are you using?
qlfecv
Posts: 4
Joined: Sat Jul 30, 2005 10:00 pm

Post by qlfecv »

2005-07-23 07:52

download all trunk yesterday nigth.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

$ patch -v
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert
Now which version of patch are you using?
Karmix
Posts: 2
Joined: Thu Apr 29, 2004 8:16 am

Post by Karmix »

You ususally have a hunk fail when the patch file you are using was made for a different version of the file you are trying to patch. I personally would be suprised if it had something to do with the version of patch you were using, but check anyway. I'd also double check to make sure you have the right patch files and the right version of the source. A little more information on what you're doing to build would be helpful. (what did you do to checkout the toolchain, what did you type to start the build, etc.) I'm assuming that you're using Oopo's build script, so listen to what he says :). Good Luck
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

Toolchain did recently move from 4.0.0 to 4.0.1. That would screw all the patches. Do a full update.

Jim
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

The toolchain script has the gcc version set in one place. If the script is using gcc-4.0.0.patch, it will download gcc-4.0.0.tar.bz2, unpack, and patch it. There is no reason for it to go with the wrong version unless you're manually renaming files or editing the script.

Regardless, its failing during binutils - it doesn't even get to gcc. And the version he's using (I'll assume he meant 20050725) is already updated to use gcc-4.0.1.

I've had a problem with patch before where an older version couldn't understand some of the information in the diff file and would fail chunks. I've also had a problem once where patch wouldn't accept '-p0' and it would fail as well. This is why I asked which version of patch he was using.
qlfecv
Posts: 4
Joined: Sat Jul 30, 2005 10:00 pm

Post by qlfecv »

Thank.

The problem was to have multiple app of cywin installed. :(

I clean all, install last version of cygwin and it work fine.
Post Reply