As someone who looks forward to new Ubuntu releases twice a year, I was disappointed to find that I couldn’t get psptoolchain to compile under version 8.10, which includes a new version of GCC. The only workaround to this is to downgrade to a previous version of GCC, and I’m still looking for a way to regress without breaking default Ubuntu packaging. If you’re a PSP developer running Ubuntu, I’d advise against upgrading to 8.10 for the moment.
UPDATE Please see the workaround
Tags: fix, linux, psptoolchain, ubuntu
hi guys
I have build error under ubuntu 8.10
here is the memory dump information
*** buffer overflow detected ***: psp-ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0×48)[0x4012a558]
/lib/tls/i686/cmov/libc.so.6[0x40128680]
/lib/tls/i686/cmov/libc.so.6[0x40127d68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x4009da18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x40090e0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4007215f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x40127e17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x40127d5d]
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)[0x40046685]
psp-ar[0x80496e1]
======= Memory map: ========
08048000-080c5000 r-xp 00000000 08:02 487392 /usr/local/pspdev/bin/psp-ar
080c5000-080c6000 r–p 0007c000 08:02 487392 /usr/local/pspdev/bin/psp-ar
080c6000-080c7000 rw-p 0007d000 08:02 487392 /usr/local/pspdev/bin/psp-ar
080c7000-080cb000 rw-p 080c7000 00:00 0
09aae000-09e1e000 rw-p 09aae000 00:00 0 [heap]
40000000-4001a000 r-xp 00000000 08:02 56803 /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0 [vdso]
4001b000-4001c000 r–p 0001a000 08:02 56803 /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:02 56803 /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0
4001f000-40020000 r–p 00000000 08:02 114405 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r–s 00000000 08:02 98470 /usr/lib/gconv/gconv-modules.cache
40027000-40030000 rw-p 40027000 00:00 0
40030000-40188000 r-xp 00000000 08:02 74123 /lib/tls/i686/cmov/libc-2.8.90.so
40188000-4018a000 r–p 00158000 08:02 74123 /lib/tls/i686/cmov/libc-2.8.90.so
4018a000-4018b000 rw-p 0015a000 08:02 74123 /lib/tls/i686/cmov/libc-2.8.90.so
4018b000-4018f000 rw-p 4018b000 00:00 0
4018f000-401ce000 r–p 00000000 08:02 114370 /usr/lib/locale/en_US.utf8/LC_CTYPE
401ce000-401cf000 rw-p 401ce000 00:00 0
401e0000-401ed000 r-xp 00000000 08:02 56846 /lib/libgcc_s.so.1
401ed000-401ee000 r–p 0000c000 08:02 56846 /lib/libgcc_s.so.1
401ee000-401ef000 rw-p 0000d000 08:02 56846 /lib/libgcc_s.so.1
bf871000-bf888000 rw-p bffe9000 00:00 0 [stack]
i have no idea about this buffer overflow, is this error same with you ?…:(
urgh…….
if you can make sure this error caused by the new version of GCC, I will install an older version.
please drop a mail for me:)
Great thanks
See the workaround in the post above
hi there . i have the same problem on my ubuntu 8.10. i tried the workaround mentioned here. and this gave me the same result.
This is the message i get :
psp-ar cru lib.a lib_a-dummy.o lib_a-argz_add.o lib_a-argz_add_sep.o lib_a-argz_append.o lib_a-argz_count.o lib_a-argz_create.o lib_a-argz_create_sep.o lib_a-argz_delete.o lib_a-argz_extract.o lib_a-argz_insert.o lib_a-argz_next.o lib_a-argz_replace.o lib_a-argz_stringify.o lib_a-buf_findstr.o lib_a-envz_entry.o lib_a-envz_get.o lib_a-envz_add.o lib_a-envz_remove.o lib_a-envz_merge.o lib_a-envz_strip.o
*** buffer overflow detected ***: psp-ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0×48)[0x40128558]
/lib/tls/i686/cmov/libc.so.6[0x40126680]
/lib/tls/i686/cmov/libc.so.6[0x40125d68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x4009ba18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x4008ee0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4007015f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x40125e17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x40125d5d]
psp-ar[0x8051192]
psp-ar[0x804f18b]
psp-ar[0x8052000]
psp-ar[0x8059d08]
psp-ar[0x804bab5]
psp-ar[0x804c7f0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x40044685]
psp-ar[0x8049aa1]
======= Memory map: ========
08048000-080c7000 r-xp 00000000 08:01 307092 /bin/psp-ar
080c7000-080c8000 r–p 0007e000 08:01 307092 /bin/psp-ar
080c8000-080c9000 rw-p 0007f000 08:01 307092 /bin/psp-ar
080c9000-080cd000 rw-p 080c9000 00:00 0
08776000-0881f000 rw-p 08776000 00:00 0 [heap]
40000000-4001a000 r-xp 00000000 08:01 106307 /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0 [vdso]
4001b000-4001c000 r–p 0001a000 08:01 106307 /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:01 106307 /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0
4001f000-40020000 r–p 00000000 08:01 468111 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r–s 00000000 08:01 24772 /usr/lib/gconv/gconv-modules.cache
40027000-4002e000 rw-p 40027000 00:00 0
4002e000-40186000 r-xp 00000000 08:01 123813 /lib/tls/i686/cmov/libc-2.8.90.so
40186000-40188000 r–p 00158000 08:01 123813 /lib/tls/i686/cmov/libc-2.8.90.so
40188000-40189000 rw-p 0015a000 08:01 123813 /lib/tls/i686/cmov/libc-2.8.90.so
40189000-4018d000 rw-p 40189000 00:00 0
4018d000-401cc000 r–p 00000000 08:01 468102 /usr/lib/locale/en_US.utf8/LC_CTYPE
401cc000-401cf000 rw-p 401cc000 00:00 0
401de000-401eb000 r-xp 00000000 08:01 106350 /lib/libgcc_s.so.1
401eb000-401ec000 r–p 0000c000 08:01 106350 /lib/libgcc_s.so.1
401ec000-401ed000 rw-p 0000d000 08:01 106350 /lib/libgcc_s.so.1
bf8a2000-bf8b8000 rw-p bffea000 00:00 0 [stack]
make[5]: *** [lib.a] Aborted
make[5]: *** Deleting file `lib.a’
make[5]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/libc/argz’
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib/libc’
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib’
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp/psp/newlib’
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/vmplanet/Downloads/psptoolchain/build/newlib-1.16.0/build-psp’
make: *** [all] Error 2
../scripts/004-newlib-1.16.0.sh: Failed.
ERROR: Could not run the toolchain script.
Can some one help me ?
As long as you have version 4.2 of GCC installed, the latest version of psptoolchain-sudo (from the trunk) should install correctly.
[...] Comments uberjack on psptoolchain under Ubuntu 8.10karthik on psptoolchain under Ubuntu 8.10PSP Hacks ยท PSP Homebrew, PSP Downloads, PSP Mods on SMS [...]