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 

The first working ps3toolchain release!
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Development
View previous topic :: View next topic  
Author Message
kid101skater



Joined: 20 Jun 2007
Posts: 26

PostPosted: Thu Jun 21, 2007 1:57 am    Post subject: Reply with quote

IM STILL GETTING THIS

Code:


../../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.

Back to top
View user's profile Send private message
hallo007



Joined: 13 May 2006
Posts: 36

PostPosted: Thu Jun 21, 2007 2:38 am    Post subject: Reply with quote

and there IS ALREADY TOLD for 3 times how to fix it
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Jun 21, 2007 3:27 am    Post subject: Reply with quote

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



Joined: 13 May 2006
Posts: 36

PostPosted: Thu Jun 21, 2007 3:39 am    Post subject: Reply with quote

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



Joined: 02 Jul 2005
Posts: 489
Location: Sydney

PostPosted: Thu Jun 21, 2007 8:05 am    Post subject: Reply with quote

Quote:
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
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
kid101skater



Joined: 20 Jun 2007
Posts: 26

PostPosted: Thu Jun 21, 2007 8:25 am    Post subject: Reply with quote

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



Joined: 13 May 2006
Posts: 36

PostPosted: Thu Jun 21, 2007 10:23 pm    Post subject: Reply with quote

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



Joined: 20 Jun 2007
Posts: 26

PostPosted: Fri Jun 22, 2007 5:07 am    Post subject: Reply with quote

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



Joined: 22 Jun 2007
Posts: 4

PostPosted: Fri Jun 22, 2007 9:19 am    Post subject: Reply with quote

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


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 22, 2007 9:44 am    Post subject: Reply with quote

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



Joined: 10 Jun 2005
Posts: 1180
Location: Boston

PostPosted: Fri Jun 22, 2007 11:06 am    Post subject: Reply with quote

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


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 22, 2007 2:01 pm    Post subject: Reply with quote

jimparis wrote:
Oopo, maybe "sh $SCRIPT" rather than "$SCRIPT" in toolchain.sh?

That's not a bad idea.
Back to top
View user's profile Send private message Visit poster's website
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Fri Jun 22, 2007 2:17 pm    Post subject: Reply with quote

what if one does not have (sh) installed
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1180
Location: Boston

PostPosted: Fri Jun 22, 2007 4:23 pm    Post subject: Reply with quote

Then the scripts won't run anyway, since they start with "#!/bin/sh".
Back to top
View user's profile Send private message
mukumuku



Joined: 22 Jun 2007
Posts: 4

PostPosted: Sat Jun 23, 2007 1:58 am    Post subject: Reply with quote

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



Joined: 20 Jun 2007
Posts: 26

PostPosted: Sat Jun 23, 2007 6:11 am    Post subject: Reply with quote

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

Code:


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




or w/e the code it
Back to top
View user's profile Send private message
hallo007



Joined: 13 May 2006
Posts: 36

PostPosted: Sat Jun 23, 2007 9:39 pm    Post subject: Reply with quote

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

Code:


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



Joined: 20 Jun 2007
Posts: 26

PostPosted: Sun Jun 24, 2007 1:31 am    Post subject: Reply with quote

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

Code:


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



Joined: 20 Jun 2007
Posts: 26

PostPosted: Sun Jun 24, 2007 9:59 am    Post subject: Reply with quote

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

Code:

sudo get-apt install


and have not gotten the same errors. so i believe that its just a thing with cygwin.
Back to top
View user's profile Send private message
hallo007



Joined: 13 May 2006
Posts: 36

PostPosted: Mon Jun 25, 2007 7:26 pm    Post subject: Reply with quote

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



Joined: 20 Jun 2007
Posts: 26

PostPosted: Mon Jun 25, 2007 8:15 pm    Post subject: Reply with quote

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

Code:

objcopy -O binary demo.elf demo.bin
objcopy: Unable to recognise the format of the input file `demo.elf'
make: *** [demo.bin] Error 1
Back to top
View user's profile Send private message
ldesnogu



Joined: 17 Apr 2004
Posts: 97

PostPosted: Mon Jun 25, 2007 8:29 pm    Post subject: Reply with quote

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

Code:

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



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Mon Jun 25, 2007 10:02 pm    Post subject: Reply with quote

/usr/local/ps3dev/ppu/bin
and
/usr/local/ps3dev/spu/bin
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
kid101skater



Joined: 20 Jun 2007
Posts: 26

PostPosted: Tue Jun 26, 2007 10:03 am    Post subject: Reply with quote

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


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jun 26, 2007 10:43 am    Post subject: Reply with quote

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



Joined: 20 Jun 2007
Posts: 26

PostPosted: Tue Jun 26, 2007 1:47 pm    Post subject: Reply with quote

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



Joined: 13 May 2006
Posts: 36

PostPosted: Wed Jun 27, 2007 8:22 pm    Post subject: Reply with quote

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

i hope someone get access from the hdd soon:)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1180
Location: Boston

PostPosted: Thu Jun 28, 2007 6:50 am    Post subject: Reply with quote

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



Joined: 13 May 2006
Posts: 36

PostPosted: Thu Jun 28, 2007 7:25 pm    Post subject: Reply with quote

Yeah but what are the commands?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1180
Location: Boston

PostPosted: Fri Jun 29, 2007 12:36 am    Post subject: Reply with quote

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.
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 -> PS3 Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
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