Latest toolchain patch errors...

Technical discussion on the newly released and hard to find PS3.

Moderators: cheriff, emoon

Post Reply
TommyBear
Posts: 50
Joined: Fri Jun 24, 2005 11:21 pm

Latest toolchain patch errors...

Post by TommyBear »

Do you guys know what I may have broken?

While binutils is being patched I get this:

Hunk #1 FAILED at 1.
Hunk #2 FAILED at 17.
2 out of 2 hunks FAILED -- saving rejects to file ld/testsuite/ld-pe/pe.exp.rej
patching file ld/testsuite/ld-pe/secrel.d
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file ld/testsuite/ld-pe/secrel.d.rej

This is with the latest PS3Toolchain out of svn, I'm also running the shell script to perform the installation.

This is the contents of pe.exp.rej:

Code: Select all


***************
*** 1,5 ****
  # Expect script for export table in executables tests
- #   Copyright 2004
  #   Free Software Foundation, Inc.
  #
  # This file is free software; you can redistribute it and/or modify
--- 1,5 ----
  # Expect script for export table in executables tests
+ #   Copyright 2004, 2006
  #   Free Software Foundation, Inc.
  #
  # This file is free software; you can redistribute it and/or modify
***************
*** 17,25 ****
  # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  #
   
- # This test can only be run on i386 PE/COFF platforms.
- if { ![istarget i*86-*-cygwin*] && ![istarget i*86-*-pe]
-      && ![istarget i*86-*-mingw*] } {
      return
  }
  
--- 17,28 ----
  # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  #
   
+ # This test can only be run on PE/COFF platforms that support .secrel32.
+ if {    ![istarget i*86-*-cygwin*]
+      && ![istarget i*86-*-pe]
+      && ![istarget i*86-*-mingw*]
+      && ![istarget x86_64-*-mingw*]
+      && ![istarget arm-wince-pe] } {
      return
  }
  
and this is the contents of secrel.d.rej:

Code: Select all

***************
*** 1,27 ****
  
- tmpdir/secrel\.x:     file format pei-i386
  
  Contents of section \.text:
-  401000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
-  401010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
-  401020 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
-  401030 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
-  401040 ........ ........ ........ ........  ................
  Contents of section \.data&#58;
-  402000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
-  402010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
-  402020 3e3e3e3e 04000000 110d0000 00111600  >>>>............
-  402030 0000111f 00000011 3c3c3c3c 3c3c3c3c  ........<<<<<<<<
-  402040 3e3e3e3e 04000000 110d0000 00111600  >>>>............
-  402050 0000111f 00000011 3c3c3c3c 3c3c3c3c  ........<<<<<<<<
-  402060 3e3e3e3e 04000000 110d0000 00111600  >>>>............
-  402070 0000111f 00000011 3c3c3c3c 3c3c3c3c  ........<<<<<<<<
-  402080 3e3e3e3e 24000000 112d0000 00113600  >>>>\$....-....6.
-  402090 0000113f 00000011 3c3c3c3c 3c3c3c3c  ...\?....<<<<<<<<
  Contents of section \.rdata&#58;
-  403000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
-  403010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
-  403020 3e3e3e3e 00000000 00000000 00000000  >>>>............
  Contents of section \.idata&#58;
-  404000 00000000 00000000 00000000 00000000  ................
-  404010 00000000                             ....            
--- 1,27 ----
  
+ tmpdir/secrel\.x&#58; +file format pei-.*
  
  Contents of section \.text&#58;
+  .*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
+  .*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
+  .*1020 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
+  .*1030 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
+  .*1040 ........ ........ ........ ........  ................
  Contents of section \.data&#58;
+  .*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
+  .*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
+  .*2020 3e3e3e3e 04000000 110d0000 00111600  >>>>............
+  .*2030 0000111f 00000011 3c3c3c3c 3c3c3c3c  ........<<<<<<<<
+  .*2040 3e3e3e3e 04000000 110d0000 00111600  >>>>............
+  .*2050 0000111f 00000011 3c3c3c3c 3c3c3c3c  ........<<<<<<<<
+  .*2060 3e3e3e3e 04000000 110d0000 00111600  >>>>............
+  .*2070 0000111f 00000011 3c3c3c3c 3c3c3c3c  ........<<<<<<<<
+  .*2080 3e3e3e3e 24000000 112d0000 00113600  >>>>\$....-....6.
+  .*2090 0000113f 00000011 3c3c3c3c 3c3c3c3c  ...\?....<<<<<<<<
  Contents of section \.rdata&#58;
+  .*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c  >>>><<<<>>>>><<<
+  .*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c  >>>>>><<>>>>>>><
+  .*3020 3e3e3e3e 00000000 00000000 00000000  >>>>............
  Contents of section \.idata&#58;
+  .*4000 00000000 00000000 00000000 00000000  ................
+  .*4010 00000000                             ....            
Thanks guys.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

I've just tested the version in the repository - the patch applies cleanly to binutils-2.17 for me.

Be advised that the ps3toolchain isn't close to being finished yet, btw.
TommyBear
Posts: 50
Joined: Fri Jun 24, 2005 11:21 pm

Post by TommyBear »

That's fine... I'm just trying to get things compiling on my machine. It just worries me that it's not patching. :(
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

If you really want to do ps3 development at the moment, install linux on your PS3 and use the compilers it comes with.

The ps3toolchain really isn't anywhere near useful at the moment.
Post Reply