psptoolchain under Snow Leopard

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
paraita
Posts: 12
Joined: Tue Sep 25, 2007 8:51 am
Location: Nice, France
Contact:

psptoolchain under Snow Leopard

Post by paraita »

Someone managed to successfully compile the toolchain under SL ?
i'm getting a strange error on the 2nd script:

Code: Select all

/Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/./gcc/xgcc -B/Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/./gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include -O2 -g -g -O2   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -O2 -g -g -O2 -I. -I/Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc -I../../gcc -I../../gcc//Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc -I../../gcc/../include -I../../gcc/../libcpp/include -Iyes/include -Iyes/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber \
	-c -o /Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc/crti.o -x assembler-with-cpp ../../gcc/config/mips/crti.asm
/Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/./gcc/xgcc -B/Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/./gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include -O2 -g -g -O2   -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -O2 -g -g -O2 -I. -I/Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc -I../../gcc -I../../gcc//Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc -I../../gcc/../include -I../../gcc/../libcpp/include -Iyes/include -Iyes/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber \
	-c -o /Users/paraitawohler/Svnd/psptoolchain/build/gcc-4.3.2/build-psp/psp/libgcc/crtn.o -x assembler-with-cpp ../../gcc/config/mips/crtn.asm
# 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/sh ../../../libgcc/../mkinstalldirs ../.././gcc
parts="crtbegin.o crtend.o crti.o crtn.o";				\
	for file in $parts; do					\
	  rm -f ../.././gcc/$file;		\
	  /opt/local/bin/ginstall -c -m 644 $file ../.././gcc/;	\
	done
/bin/sh: line 1: 69676 Abort trap              /usr/local/pspdev/psp/bin/ar rc libgcc.a $objects
make[2]: *** [libgcc.a] Error 134
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2
../scripts/002-gcc-4.3.2-stage1.sh: Failed.
Also i used macport (latest) to install the usual required packages. I heard about a mpfr bug anyway.
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post by SamuraiX »

I am also getting the same error. Seems there is a bug with binuntils ar when using SL, here's my crash log.
Process: ar [46519]
Path: /usr/local/pspdev/psp/bin/ar
Identifier: ar
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: bash [46514]

Date/Time: 2009-10-12 01:34:08.819 -0400
OS Version: Mac OS X 10.6.1 (10B504)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
__abort() called

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x96522912 __kill + 10
1 libSystem.B.dylib 0x96522904 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x965b5b99 raise + 26
3 libSystem.B.dylib 0x965cbbe5 __abort + 124
4 libSystem.B.dylib 0x965c028c __chk_fail + 118
5 libSystem.B.dylib 0x964ee6f5 __sprintf_chk + 77
6 ar 0x0000d1ae coff_write_armap + 162
7 ar 0x0000c917 _bfd_compute_and_write_armap + 1182
8 ar 0x0000c06f _bfd_write_archive_contents + 538
9 ar 0x00017965 bfd_close + 58
10 ar 0x00006186 write_archive + 326
11 ar 0x000067c2 replace_members + 557
12 ar 0x000058b2 main + 2867
13 ar 0x00002685 start + 53

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x965cbb75 ecx: 0xbffea4ec edx: 0x96522912
edi: 0xbffea64c esi: 0x03588740 ebp: 0xbffea508 esp: 0xbffea4ec
ss: 0x0000001f efl: 0x00000286 eip: 0x96522912 cs: 0x00000007
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x528b0000

Binary Images:
0x1000 - 0xa0feb +ar ??? (???) <D2BE27A5-F660-39D8-A861-D5D14EA508A9> /usr/local/pspdev/psp/bin/ar
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <211AF0DD-42D9-79C8-BB6A-1F4BEEF4B4AB> /usr/lib/dyld
0x964c1000 - 0x96665feb libSystem.B.dylib ??? (???) <E58B649F-FFDC-AB09-2028-8B706BEF7C0F> /usr/lib/libSystem.B.dylib
0x9896e000 - 0x98971fe7 libmathCommon.A.dylib ??? (???) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???) <E58B649F-FFDC-AB09-2028-8B706BEF7C0F> /usr/lib/libSystem.B.dylib

System Profile:
Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.53 GHz, 4 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.91.19)
Bluetooth: Version 2.2.1f7, 2 service, 1 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: ST9500420AS, 465.76 GB
Serial ATA Device: HL-DT-ST DVDRW GS23N
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24400000
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0x26500000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0236, 0x04600000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8213, 0x06110000
User avatar
_Zack_
Posts: 9
Joined: Fri Jul 04, 2008 1:59 am

Post by _Zack_ »

I'm thinking about uploading a pre-compiled one for snow leopard users.

Pm me if your interested
My Releases :

My Releases :
Image
User avatar
paraita
Posts: 12
Joined: Tue Sep 25, 2007 8:51 am
Location: Nice, France
Contact:

Post by paraita »

i'm interessed ! actually i'm wondering if it will even work as i'm not sure mpfr is working properly in SL, but i'd like to give it a try !
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post by SamuraiX »

_Zack_ wrote:I'm thinking about uploading a pre-compiled one for snow leopard users.

Pm me if your interested
If you do be sure to add the newlib malloc enhancements. You can read about it here: http://forums.ps2dev.org/viewtopic.php? ... ght=newlib
Post Reply