No more ads and full access!
Login or Register to get rid of full page ads and to get full access to the forums!

Signature of the Month - February - Winner gets $50 USD
Join the 1st Signature of the Month contest and win $50 if you win! Click here for more info.

[-]
Member of the Week
Member Of The week: rockhead with 55 Posts.
(Would you like to become one too? Start posting!)


Your Ad Here
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
toolchain fails to compile.
Author Message
tacticalbread Away
Dr. T. Bread, Phd.
Special Member

  • Posts: 1,509
  • Joined: Jul 2008
  • Reputation: 9
  • Member of Week: 0 Times
  • Consoles: 19165.2C
Post: #1
toolchain fails to compile.
just reformatted my PC, and I tried installing the PSP toolchain, but it fails to compile.

I'm pretty sure I've got all the necessary libs installed, and whatnot.

this is the error I get:
Code:
/bin/bash: line 7: 17531 Aborted                 /usr/local/pspdev/psp/bin/ar rc libgcc.a $objects
make[2]: *** [libgcc.a] Error 134
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/tacticalbread/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/tacticalbread/psptoolchain/build/gcc-4.3.2/build-psp'
make: *** [all] Error 2
../scripts/002-gcc-4.3.2-stage1.sh: Failed.
ERROR: Could not run the toolchain script.

edit:

I noticed it's caused by a buffer overflow:
Code:
*** buffer overflow detected ***: /usr/local/pspdev/psp/bin/ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x40129558]
/lib/tls/i686/cmov/libc.so.6[0x40127680]
/lib/tls/i686/cmov/libc.so.6[0x40126d68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x4009ca18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x4008fe0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x27cf)[0x4007115f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x40126e17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x40126d5d]
/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)[0x40045685]
/usr/local/pspdev/psp/bin/ar[0x8049aa1]
======= Memory map: ========
08048000-080c7000 r-xp 00000000 08:05 5120628    /usr/local/pspdev/psp/bin/ar
080c7000-080c8000 r--p 0007e000 08:05 5120628    /usr/local/pspdev/psp/bin/ar
080c8000-080c9000 rw-p 0007f000 08:05 5120628    /usr/local/pspdev/psp/bin/ar
080c9000-080cd000 rw-p 080c9000 00:00 0
080e9000-0b1d9000 rw-p 080e9000 00:00 0          [heap]
40000000-4001a000 r-xp 00000000 08:05 3620880    /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0          [vdso]
4001b000-4001c000 r--p 0001a000 08:05 3620880    /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:05 3620880    /lib/ld-2.8.90.so
4001d000-4001f000 rw-p 4001d000 00:00 0
4001f000-40020000 r--p 00000000 08:05 4775962    /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
40020000-40027000 r--s 00000000 08:05 4753264    /usr/lib/gconv/gconv-modules.cache
40027000-4002f000 rw-p 40027000 00:00 0
4002f000-40187000 r-xp 00000000 08:05 3621012    /lib/tls/i686/cmov/libc-2.8.90.so
40187000-40189000 r--p 00158000 08:05 3621012    /lib/tls/i686/cmov/libc-2.8.90.so
40189000-4018a000 rw-p 0015a000 08:05 3621012    /lib/tls/i686/cmov/libc-2.8.90.so
4018a000-4018e000 rw-p 4018a000 00:00 0
4018e000-401cd000 r--p 00000000 08:05 4775956    /usr/lib/locale/en_US.utf8/LC_CTYPE
401cd000-401cf000 rw-p 401cd000 00:00 0
401df000-401ec000 r-xp 00000000 08:05 3620879    /lib/libgcc_s.so.1
401ec000-401ed000 r--p 0000c000 08:05 3620879    /lib/libgcc_s.so.1
401ed000-401ee000 rw-p 0000d000 08:05 3620879    /lib/libgcc_s.so.1
bf9d1000-bf9ee000 rw-p bffe3000 00:00 0          [stack]

but I was only using about 40% of my RAM. D:

[Image: FF3b80x15_square.gif]

[Image: 61294990.png]
(This post was last modified: 11-10-2008 06:08 PM by tacticalbread.)
11-10-2008 05:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
pspjoke Away
Special Member
Special Member

  • Posts: 280
  • Joined: Jul 2008
  • Reputation: 4
  • Member of Week: 0 Times
  • Consoles: 4883.58C
Post: #2
RE: toolchain fails to compile.
highly doubt thats a lib error.. hmm..
have you tried to run it multiple times?
if so, is that the result each time?

EDIT:

wait u use ubuntu right?

please ++rep me if you like my work
(This post was last modified: 11-10-2008 06:09 PM by pspjoke.)
11-10-2008 06:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tacticalbread Away
Dr. T. Bread, Phd.
Special Member

  • Posts: 1,509
  • Joined: Jul 2008
  • Reputation: 9
  • Member of Week: 0 Times
  • Consoles: 19165.2C
