Toolchain Problem

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

Toolchain Problem

Post by _.-noel-._ »

Hi

i tried to install the newesd toolchain (Revision 2440) on my Ubuntu 8.10 system...

i have installed gmp & mpfr....

But i get an error:
# Early copyback; see "all" above for the rationale. The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/bash ../../../libgcc/../mkinstalldirs ../.././gcc
*** buffer overflow detected ***: /usr/local/pspdev/psp/bin/ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x40126558]
/lib/tls/i686/cmov/libc.so.6[0x40124680]
/lib/tls/i686/cmov/libc.so.6[0x40123d68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x40099a18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x4008ce0d]
parts="crtbegin.o crtend.o crti.o crtn.o"; \
for file in $parts; do \
rm -f ../.././gcc/$file; \
/usr/bin/install -c -m 644 $file ../.././gcc/; \
done
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4006e15f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x40123e17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x40123d5d]
/usr/local/pspdev/psp/bin/ar[0x8051192]
/usr/local/pspdev/psp/bin/ar[0x804f18b]
/usr/local/pspdev/psp/bin/ar[0x8052000]
/usr/local/pspdev/psp/bin/ar[0x8059d08]
/usr/local/pspdev/psp/bin/ar[0x804bab5]
/usr/local/pspdev/psp/bin/ar[0x804c7f0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x40042685]
/usr/local/pspdev/psp/bin/ar[0x8049aa1]
======= Memory map: ========
08048000-080c7000 r-xp 00000000 08:11 18620 /usr/local/pspdev/psp/bin/ar
080c7000-080c8000 r--p 0007e000 08:11 18620 /usr/local/pspdev/psp/bin/ar
080c8000-080c9000 rw-p 0007f000 08:11 18620 /usr/local/pspdev/psp/bin/ar
080c9000-080cd000 rw-p 080c9000 00:00 0
089bf000-0baaf000 rw-p 089bf000 00:00 0 [heap]
40000000-4001a000 r-xp 00000000 08:11 212595 /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0 [vdso]
4001b000-4001c000 r--p 0001a000 08:11 212595 /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:11 212595 /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0
4001f000-40020000 r--p 00000000 08:11 548253 /usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r--s 00000000 08:11 392691 /usr/lib/gconv/gconv-modules.cache
40027000-4002c000 rw-p 40027000 00:00 0
4002c000-40184000 r-xp 00000000 08:11 229944 /lib/tls/i686/cmov/libc-2.8.90.so
40184000-40186000 r--p 00158000 08:11 229944 /lib/tls/i686/cmov/libc-2.8.90.so
40186000-40187000 rw-p 0015a000 08:11 229944 /lib/tls/i686/cmov/libc-2.8.90.so
40187000-4018b000 rw-p 40187000 00:00 0
4018b000-401ca000 r--p 00000000 08:11 548244 /usr/lib/locale/de_DE.utf8/LC_CTYPE
401ca000-401cf000 rw-p 401ca000 00:00 0
401dc000-401e9000 r-xp 00000000 08:11 212638 /lib/libgcc_s.so.1
401e9000-401ea000 r--p 0000c000 08:11 212638 /lib/libgcc_s.so.1
401ea000-401eb000 rw-p 0000d000 08:11 212638 /lib/libgcc_s.so.1
bfc15000-bfc32000 rw-p bffe3000 00:00 0 [stack]
/bin/bash: line 7: 17123 Aborted /usr/local/pspdev/psp/bin/ar rc libgcc.a $objects
make[2]: *** [libgcc.a] Fehler 134
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Verlasse Verzeichnis '/home/_.-noel-._/psptoolchain/build/gcc-4.3.1/build-psp/psp/libgcc'
make[1]: *** [all-target-libgcc] Fehler 2
make[1]: Verlasse Verzeichnis '/home/_.-noel-._/psptoolchain/build/gcc-4.3.1/build-psp'
make: *** [all] Fehler 2
../scripts/002-gcc-4.3.1-stage1.sh: Failed.
ERROR: Could not run the toolchain script.
plz help

grezzZ
_.-noel-._
Last edited by _.-noel-._ on Mon Feb 22, 2010 6:06 am, edited 1 time in total.
Sry for my english
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

*** buffer overflow detected ***: /usr/local/pspdev/psp/bin/ar terminated
That doesn't look good.
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

Post by _.-noel-._ »

i know ;)

now i have tryed one revision earlyer, but i get the same error...

can someone test the toolchain installation on other OS?
Sry for my english
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Upgraded to 8.10 today, I am going to update the toolchain now.
I will update this post in some minutes
Image
Upgrade your PSP
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

Post by _.-noel-._ »

i have already Ubuntu 8.10...
Sry for my english
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

I am telling you I Upgraded to 8.10 today.

I am not telling you to upgrade -.-
Image
Upgrade your PSP
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

Post by _.-noel-._ »

oh sry...

I've read wrong...

OK, i will try it out...
Sry for my english
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Got an error when doing libgcc too.
But I can't find the actual error as the buffer only has capacity for 10000 lines. I increased it to 20000 now and I am installing again.
I don't have any messages about a detected buffer overflow tho
Image
Upgrade your PSP
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Code: Select all

/bin/bash: line 7: 11632 Aborted                 /usr/local/pspdev/psp/bin/ar rc libgcc.a $objects
make[2]: *** [libgcc.a] Error 134
Found this. I had the toolchain already installed so I still can compile.
Image
Upgrade your PSP
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

Post by _.-noel-._ »

what should i do now?
Sry for my english
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

I don't know, I can't do anything too.
I don't know if it is a problem with the toolchain revision or ubuntu kernel
Image
Upgrade your PSP
_.-noel-._
Posts: 49
Joined: Mon Aug 13, 2007 12:57 am

Post by _.-noel-._ »

i will try it on ubuntu 8.04.1....

if it works, i will write back =)
Sry for my english
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

Ok thanks.
If it works I don't think I will install it as I am not in the mood to backup all things to my extern drive.
Image
Upgrade your PSP
Geecko
Posts: 1
Joined: Tue Nov 04, 2008 9:57 pm

Re

Post by Geecko »

Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

That kinda worked.
Now I am getting this error:

Code: Select all

cc1: warnings being treated as errors
../../gdb/main.c: In function ‘captured_main’:
../../gdb/main.c:191: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result
make[2]: *** [main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/piratanervo/Desktop/psptoolchain/build/gdb-6.8/build-psp/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/piratanervo/Desktop/psptoolchain/build/gdb-6.8/build-psp'
make: *** [all] Error 2
../scripts/007-gdb-6.8.sh: Failed.
ERROR: Could not run the toolchain script.
I am going to check main.c and see whats happening
Image
Upgrade your PSP
Post Reply