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 

problems with latest toolchain / psplibraries builds
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
deniska



Joined: 17 Oct 2005
Posts: 71
Location: New York

PostPosted: Sun Jun 01, 2008 9:32 am    Post subject: problems with latest toolchain / psplibraries builds Reply with quote

I recently decided to upgrade the sdl and the libraries on 2 of my computers. The installation of the toolchain and the libraries went ok on both cygwin and ubuntu boxes. I have recompiled a couple of sdl game ports and that went ok too, but the resulting executables wont run on psp. I don't see any errors in psplinkusb's pspsh and it just shuts the psp down if ran from memory stick.
The tests were done on the slim, and the same code seems to work if compiled with 5month old sdk build.

Does anyone have any clues as to what changed or experience similar problems?
Back to top
View user's profile Send private message
bykte



Joined: 01 Jun 2008
Posts: 3

PostPosted: Sun Jun 01, 2008 3:03 pm    Post subject: Reply with quote

I think I am having the same problem as you. I am currently using revision 2392. All the executables that I compiled with it cannot be executed on my SLIM, 390m33-3 PSP resulting the PSP to be shutdown within a few seconds of running it. Someone with an older revision of the SDK compiled the exact same copy and it ran on my PSP without the shutdown problem.
Back to top
View user's profile Send private message
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Sun Jun 01, 2008 6:29 pm    Post subject: Reply with quote

Same here, updated my sdk yesterday and same problem :x
There is a bug in the latest sdk.
Back to top
View user's profile Send private message
MagerValp



Joined: 20 Jul 2007
Posts: 10

PostPosted: Sun Jun 01, 2008 8:09 pm    Post subject: Reply with quote

I'm having a possibly related problem, where psplink shuts down my 3.90M33-3 fat when I start usbhostfs_pc, as detailed here:

http://forums.ps2dev.org/viewtopic.php?t=10377

psplink compiled with an earlier sdk runs fine.
Back to top
View user's profile Send private message Visit poster's website
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Jun 01, 2008 9:56 pm    Post subject: Reply with quote

I have updated my SDK this morning after reading this thread and I have the same issues too.
Back to top
View user's profile Send private message
whistler



Joined: 04 Mar 2008
Posts: 40

PostPosted: Sun Jun 01, 2008 10:25 pm    Post subject: Reply with quote

i'm using revison 2392 and i don't have any problems with either the psptoolchain or sdl and the support libraries. all my executables compile and run on my psp slim
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Jun 01, 2008 10:52 pm    Post subject: Reply with quote

whistler wrote:
i'm using revison 2392 and i don't have any problems with either the psptoolchain or sdl and the support libraries. all my executables compile and run on my psp slim


Did you update the entire toolchain to revision 2392 or just the SDK (ie. via ./toolchain.sh 6)?

I did a full install of revision 2391 and that worked perfectly.

Revision 2392 seems broken.

I've commited a fix in revision 2393, I'm just running the toolchain script now to ensure it works.
Back to top
View user's profile Send private message
whistler



Joined: 04 Mar 2008
Posts: 40

PostPosted: Sun Jun 01, 2008 11:08 pm    Post subject: Reply with quote

Insert_witty_name wrote:
whistler wrote:
i'm using revison 2392 and i don't have any problems with either the psptoolchain or sdl and the support libraries. all my executables compile and run on my psp slim


Did you update the entire toolchain to revision 2392 or just the SDK (ie. via ./toolchain.sh 6)?

I did a full install of revision 2391 and that worked perfectly.

Revision 2392 seems broken.

I've commited a fix in revision 2393, I'm just running the toolchain script now to ensure it works.


i was originally on 2390. to update to 2392 i ran ./toolchain.sh 6 and reran ./libraries.sh

btw i've just started a completely fresh installation of revision 2393, if i have any problems i'll post back here
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Jun 01, 2008 11:15 pm    Post subject: Reply with quote

Seems that the problem still persists.

I'll revert the binutils patch back to the working version of 2391 until Oopo can take a proper look at it.

[EDIT] I've reverted the binutils patch back to the working revision from 2391.

Commited in revision 2394.
Back to top
View user's profile Send private message
whistler



Joined: 04 Mar 2008
Posts: 40

PostPosted: Sun Jun 01, 2008 11:23 pm    Post subject: Reply with quote

yes, i've just finished a fresh install of the toolchain (2393) and i'm experiencing the same problems as everyone else. its a good job i zipped the old pspdev folder before testing the update!
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Jun 02, 2008 12:48 am    Post subject: Reply with quote

Revision 2394 should fix any issues.
Back to top
View user's profile Send private message
deniska



Joined: 17 Oct 2005
Posts: 71
Location: New York

PostPosted: Mon Jun 02, 2008 2:13 am    Post subject: Reply with quote

Insert_witty_name wrote:
Revision 2394 should fix any issues.

great, I'll update and report back!
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Mon Jun 02, 2008 2:20 am    Post subject: Reply with quote

~Report~

I have just finished updating to Revision 2394 and still have the same issues,
Back to top
View user's profile Send private message
whistler



Joined: 04 Mar 2008
Posts: 40

PostPosted: Mon Jun 02, 2008 3:04 am    Post subject: Reply with quote

hibbyware wrote:
~Report~

I have just finished updating to Revision 2394 and still have the same issues,


me too
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Jun 02, 2008 3:13 am    Post subject: Reply with quote

Apologies.

I have commited revision 2395, which should fix all the problems.

I have rerun toolchain.sh fully and am able to run binaries produced with the SDK.
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Mon Jun 02, 2008 3:15 am    Post subject: Reply with quote

Thanks Insert_witty_name,

