PSP Hacks - Forums

Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2008, 06:33 AM
Xitherun's Avatar
Xitherun Xitherun is offline
Senior Member
PSP Titan
 

Join Date: Nov 2006
Location: http://www.tacticalbread.net76.net/
Posts: 4,499
Xitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of light
Default

I got a similar error, but my toolchain was still installed, and I could compile things.

maybe try compiling one of the examples?
__________________
Xylophones inspecting tortured hearts equal rambunctious unicorn's nightmares.

Reply With Quote
  #2  
Old 12-12-2008, 07:46 AM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

Got it working using this guide: http://www.guztech.nl/index.php?opti...:psp&Itemid=56

Just ended up with the pspLink error. Thanks for helping me with the first prob +rep
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
  #3  
Old 12-12-2008, 02:32 PM
Xitherun's Avatar
Xitherun Xitherun is offline
Senior Member
PSP Titan
 

Join Date: Nov 2006
Location: http://www.tacticalbread.net76.net/
Posts: 4,499
Xitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of lightXitherun is a glorious beacon of light
Default

did you get it to compile with no errors?

I never did. D:
__________________
Xylophones inspecting tortured hearts equal rambunctious unicorn's nightmares.

Reply With Quote
  #4  
Old 12-12-2008, 03:28 PM
pirata nervo pirata nervo is offline
Moderator
PSP Titan
 

Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,556
pirata nervo is on a distinguished road
Default

It worked for me. I only installed, did not ran the psp libraries script
__________________

Reply With Quote
  #5  
Old 12-14-2008, 02:46 AM
HyperHacker's Avatar
HyperHacker HyperHacker is offline
Programmer
PSP Enthusiast
 

Join Date: Nov 2008
Location: Midwest Alberta
Posts: 313
HyperHacker is on a distinguished road
Default

