The first working ps3toolchain release!

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

Moderators: cheriff, emoon

kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

IM STILL GETTING THIS

Code: Select all


../../binutils/bin2c.c: In function `main': 
../../binutils/bin2c.c:89: warning: implicit declaration of function `_fileno' 
../../binutils/bin2c.c:89: warning: implicit declaration of function `_setmode' 
make[4]: *** [bin2c.exe] Error 1 
make[4]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu/binutils' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu/binutils' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu/binutils' 
make[1]: *** [all-binutils] Error 2 
make[1]: *** Waiting for unfinished jobs.... 
gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd - 
I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd -DLOC 
ALEDIR="\"/usr/local/ps3dev/spu/share/locale\""   -W -Wall -Wstrict-prototypes - 
Wmissing-prototypes -Werror -g -O2 -c ../../gas/write.c 
gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd - 
I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd -DLOC 
ALEDIR="\"/usr/local/ps3dev/spu/share/locale\""   -W -Wall -Wstrict-prototypes - 
Wmissing-prototypes -Werror -g -O2 -c ../../gas/config/tc-spu.c 
gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd - 
I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd -DLOC 
ALEDIR="\"/usr/local/ps3dev/spu/share/locale\""   -W -Wall -Wstrict-prototypes - 
Wmissing-prototypes -Werror -g -O2 -c ../../gas/config/obj-elf.c 
gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd - 
I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd -DLOC 
ALEDIR="\"/usr/local/ps3dev/spu/share/locale\""   -W -Wall -Wstrict-prototypes - 
Wmissing-prototypes -Werror -g -O2 -c ../../gas/config/atof-ieee.c 
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototy 
pes -Werror -g -O2   -o as-new.exe  app.o as.o atof-generic.o cond.o depend.o dw 
arf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum 
-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o me 
ssages.o output-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-spu.o 
obj-elf.o atof-ieee.o  ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/li 
biberty.a 
mkdir .libs 
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o as-new.e 
xe app.o as.o atof-generic.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o eho 
pt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file 
.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o sb. 
o stabs.o subsegs.o symbols.o write.o tc-spu.o obj-elf.o atof-ieee.o  ../opcodes 
/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a 
make[4]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu/gas' 
make[3]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu/gas' 
make[2]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu/gas' 
make[1]: Leaving directory `/home/kevin/ps3toolchain/build/binutils-2.17.50/buil 
d-spu' 
make: *** [all] Error 2 
../scripts/005-binutils-2.17.50-spu.sh: Failed. 

hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

and there IS ALREADY TOLD for 3 times how to fix it
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

hallo007 wrote:-delete -werror
Try adding '--disable-werror' to the configure line for gcc in that script. Let me know how it turns out.
hallo007 wrote:-run the scripts in ps3toolchain/scripts , one by one
If you grab the latest version from subversion, you can use something like './toolchain.sh 1 2 3 4 5' to specify which steps you want to run.
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

toolchain is running , i added it


still running , but i am running it at 666Mhz , on my old laptop , because , i need the computer for other things right now;)
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

I fixed it:):):) you get this error when you dont have cygwin1.dll in windows/system32 , so copy usr/bin/cygwin1.dll to the system32 folder
Who wants to do that? Better to add usr/bin to your Windows path.

Jim
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

im srry im just really confused on how im supposed to fix it...

i got the cygwin thing setup with ur code and everything. what else...
explain in detail.. im sure others will have this problem

Edit : i tried them in ps3toolchain/scripts indevidually and i get the error in 005... still same error... so whats ur solution?
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

ooPo wrote:
hallo007 wrote:-delete -werror
Try adding '--disable-werror' to the configure line for gcc in that script. Let me know how it turns out.
hallo007 wrote:-run the scripts in ps3toolchain/scripts , one by one
If you grab the latest version from subversion, you can use something like './toolchain.sh 1 2 3 4 5' to specify which steps you want to run.
It worked , i got now some errors with the newlib , but i am already fixing it;)

again with this
prefix = /usr/local/ps3dev/spu
prefix = usr/local/ps3dev/spu


mayby make some script that it auto change?
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

hallo007 wrote:
ooPo wrote:
hallo007 wrote:-delete -werror
Try adding '--disable-werror' to the configure line for gcc in that script. Let me know how it turns out.
hallo007 wrote:-run the scripts in ps3toolchain/scripts , one by one
If you grab the latest version from subversion, you can use something like './toolchain.sh 1 2 3 4 5' to specify which steps you want to run.
It worked , i got now some errors with the newlib , but i am already fixing it;)

again with this
prefix = /usr/local/ps3dev/spu
prefix = usr/local/ps3dev/spu


mayby make some script that it auto change?
where is the the file for the spu one?
mukumuku
Posts: 4
Joined: Fri Jun 22, 2007 9:09 am

Post by mukumuku »

Any assumptions what causes this error when i run toolchain.sh? :
./toolchain.sh: line 17: ../depends/check-autoconf.sh: Permission denied
../depends/check-autoconf.sh: Failed.

I installed the latest autoconf version because i thought that was the problem but doesn't seem to help. I am on slackware 11. I can't figure out why it doesn't let me install the toolchain.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