I will try updating to 2395 now,



~edit~

I can confirm Revision 2395 is OK, Yay!

Once again thanks Insert_witty_name,
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Jun 02, 2008 10:44 am    Post subject: Reply with quote

Uh, so what was the problem and what was the fix? :)
Back to top
View user's profile Send private message Visit poster's website
deniska



Joined: 17 Oct 2005
Posts: 71
Location: New York

PostPosted: Mon Jun 02, 2008 3:01 pm    Post subject: Reply with quote

Insert_witty_name wrote:
Apologies.

I have commited revision 2395, which should fix all the problems.

I have rerun toolchain.sh fully and am able to run binaries produced with the SDK.

yep, it work ok now.. thanks!
Back to top
View user's profile Send private message
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Mon Jun 02, 2008 6:12 pm    Post subject: Reply with quote

It work here too, but something have changed in the sony osk usage.

The default keyboard is always set to chinsee (or jap dunno). When i change the "language" param, only the "confirm exit" box is concerned by the setting.
Also i can't retrieve the input texte anymore :x

Does someone have a solution ?
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Jun 02, 2008 6:18 pm    Post subject: Reply with quote

I updated the OSK header and added a sample recently.

Check out the sample.
Back to top
View user's profile Send private message
archeon



Joined: 02 Jun 2008
Posts: 4

PostPosted: Mon Jun 02, 2008 6:35 pm    Post subject: revision check Reply with quote

<<<<edit: solved now, thanks>>>>>

sorry for the newbie question, but how do I check what SVN revision I built pspsdk/toolchain from? I am having this exact problem with 3.90 M33



Thanks!
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Mon Jun 02, 2008 11:10 pm    Post subject: Reply with quote

ooPo wrote:
Uh, so what was the problem and what was the fix? :)


I have no idea what actually broke, but it was broken by the changes introduced in revision 2392.

I didn't fix it as such, but reverted the toolchain.sh and binutils patch back to what they were in revision 2391.

Just for clarification Oopo, all I have to do to get the toolchain to compile on OSX is to change the last line of 001-binutils-2.16.1.sh from:

Code:
 make clean && make -j 2 && make install && make clean || { exit 1; }


to

Code:
 make clean && make -r -j 2 && make install && make clean || { exit 1; }


Maybe an update with a check using uname = Darwin?
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jun 03, 2008 12:23 am    Post subject: Reply with quote

So it compiles, but does it run? :)

Quote:
-r, --no-builtin-rules
Eliminate use of the built-in implicit rules. Also clear out the default list of suffixes for suffix rules.

If that doesn't break anything then we can add it to all builds, otherwise a check would be fine. Can someone test building it on a non-OSX machine?
Back to top
View user's profile Send private message Visit poster's website
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Tue Jun 03, 2008 1:26 am    Post subject: Reply with quote

Yes it compiles and runs on my OSX machine using the -r flag.

I also have a cygwin and linux setup so I'll test tonight if it works on both those too.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jun 03, 2008 2:15 am    Post subject: Reply with quote

Ok, good. Thanks. :)
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jun 03, 2008 2:21 am    Post subject: Reply with quote

Tested under Ubuntu 8.04. Seems to be fine with the -r option. Had to change one more field for the OSK in Doom compared to the last time I updated the SDK. :) Not many unknowns left.
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jun 03, 2008 3:00 am    Post subject: Reply with quote

So if its working fine under OSX and Linux, are there any complaints before I submit it to the repository?
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jun 03, 2008 4:20 am    Post subject: Reply with quote

While you're doing that, how about submitting something we've been talking about for a while, but never got around to - being able to set the heap size to the max minus a variable amount. The code change is to _sbrk in libcglue.c in newlib.

You change
Code:
      if (heap_size == (unsigned int) -1) {
         heap_size = sceKernelMaxFreeMemSize();
      } else {
         heap_size *= 1024;
      }


to
Code:
      heap_size *= 1024;
      if ((int)heap_size < 0)
         heap_size += sceKernelMaxFreeMemSize();


PSP_HEAP_SIZE_MAX() is still the same, but you can now set the heap to be the max - x using PSP_HEAP_SIZE_KB(negative kb). For example,

Code:
PSP_HEAP_SIZE_KB(-1024);


sets the heap size to MAX - 1024 KB. Positive values work the same way as before. I've tested the code above, and it really works. In pspuae on my Slim, I get 38.53 MB free for -1024, and 37.50 MB free for -2048. Setting it to 20000, gives a smidgen over 13 MB free.

This change is great for programs designed to give maximum memory on both the Phat and Slim without having two different binaries. Just set "PSP_LARGE_MEMORY = 1" in the makefile, then use a negative value for the heap size. Note that this is for cases where MAX cannot be used - for example, in SDL or LTE where threads are used. Setting MAX prevents threads from being created, which was what got us to talking about this negative value in the first place.
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Jun 03, 2008 6:07 am    Post subject: Reply with quote

Easy enough to add that change, the only problem I can see is if someone uses the old method (-1), it'll give them 1K less than before the change.

If that's acceptable, I have the patch made and can commit it anytime.
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jun 03, 2008 7:15 am    Post subject: Reply with quote

ooPo wrote:
Easy enough to add that change, the only problem I can see is if someone uses the old method (-1), it'll give them 1K less than before the change.

If that's acceptable, I have the patch made and can commit it anytime.


Yeah, I thought about making it more complex to check for -1 specifically, but come on! 1K? I can't envision it ever being an issue. :)

On the other hand, if your program is so close on memory that 1 KB less on the heap makes it fail, you probably need to do some more work on it in any case. :D
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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