forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

toolchain error

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
qlfecv



Joined: 30 Jul 2005
Posts: 4

PostPosted: Tue Aug 02, 2005 6:43 pm    Post subject: toolchain error Reply with quote

Code:
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?
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Aug 02, 2005 11:55 pm    Post subject: Reply with quote

What version of patch are you using?
Back to top
View user's profile Send private message Visit poster's website
qlfecv



Joined: 30 Jul 2005
Posts: 4

PostPosted: Wed Aug 03, 2005 2:58 am    Post subject: Reply with quote

2005-07-23 07:52

download all trunk yesterday nigth.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Aug 03, 2005 3:41 am    Post subject: Reply with quote

Code:
$ 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?
Back to top
View user's profile Send private message Visit poster's website
Karmix



Joined: 29 Apr 2004
Posts: 2

PostPosted: Wed Aug 03, 2005 10:31 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Wed Aug 03, 2005 9:39 pm    Post subject: Reply with quote

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

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Aug 04, 2005 12:26 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
qlfecv



Joined: 30 Jul 2005
Posts: 4

PostPosted: Thu Aug 04, 2005 7:03 pm    Post subject: Reply with quote

Thank.

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

I clean all, install last version of cygwin and it work fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group