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 

Question about the Perl toolchain script and the shell one

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



Joined: 20 Aug 2005
Posts: 100

PostPosted: Sat Jan 21, 2006 7:24 pm    Post subject: Question about the Perl toolchain script and the shell one Reply with quote

ooPo, I cannot make the Perl script work:
Code:
##
## Executing the following command:
##
## { touch /usr/local/ps2dev/.test && rm /usr/local/ps2dev/.test; }
##
touch: cannot touch `/usr/local/ps2dev/.test': No such file or directory


I get this error while running the script with the command ./toolchain.pl PSP

Edit: I am running the normal shell script now, but I still wanted to know if I did something that got in the way of the Perl script properly running or being properly configured... maybe there is a hard coded directory... when the shell script is done rebuilding the whole toolchain and PSPSDK I will try to check out the Perl script itself, but I do not have high hopes to find the problem by myself if it is in the Perl script... I never really learned Perl so if it is not something obvious... well, I am a bit SOL on that one ;).


About the updated shell script: I see in the README of the perl script that it grabs the latest patches from SVN, was this functionality also included in the new shell script (you did say so in a post, but in that post you did not mention the fact that you had now prepared two versions of the script so I wonder if that comment was directed towards the new and improved shell script) ?
Back to top
View user's profile Send private message
MJBoa



Joined: 21 Jan 2006
Posts: 6

PostPosted: Sun Jan 22, 2006 4:43 am    Post subject: Reply with quote

I get the same exact error when it's checking "privs."
Back to top
View user's profile Send private message
Panajev2001a



Joined: 20 Aug 2005
Posts: 100

PostPosted: Sun Jan 22, 2006 8:17 am    Post subject: Reply with quote

MJBoa wrote:
I get the same exact error when it's checking "privs."


Oh well, it is an early vesion of the script :).

It is not like he did not create an updated version of the sh script :D.
Back to top
View user's profile Send private message
Panajev2001a



Joined: 20 Aug 2005
Posts: 100

PostPosted: Sun Jan 22, 2006 8:24 am    Post subject: Reply with quote

I think the problem is a line in the .pl script:

Code:
 my @dependencies = (
  [ "gcc:\t",          "{ gcc -v; }" ],
  [ "make:\t",         "{ $make -v; }" ],
  [ "wget:\t",         "{ wget -V; }" ],
  [ "patch:\t",        "{ patch -v; }" ],
  [ "svn:\t",          "{ svn help; }" ],
  [ "privs:\t",        "{ touch $PS2DEV/.test && rm $PS2DEV/.test; }" ],
  [ "automake:",       "{ automake --version; }" ],
  [ "autoconf:",       "{ autoconf --version; }" ]
 );


Specifically the "privs" line which tries to "touch" not existing files.

My question is this: if I am asking to build PSP files ( ./toolchain.pl PSP ) why does the script try to access files in a directory that should not matter to the program at all ( my $PS2DEV = "/usr/local/ps2dev"; ) ?
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Jan 23, 2006 9:56 am    Post subject: Reply with quote

Oh yes. That wouldn't make much sense at all would it?

That's a leftover from writing the script using the PS2 toolchain as a base.

Just comment out that line for now.
Back to top
View user's profile Send private message Visit poster's website
Panajev2001a



Joined: 20 Aug 2005
Posts: 100

PostPosted: Mon Jan 23, 2006 8:47 pm    Post subject: Reply with quote

I will comment it and try to use it again (I think it should work just as fine as the other shell based script, I'll try to use it to update to the very latest PSPSDK posted in SVN since as you said this script goes looking in the SVN repository for the latest sources for PSPSDK, GCC, Binutils, Newlib, etc...).
Back to top
View user's profile Send private message
Panajev2001a



Joined: 20 Aug 2005
Posts: 100

PostPosted: Mon Jan 23, 2006 10:31 pm    Post subject: Reply with quote

Quote:
$ ./toolchain.pl PSP 6

Dependencies:
gcc: Found!
make: Found!
wget: Found!
patch: Found!
svn: Found!
automake: Found!
autoconf: Found!

Step 1 of 6: binutils-2.16.1
downloading: |


Still, somethign wrong... I used option 6 which should say update and build the PSPSDK package only (and what about option 3 that mentions PSPSDK headers ? Should it be used along with this one ?), but the script is ignoring it and going from the 1st step forward.

Edit: minor correction, it starts downloading binutils... but then it kinda stops... (animated slash not moving for minutes).
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Jan 23, 2006 11:55 pm    Post subject: Reply with quote

That's also another bug - selecting single steps doesn't work.

When it finishes downloading the binutils source with wget, it uses svn to grab the latest patch from the pspdev subversion server. Unfortunately, the standard svn client will sit there and look frozen while it does its work... since there's no output, the spinner doesn't spin.

If you want to take a look at it, do a 'tail -f logfile.txt' in another window to see the progress.

Btw, the standard toolchain script still works as intended and will update you to the latest versions... there's no need to use the new toolchain script yet.
Back to top
View user's profile Send private message Visit poster's website
Panajev2001a



Joined: 20 Aug 2005
Posts: 100

PostPosted: Tue Jan 24, 2006 7:04 pm    Post subject: Reply with quote

ooPo wrote:
That's also another bug - selecting single steps doesn't work.

When it finishes downloading the binutils source with wget, it uses svn to grab the latest patch from the pspdev subversion server. Unfortunately, the standard svn client will sit there and look frozen while it does its work... since there's no output, the spinner doesn't spin.

If you want to take a look at it, do a 'tail -f logfile.txt' in another window to see the progress.


Oh I see, well that explain the single steps thing anf th "freezing" issue :).

Quote:
Btw, the standard toolchain script still works as intended and will update you to the latest versions... there's no need to use the new toolchain script yet.


Of course there is, if no-one tests it what is the point of making it available :D?

One side story, you have told me so many times to run svn update with the shell script that now before running the latest shell script I do a svn update (which your script does on its own basically as it looks for the latest versions of everything... :)).
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