Mine blew up on Xubuntu 8.10 32-bit.
Code:
psp-ar  rc ./libgcc.a libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_enable_execute_stack.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_paritydi2.o libgcc/./_powisf2.o libgcc/./_powidf2.o libgcc/./_powixf2.o libgcc/./_powitf2.o libgcc/./_mulsc3.o libgcc/./_muldc3.o libgcc/./_mulxc3.o libgcc/./_multc3.o libgcc/./_divsc3.o libgcc/./_divdc3.o libgcc/./_divxc3.o libgcc/./_divtc3.o libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o libgcc/./_ge_sf.o libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o libgcc/./_eq_df.o libgcc/./_ne_df.o libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o libgcc/./_usi_to_df.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwind-c.o
*** buffer overflow detected ***: psp-ar terminated
rm -f ./libgcov.a
psp-ar  rc ./libgcov.a libgcc/./_gcov.o libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o libgcc/./_gcov_one_value_profiler.o
*** buffer overflow detected ***: psp-ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x4012e558]
/lib/tls/i686/cmov/libc.so.6[0x4012c680]
/lib/tls/i686/cmov/libc.so.6[0x4012bd68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x400a1a18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x40094e0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4007615f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x4012be17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x4012bd5d]
psp-ar[0x80512e2]
psp-ar[0x804f2db]
psp-ar[0x8052158]
psp-ar[0x8059e98]
psp-ar[0x804b8f5]
psp-ar[0x804c690]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x4004a685]
psp-ar[0x80496e1]
======= Memory map: ========
08048000-080c5000 r-xp 00000000 08:03 240901     /usr/local/pspdev/bin/psp-ar
080c5000-080c6000 r--p 0007c000 08:03 240901     /usr/local/pspdev/bin/psp-ar
080c6000-080c7000 rw-p 0007d000 08:03 240901     /usr/local/pspdev/bin/psp-ar
080c7000-080cb000 rw-p 080c7000 00:00 0 
098c7000-0994c000 rw-p 098c7000 00:00 0          [heap]
40000000-4001a000 r-xp 00000000 08:02 70432      /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0          [vdso]
4001b000-4001c000 r--p 0001a000 08:02 70432      /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:02 70432      /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0 
4001f000-40020000 r--p 00000000 08:03 16437      /usr/lib/locale/en_CA.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r--s 00000000 08:03 8529       /usr/lib/gconv/gconv-modules.cache
40027000-40031000 rw-p 40027000 00:00 0 
40034000-4018c000 r-xp 00000000 08:02 70564      /lib/tls/i686/cmov/libc-2.8.90.so
4018c000-4018e000 r--p 00158000 08:02 70564      /lib/tls/i686/cmov/libc-2.8.90.so
4018e000-4018f000 rw-p 0015a000 08:02 70564      /lib/tls/i686/cmov/libc-2.8.90.so
4018f000-40193000 rw-p 4018f000 00:00 0 
40193000-401d2000 r--p 00000000 08:03 16431      /usr/lib/locale/en_CA.utf8/LC_CTYPE
401e7000-401f4000 r-xp 00000000 08:02 70431      /lib/libgcc_s.so.1
401f4000-401f5000 r--p 0000c000 08:02 70431      /lib/libgcc_s.so.1
401f5000-401f6000 rw-p 0000d000 08:02 70431      /lib/libgcc_s.so.1
bffa6000-bffbc000 rw-p bffea000 00:00 0          [stack]
make[3]: *** [libgcov.a] Aborted
make[3]: *** Deleting file `libgcov.a'
make[3]: *** Waiting for unfinished jobs....
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x4012e558]
/lib/tls/i686/cmov/libc.so.6[0x4012c680]
/lib/tls/i686/cmov/libc.so.6[0x4012bd68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x400a1a18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x40094e0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4007615f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x4012be17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x4012bd5d]
psp-ar[0x80512e2]
psp-ar[0x804f2db]
psp-ar[0x8052158]
psp-ar[0x8059e98]
psp-ar[0x804b8f5]
psp-ar[0x804c690]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x4004a685]
psp-ar[0x80496e1]
======= Memory map: ========
08048000-080c5000 r-xp 00000000 08:03 240901     /usr/local/pspdev/bin/psp-ar
080c5000-080c6000 r--p 0007c000 08:03 240901     /usr/local/pspdev/bin/psp-ar
080c6000-080c7000 rw-p 0007d000 08:03 240901     /usr/local/pspdev/bin/psp-ar
080c7000-080cb000 rw-p 080c7000 00:00 0 
09c11000-09f81000 rw-p 09c11000 00:00 0          [heap]
40000000-4001a000 r-xp 00000000 08:02 70432      /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0          [vdso]
4001b000-4001c000 r--p 0001a000 08:02 70432      /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:02 70432      /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0 
4001f000-40020000 r--p 00000000 08:03 16437      /usr/lib/locale/en_CA.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r--s 00000000 08:03 8529       /usr/lib/gconv/gconv-modules.cache
40027000-40031000 rw-p 40027000 00:00 0 
40034000-4018c000 r-xp 00000000 08:02 70564      /lib/tls/i686/cmov/libc-2.8.90.so
4018c000-4018e000 r--p 00158000 08:02 70564      /lib/tls/i686/cmov/libc-2.8.90.so
4018e000-4018f000 rw-p 0015a000 08:02 70564      /lib/tls/i686/cmov/libc-2.8.90.so
4018f000-40193000 rw-p 4018f000 00:00 0 
40193000-401d2000 r--p 00000000 08:03 16431      /usr/lib/locale/en_CA.utf8/LC_CTYPE
401e7000-401f4000 r-xp 00000000 08:02 70431      /lib/libgcc_s.so.1
401f4000-401f5000 r--p 0000c000 08:02 70431      /lib/libgcc_s.so.1
401f5000-401f6000 rw-p 0000d000 08:02 70431      /lib/libgcc_s.so.1
bfbcd000-bfbe4000 rw-p bffe9000 00:00 0          [stack]
make[3]: *** [libgcc.a] Aborted
make[3]: *** Deleting file `libgcc.a'
make[3]: Leaving directory `/home/hyperhacker/Desktop/psptoolchain/build/gcc-4.1.0/build-psp/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/hyperhacker/Desktop/psptoolchain/build/gcc-4.1.0/build-psp/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/hyperhacker/Desktop/psptoolchain/build/gcc-4.1.0/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.
The guide posted above doesn't work either. It wants me to install gmp, but it can't find the package libgmp-dev or libgmp.

[edit] libgmp-dev is now libgmp3-dev. Let's try that... nope.
Code:
checking whether the C compiler (gcc-4.2  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
../scripts/001-binutils-2.16.1.sh: Failed.
ERROR: Could not run the toolchain script.
I found a couple dozen different solutions on Google, none worked. -_-


OK, so I tried doing "su" and running the toolchain.sh instead of toolchain-sudo.sh, that seemed to work... it ran for probably an hour and then guess what:
Code:
make[3]: Entering directory `/home/hyperhacker/psp/psptoolchain/build/gcc-4.3.2/build-psp/gcc'
*** buffer overflow detected ***: /usr/local/pspdev/psp/bin/ar terminated


Yeah, something's broken. If I use 4.2 I get cannot create executables. If I use 4.3 I get buffer overflow.

[edit]
BAH!
Worst case of unhelpful error message ever. The reason gcc-4.2 couldn't create executables was it wasn't installed. V__________v
Trying again while I go do something else because this takes forever to run...
__________________
>> PSP-2001 running 5.00m33-6, 4GB Lexar memory stick
Luna is not dead, it just has a todo list a mile long. My website is, though. But it will return, someday... >_>


Last edited by HyperHacker; 12-14-2008 at 05:52 AM. Reason: gcc-4.2 wasn't even installed *facepalm*
Reply With Quote
  #6  
