psp-gcc-4.3.2 not working?PLEASE.

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

Moderators: cheriff, TyRaNiD

Post Reply
love4myxsg
Posts: 2
Joined: Sat Jan 17, 2009 7:36 am

psp-gcc-4.3.2 not working?PLEASE.

Post by love4myxsg »

first of all. I use Cygwin, with psp-gcc-4.1.2.exe, all is ok, eboot can be build successfully.

and
i got psp-gcc-4.3.2.exe from Minimalist PSPSDK.here:
http://sourceforge.net/project/showfile ... _id=223830;

here are 2 version in my pspdev/bin now :
TONYLIU@W /pspdev/bin
$ ls psp-gcc*
psp-gcc-4.1.2.exe
psp-gcc-4.3.2.exe
psp-gccbug
<========if i use " cp psp-gcc-4.1.2.exe psp-gcc.exe
then i open a helloworld project for PSP. make it,
all ok, EBOOT.PBP can be created successfully.
$ make
psp-gcc -I. -If:/cygwin/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=1
50 -c -o main.o main.c
psp-gcc -I. -If:/cygwin/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=1
50 -L. -Lf:/cygwin/pspdev/psp/sdk/lib main.o -lpspdebug -lpspdisplay -lpspge
-lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver
-lpsputility -lpspuser -lpspkernel -o hello.elf
psp-fixup-imports hello.elf
mksfo 'Hello World' PARAM.SFO
psp-strip hello.elf -o hello_strip.elf
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL hello_strip.elf NULL
[0] 408 bytes | PARAM.SFO
[1] 0 bytes | NULL
[2] 0 bytes | NULL
[3] 0 bytes | NULL
[4] 0 bytes | NULL
[5] 0 bytes | NULL
[6] 78112 bytes | hello_strip.elf
[7] 0 bytes | NULL
rm -f hello_strip.elf

TONYLIU@W ~/p_p/HelloWorld
$ psp-gcc --version
psp-gcc.exe (GCC) 4.1.2 devkitPSP release 11 (PSPDEV 20060507)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
<=======if i use " cp psp-gcc-4.3.2.exe psp-gcc.exe
then i open a helloworld project for PSP. make it,
i got error info like this:
TONYLIU@W ~/p_p/HelloWorld
$ make
psp-gcc -I. -If:/cygwin/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=1
50 -c -o main.o main.c
psp-gcc.exe: CreateProcess: No such file or directory
make: *** [main.o] error 1


TONYLIUg@W ~/p_p/HelloWorld
$ psp-gcc --version
psp-gcc.exe (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

<==========i think some files here maybe wrong with my files
,could someone help me out , THANKS very much !!!
i dont wanna use old version if we have new one. please.


ps:with4.3.2, something wrong?
TONYLIU@W /pspdev/lib/gcc/psp/4.3.2
$ ls -l
total 33676
-rwxrwxrwx 1 TONYLIU None 6764544 Nov 5 10:24 cc1.exe
-rwxrwxrwx 1 TONYLIU None 6839296 Nov 5 10:24 cc1obj.exe
-rwxrwxrwx 1 TONYLIU None 7545344 Nov 5 10:24 cc1objplus.exe
-rwxrwxrwx 1 TONYLIU None 7467008 Nov 5 10:24 cc1plus.exe
-rwxrwxrwx 1 TONYLIU None 143872 Nov 5 10:24 collect2.exe
-rwxrwxrwx 1 TONYLIU None 2604 Nov 5 10:24 crtbegin.o
-rwxrwxrwx 1 TONYLIU None 1652 Nov 5 10:24 crtend.o
-rwxrwxrwx 1 TONYLIU None 1616 Nov 5 10:24 crti.o
-rwxrwxrwx 1 TONYLIU None 1588 Nov 5 10:24 crtn.o
drwxrwxrwx+ 4 TONYLIU None 4096 Jan 14 21:22 include
drwxrwxrwx+ 2 TONYLIU None 0 Jan 14 21:22 include-fixed
drwxrwxrwx+ 3 TONYLIU None 4096 Jan 16 19:25 install-tools
-rwxrwxrwx 1 TONYLIU None 5650110 Nov 5 10:24 libgcc.a
-rwxrwxrwx 1 TONYLIU None 35390 Nov 5 10:24 libgcov.a


ps: but with 4.1.2, that's ok
TONYLIU@W /pspdev/lib/gcc/psp/4.1.2
$ ls -l
total 10828
-rwxrwxrwx 1 TONYLIU None 5052928 Apr 14 2007 cc1.exe
-rwxrwxrwx 1 TONYLIU None 5682688 Apr 14 2007 cc1plus.exe
-rwxrwxrwx 1 TONYLIU None 112640 Apr 14 2007 collect2.exe
-rwxrwxrwx 1 TONYLIU None 2508 Apr 14 2007 crtbegin.o
-rwxrwxrwx 1 TONYLIU None 1688 Apr 14 2007 crtend.o
-rwxrwxrwx 1 TONYLIU None 815 Apr 14 2007 crti.o
-rwxrwxrwx 1 TONYLIU None 779 Apr 14 2007 crtn.o
drwxrwxrwx+ 3 TONYLIU None 4096 Jan 16 19:42 include
drwxrwxrwx+ 3 TONYLIU None 4096 Jan 16 19:30 install-tools
-rwxrwxrwx 1 TONYLIU None 196188 Apr 14 2007 libgcc.a
-rwxrwxrwx 1 TONYLIU None 10666 Apr 14 2007 libgcov.a
love4myxsg
Posts: 2
Joined: Sat Jan 17, 2009 7:36 am

ps:psp-g++.exe have the same problem.

Post by love4myxsg »

$ psp-g++ --version
psp-g++.exe (GCC) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if i try to compile smpeg-psp like this (downloaded from ps2dev.org, this is part of psptoolchains)
TONYLIU@W ~/TONYLIU/trunk/psplibraries/scripts
$ ./022-smpeg-psp.sh
?\231?\137?\136?\230?\156?\172 3?\227?\128?\130
rm -f libsmpeg.a MPEG.o MPEGfilter.o MPEGlist.o MPEGring.o MPEGstream.o MPEGsys
tem.o smpeg.o audio/bitwindow.o audio/filter_2.o audio/filter.o audio/hufftable.
o audio/MPEGaudio.o audio/mpeglayer1.o audio/mpeglayer2.o audio/mpeglayer3.o aud
io/mpegtable.o audio/mpegtoraw.o PARAM.SFO EBOOT.PBP
psp-g++ -I. -If:/cygwin/pspdev/psp/sdk/include -O2 -Wall -g `f:/cygwin/pspdev/p
sp/bin/sdl-config --cflags` -I. -If:/cygwin/pspdev/psp/sdk/include -O2 -Wall -g
`f:/cygwin/pspdev/psp/bin/sdl-config --cflags` -fno-exceptions -fno-rtti -D_PSP
_FW_VERSION=150 -c -o MPEG.o MPEG.cpp
psp-gcc -I. -If:/cygwin/pspdev/psp/sdk/include -O2 -Wall -g `f:/cygwin/pspdev/p
sp/bin/sdl-config --cflags` -D_PSP_FW_VERSION=150 -c -o MPEGfilter.o MPEGfilte
r.c
psp-gcc.exe: CreateProcess: No such file or directory
make: *** [MPEGfilter.o] error 1
make: ***waiting ....
psp-g++.exe: CreateProcess: No such file or directory
make: *** [MPEG.o] error 1
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

MinPSPW is a standalone SDK it doesn't need Cygwin, however if you want to have cygwin it works out of the box without issues as long as:

1) install PSPSDK to a folder in your windows machine without whitespaces on the name
2) do not declare extra environment variables