mukumuku:

Take a look in depends/check-autoconf.sh to see what commands it is trying to run. Perhaps you can track down the problem.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

mukumuku wrote:Any assumptions what causes this error when i run toolchain.sh? :
./toolchain.sh: line 17: ../depends/check-autoconf.sh: Permission denied
../depends/check-autoconf.sh: Failed.
The scripts in the depends/ and builds/ directory should be executable, and yours aren't. This may be because you checked out the files with something like tortoiseSVN and the executable bit wasn't set properly for cygwin.

Something like chmod +x depends/*.sh build/*.sh should fix it. Oopo, maybe "sh $SCRIPT" rather than "$SCRIPT" in toolchain.sh?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

jimparis wrote:Oopo, maybe "sh $SCRIPT" rather than "$SCRIPT" in toolchain.sh?
That's not a bad idea.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

what if one does not have (sh) installed
10011011 00101010 11010111 10001001 10111010
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Then the scripts won't run anyway, since they start with "#!/bin/sh".
mukumuku
Posts: 4
Joined: Fri Jun 22, 2007 9:09 am

Post by mukumuku »

Ok thanks. I installed it! But, what am I supposed to do now? Is there any kind of documentation to start with? The files are located under /usr/local/ps3dev, right?
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

ok now what bout my prob with the spu? wheres the one file to change

Code: Select all


prefix = /usr/local/ps3dev/spu 
to
prefix = usr/local/ps3dev/spu 


or w/e the code it
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

kid101skater wrote:ok now what bout my prob with the spu? wheres the one file to change

Code: Select all


prefix = /usr/local/ps3dev/spu 
to
prefix = usr/local/ps3dev/spu 


or w/e the code it
...........


Look to the makefile in the directory where the error happens
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

hallo007 wrote:
kid101skater wrote:ok now what bout my prob with the spu? wheres the one file to change

Code: Select all


prefix = /usr/local/ps3dev/spu 
to
prefix = usr/local/ps3dev/spu 


or w/e the code it
...........


Look to the makefile in the directory where the error happens
Thank you. but i still cant get it to work :(

so im gunna try not doing so on cygwin and try on my other pc on linux
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

So... i downloaded ubuntu 7.04 and did alot of

Code: Select all

sudo get-apt install
and have not gotten the same errors. so i believe that its just a thing with cygwin.
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

Installed and made already a simpel hello world


would nice to see the debug.c and fb.c and time.c being integrated in the next release , and also support for threads would be nice


current thread error

Code: Select all

In file included from /usr/local/ps3dev/ppu/lib/gcc/ppu/4.2.0/../../../../ppu/include/unistd.h:4,
                 from /usr/local/ps3dev/ppu/lib/gcc/ppu/4.2.0/../../../../ppu/include/pthread.h:28,
                 from demo.c:3:
/usr/local/ps3dev/ppu/lib/gcc/ppu/4.2.0/../../../../ppu/include/sys/unistd.h:144: error: conflicting types for 'sleep'
proto.h:11: error: previous declaration of 'sleep' was here
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

if i figure out this error i can compile on ubuntu on pc

Code: Select all

objcopy -O binary demo.elf demo.bin
objcopy: Unable to recognise the format of the input file `demo.elf'
make: *** [demo.bin] Error 1
ldesnogu
Posts: 94
Joined: Sat Apr 17, 2004 10:37 pm

Post by ldesnogu »

kid101skater wrote:if i figure out this error i can compile on ubuntu on pc

Code: Select all

objcopy -O binary demo.elf demo.bin
objcopy: Unable to recognise the format of the input file `demo.elf'
make: *** [demo.bin] Error 1
You are probably using the wrong objcopy, namely the one of your PC.
You want the objcopy for the PPU, whatever its name and path are with ooPo package :)
Laurent
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

/usr/local/ps3dev/ppu/bin
and
/usr/local/ps3dev/spu/bin
10011011 00101010 11010111 10001001 10111010
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

dot_blank wrote:/usr/local/ps3dev/ppu/bin
and
/usr/local/ps3dev/spu/bin
ok and exactly where would i do this in....

etc/Profile?

whats the full code to add
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Open the makefile. Change 'objcopy' into 'ppu-objcopy' Save the makefile.

You're really off to a potentially rocky start if you need your hand held on this.
kid101skater
Posts: 26
Joined: Wed Jun 20, 2007 6:13 am

Post by kid101skater »

ooPo wrote:Open the makefile. Change 'objcopy' into 'ppu-objcopy' Save the makefile.

You're really off to a potentially rocky start if you need your hand held on this.
haha... just wait :)
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

Anyone already have some progress to get info from the hardware???

i hope someone get access from the hdd soon:)
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Not sure what you mean. From the otheros loader, we already have access to lots of the hardware, and access to the "other os" hdd partition. The hypervisor won't give us access to the full disk, and from otheros there's nothing we can do to change that.
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

Yeah but what are the commands?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

What "commands"? The hypervisor calls? A documentation project is underway at http://wiki.ps2dev.org/ps3:hypervisor, or you can just go look at the Linux drivers.
Post Reply