Old 12-14-2008, 06:57 AM
pirata nervo pirata nervo is offline
Moderator
PSP Titan
 

Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,556
pirata nervo is on a distinguished road
Default

Maybe it does work with Xubuntu
__________________

Reply With Quote
  #7  
Old 12-14-2008, 08:52 AM
HyperHacker's Avatar
HyperHacker HyperHacker is offline
Programmer
PSP Enthusiast
 

Join Date: Nov 2008
Location: Midwest Alberta
Posts: 313
HyperHacker is on a distinguished road
Default

OK, so here's all the hoops I had to jump through to get this thing installed and working! It's like solving some kind of ancient riddle. Lots of Googling, experimentation, and totally misleading error messages. And these scripts re-download, re-build etc everything every time they run, which can take hours, so if you don't do everything precisely right, you can end up spending an hour waiting just to see if it'll work this time. Argh!
This is installing on 32-bit Xubuntu 8.10 on December 14th 2008. YMMV. Good luck.
(hint: "~/" is a shortcut for "/home/yourusername/", and make sure you substitute "hyperhacker" for your own username.)

First off, run a bunch of command similar to this, but not quite.
Code:
cd ~
sudo su
apt-get install gcc-4.2 autoconf automake bison flex gcc make libncurses5-dev libusb-dev patch subversion texinfo wget libgmp3-dev
mkdir psp
cd psp
(There's at least one more thing I forgot the name of, but the script will error out and tell you what it is. Note that when it says "foo" it actually means install "libfoo-dev", most of the time...)
Now go here and download "PSP Custom Firmware 4.01 M33-2 Update". You will need this later. (Someone remind me to upload a mirror of this somewhere.)
Then:
Code:
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain psptoolchain
cd psptoolchain
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
mkdir -p /usr/local/pspdev
chmod a+rxw /usr/local/pspdev
chown hyperhacker:hyperhacker /usr/local/pspdev
./toolchain.sh
The last line will take at least an hour to run, possibly two or three. Pray it works.
Code:
cd ..
svn co svn://svn.ps2dev.org/psp/trunk/psplibraries psplibraries
apt-get install libtool
cd psplibraries
cp /usr/share/misc/config.guess ./build/freetype/builds/unix
Stop here, because it needs to build some sort of IR keyboard demo or something (WTF?).
In the .rar file you downloaded earlier, for some reason is an "SDK" folder. Copy that entire folder into /usr/local/pspdev - you should end up with /usr/local/pspdev/SDK, with the contents: include, lib, psp-packer, samples, readme.txt.
Continue (and the next line will again take about half an hour):
Code:
./libraries-sudo.sh
chown -R hyperhacker:hyperhacker /usr/local/pspdev
Now add these lines to the end of ~/.bashrc using any text editor: (Note that this is a hidden file)
Code:
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"

FINALLY, everything is installed, now if you want you can set up psplink:
Code:
cd ../psptoolchain/build/psplinkusb
make release
cd ../usbhostfs_pc
make
cd ../pspsh
make
Now you can copy the PSPLink executable to your PSP (copy the ~/psp/psptoolchain/build/psplinkusb/release_oe/psplink folder to /PSP/GAME on your memory stick, or whatever you'd normally do to install homebrew), run it, run the PC-side app (in ~/psp/psptoolchain/build/psplinkusb/usbhostfs_pc), and use it as described in the manual. Except the part where it tells you to load a .elf file, that doesn't work with recent versions, so just continue on to making and loading the .prx. If all goes well you'll see a trippy graphic on the PSP screen.

That was nuts, now go out for a beer or something, you've earned it. I'm going to sleep. @_@
__________________
>> PSP-2001 running 5.00m33-6, 4GB Lexar memory stick
Luna is not dead, it just has a todo list a mile long. My website is, though. But it will return, someday... >_>

Reply With Quote
  #8  
Old 12-20-2008, 03:56 PM
Furypaw's Avatar
Furypaw Furypaw is offline
Programmer
PSP Veteran
 
Join Date: Jul 2007
Location: Furypaw.rar
Posts: 1,058
Furypaw is on a distinguished road
Default

Also I used this one that Blade_Punk gave to me http://www.guztech.nl/index.php?opti...psp&Itemid=56\
__________________
Reply With Quote
  #9  
Old 05-29-2009, 09:17 AM
BigBubbaX BigBubbaX is offline
PSP Newbie
 

Join Date: May 2009
Posts: 2
BigBubbaX Has a Beginner Reputation
Default

Everything works up to the toolchain.sh script. Then a get an error that says something about textinfo being uninstalled.
Can anyone help? I am using easy peasy OS on an ASUS EEE PC 701

thanks in advance
Reply With Quote
  #10  
Old 05-29-2009, 12:35 PM
pirata nervo pirata nervo is offline
Moderator
PSP Titan
 

Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,556
pirata nervo is on a distinguished road
Default

The error would help
By the way, try installing textinfo
__________________

Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©