I tried building under MinGW/Msys. The first thing that dies is due to an include path problem. The problem seems to be common problem with building GCC 4.0 under MinGW and is mentioned here:
https://sourceforge.net/forum/message.p ... id=3114120
As mentioned in the above post, I copied the config directory (and headers) and the compile got only slightly farther before an assembler error along the lines of "unexpected symbol found..." occurred.
The same thing built fine with both Cygwin and Linux, so I gave up on MinGW...
-Sharkus
WANTED:GCC 4.0 Toolchain for windows (supporting C++, float)
I've not actually built gcc 4.0 under minGW, but this may provide some clues for those who are trying.
https://sourceforge.net/forum/forum.php ... _id=286529
If enough people want it, I'll try to make it build and provide some binaries.
https://sourceforge.net/forum/forum.php ... _id=286529
If enough people want it, I'll try to make it build and provide some binaries.
I've built a working toolchain from Mingw/msys. To bypass the libintl build problem, you add -disable-nls to configure's command line for gcc and binutils. Also you have to copy the config directory from the gcc dir to the build dir. The major problem that I ran into was with msvcrt and printf format strings. Since it doesn't support %lld and uses %I64d instead i had to patch hwint.h line 83 from
# define HOST_WIDE_INT_PRINT "ll"
to
# ifdef __MSVCRT__
# define HOST_WIDE_INT_PRINT "I64"
# else
# define HOST_WIDE_INT_PRINT "ll"
# endif
# define HOST_WIDE_INT_PRINT "ll"
to
# ifdef __MSVCRT__
# define HOST_WIDE_INT_PRINT "I64"
# else
# define HOST_WIDE_INT_PRINT "ll"
# endif
-
- Posts: 7
- Joined: Sat Jun 25, 2005 3:35 am
does this mean if im working on compiling a web browser i have to compile all C files?? can someone give me steps on how to do thiss???Thanhda wrote:i'm currently using the ps2sdk, not the psp. but! you will most likely have to modify the mk.bat file. i had to do that. just rename the bat file to a txt file.
c:\ps2dev\gcc\ee\bin\ee-gcc -march=r4000 -g -mgp32 -mlong32 -c hellopsp.c
c:\ps2dev\gcc\ee\bin\ee-gcc -march=r4000 -g -mgp32 -mlong32 -c pg.c
c:\ps2dev\gcc\ee\bin\ee-gcc -march=r4000 -g -mgp32 -c -xassembler -O -o startup.o startup.s
c:\ps2dev\gcc\ee\bin\ee-ld -O0 startup.o hellopsp.o pg.o -M -Ttext 8900000 -q -o out > hellopsp.map
outpatch
@echo you got outp as psp elf
Elf2pbp.exe outp Eboot
ps2dev - http://www.internalreality.com/PS2Dev_Setup.zip
toolchain was the
and used the ps2 toolchain. but its probably recomended that you use the new psp toolchain.
___________________________________________
Don't Get Hooked on Drugs Get Hooked on Phonics
Don't Get Hooked on Drugs Get Hooked on Phonics
yes, i have already posted it in your other post. if you need more details just ask.
if you have more then 1 file its simple
ee-gcc -march=r4000 -g -mgp32 -mlong32 -c web.c
ee-gcc -march=r4000 -g -mgp32 -mlong32 -c wifi.c
ee-gcc -march=r4000 -g -mgp32 -mlong32 -c pg.c
ee-gcc -march=r4000 -g -mgp32 -c -xassembler -O -o startup.o startup.s
ee-ld -O0 startup.o web.o wifi.o pg.o -M -Ttext 8900000 -q -o out > web.map
same thing, just modify file to what you need.
you do realize that a bat file is just a txt file. if you cant follow simple instructions i suggest, you go back and learn how to program before you decide to work on some psp projects.
http://forums.ps2dev.org/viewtopic.php?t=2294
if you have more then 1 file its simple
ee-gcc -march=r4000 -g -mgp32 -mlong32 -c web.c
ee-gcc -march=r4000 -g -mgp32 -mlong32 -c wifi.c
ee-gcc -march=r4000 -g -mgp32 -mlong32 -c pg.c
ee-gcc -march=r4000 -g -mgp32 -c -xassembler -O -o startup.o startup.s
ee-ld -O0 startup.o web.o wifi.o pg.o -M -Ttext 8900000 -q -o out > web.map
same thing, just modify file to what you need.
you do realize that a bat file is just a txt file. if you cant follow simple instructions i suggest, you go back and learn how to program before you decide to work on some psp projects.
http://forums.ps2dev.org/viewtopic.php?t=2294
There are 10 types of people in the world: Those who understand binary, and those who don't...
-
- Posts: 7
- Joined: Sat Jun 25, 2005 3:35 am