Post: #3
RE: toolchain fails to compile.
yeah, I'm on Ubuntu 8.10. I edited my post. I noticed it said that there was a buffer overflow. ._.

[Image: FF3b80x15_square.gif]

[Image: 61294990.png]
(This post was last modified: 11-10-2008 06:12 PM by tacticalbread.)
11-10-2008 06:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hibbyware Away
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
Special Member

  • Posts: 96
  • Joined: Jul 2008
  • Reputation: 2
  • Member of Week: 0 Times
  • Consoles: 1232.57C
Post: #4
RE: toolchain fails to compile.
I think Nervo had this problem recently,

I think the problem was Ubuntu 8.10 and not the toolchain,

I have no clue what he did to fix it,

* hibbyware waits for Nervo


-edit-

Solution can be found here http://forums.ps2dev.org/viewtopic.php?t=11230
(This post was last modified: 11-10-2008 08:54 PM by hibbyware.)
11-10-2008 08:48 PM
Find all posts by this user Quote this message in a reply
tacticalbread Away
Dr. T. Bread, Phd.
Special Member

  • Posts: 1,509
  • Joined: Jul 2008
  • Reputation: 9
  • Member of Week: 0 Times
  • Consoles: 19165.2C
Post: #5
RE: toolchain fails to compile.
(11-10-2008 08:48 PM)hibbyware Wrote:  I think the problem was Ubuntu 8.10 and not the toolchain,

well, that sucks.

I rather enjoy 8.10.

I hope it's fixable.

[Image: FF3b80x15_square.gif]

[Image: 61294990.png]
11-10-2008 08:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hibbyware Away
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
Special Member

  • Posts: 96
  • Joined: Jul 2008
  • Reputation: 2
  • Member of Week: 0 Times
  • Consoles: 1232.57C
Post: #6
RE: toolchain fails to compile.
I edited my other post when you was making this post, lol
11-10-2008 08:54 PM
Find all posts by this user Quote this message in a reply
tacticalbread Away
Dr. T. Bread, Phd.
Special Member

  • Posts: 1,509
  • Joined: Jul 2008
  • Reputation: 9
  • Member of Week: 0 Times
  • Consoles: 19165.2C
Post: #7
RE: toolchain fails to compile.
it's working so far, thanks. Biggrin

edit: fuck my life.

Code:
make[1]: g++: Command not found
make[1]: *** [pspsh.o] Error 127
make[1]: Leaving directory `/home/tacticalbread/psptoolchain/build/psplinkusb/pspsh'
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed.
ERROR: Could not run the toolchain script.

[Image: FF3b80x15_square.gif]

[Image: 61294990.png]
(This post was last modified: 11-10-2008 09:42 PM by tacticalbread.)
11-10-2008 09:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hibbyware Away
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
Special Member

  • Posts: 96
  • Joined: Jul 2008
  • Reputation: 2
  • Member of Week: 0 Times
  • Consoles: 1232.57C
Post: #8
RE: toolchain fails to compile.
The toolchain is installed fine that's just psplinkusb that failed,

-edit-

I think you need to install the package libusb-dev then run stage 009 again to get psplinkusb to install without any problems,

On cygwin it also fails but you just have to...
Code:
cd build/psplinkusb/
make && make release
(This post was last modified: 11-10-2008 10:34 PM by hibbyware.)
11-10-2008 10:06 PM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Nirata Pervo
*******
Administrators

  • Posts: 5,823
  • Joined: Jul 2008
  • Reputation: 38
  • Member of Week: 0 Times
  • Consoles: 74461.67C
Post: #9
RE: toolchain fails to compile.
I could not fix it. But as I had the toolchain installed I could still compile.

I am now trying again,

[Image: userbar.php?uid=1]
[Image: 280726.jpg]
11-11-2008 12:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
tacticalbread Away
Dr. T. Bread, Phd.
Special Member

  • Posts: 1,509
  • Joined: Jul 2008
  • Reputation: 9
  • Member of Week: 0 Times
  • Consoles: 19165.2C
Post: #10
RE: toolchain fails to compile.
(11-10-2008 10:06 PM)hibbyware Wrote:  The toolchain is installed fine that's just psplinkusb that failed,

-edit-

I think you need to install the package libusb-dev then run stage 009 again to get psplinkusb to install without any problems,

On cygwin it also fails but you just have to...
Code:
cd build/psplinkusb/
make && make release

Quote:libusb-dev is already the newest version.

D:

but does that mean the toolchain is installed?

[Image: FF3b80x15_square.gif]

[Image: 61294990.png]
11-11-2008 06:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply

Share
Share this thread!
Share/Bookmark
Post Reply 


Forum Jump:

Your Ad Here