For example:

I've installed it to C:\pspsdk

I open my cygwin shell (which has no other SDK installed only some utilities and GCC for windows)

and typed:

Code: Select all

paulo@funstation ~
$ psp-gcc --version
psp-gcc.exe &#40;GCC&#41; 4.3.2
Copyright &#40;C&#41; 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


paulo@funstation ~
$ cd C&#58;/

paulo@funstation /cygdrive/c
$ cd pspsdk/psp/sdk/samples/gu/cube/

paulo@funstation /cygdrive/c/pspsdk/psp/sdk/samples/gu/cube
$ ls
Makefile  cube.c  logo.raw

paulo@funstation /cygdrive/c/pspsdk/psp/sdk/samples/gu/cube
$ make
psp-gcc -I. -Ic&#58;/pspsdk/psp/sdk/include -G0 -Wall -D_PSP_FW_VERSION=150   -c -o
cube.o cube.c
bin2o -i logo.raw logo.o logo
psp-gcc -I. -Ic&#58;/pspsdk/psp/sdk/include -G0 -Wall -D_PSP_FW_VERSION=150   -c -o
../common/callbacks.o ../common/callbacks.c
psp-gcc -I. -Ic&#58;/pspsdk/psp/sdk/include -G0 -Wall -D_PSP_FW_VERSION=150   -c -o
../common/vram.o ../common/vram.c
psp-gcc -I. -Ic&#58;/pspsdk/psp/sdk/include -G0 -Wall -D_PSP_FW_VERSION=150  -L. -Lc
&#58;/pspsdk/psp/sdk/lib   cube.o logo.o ../common/callbacks.o ../common/vram.o -lps
pgum -lpspgu -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet
 -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkern
el -o cube.elf
psp-fixup-imports cube.elf
mksfo 'Cube Sample' PARAM.SFO
psp-strip cube.elf -o cube_strip.elf
pack-pbp EBOOT.PBP PARAM.SFO NULL  \
                NULL NULL NULL  \
                NULL  cube_strip.elf NULL
&#91;0&#93;        408 bytes | PARAM.SFO
&#91;1&#93;          0 bytes | NULL
&#91;2&#93;          0 bytes | NULL
&#91;3&#93;          0 bytes | NULL
&#91;4&#93;          0 bytes | NULL
&#91;5&#93;          0 bytes | NULL
&#91;6&#93;      47524 bytes | cube_strip.elf
&#91;7&#93;          0 bytes | NULL
c&#58;/pspsdk/bin/rm -f cube_strip.elf

So i guess that you have some conflicts with your both installations. Try to keep them apart.
Post Reply