WANTED:GCC 4.0 Toolchain for windows (supporting C++, float)

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

Moderators: cheriff, TyRaNiD

Sharkus
Posts: 27
Joined: Sun Jun 19, 2005 6:49 am

Post by Sharkus »

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
MrHTFord
Posts: 35
Joined: Tue Feb 10, 2004 2:04 am
Location: England

Post by MrHTFord »

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.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

MrHTFord wrote:If enough people want it, I'll try to make it build and provide some binaries.
It's already been planned :).
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Post by crazyc »

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
agent_stewie
Posts: 7
Joined: Sat Jun 25, 2005 3:35 am

Post by agent_stewie »

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.
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???
___________________________________________
Don't Get Hooked on Drugs Get Hooked on Phonics
User avatar
Thanhda
Posts: 331
Joined: Sat Apr 09, 2005 2:08 am
Location: Canada
Contact:

Post by Thanhda »

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
There are 10 types of people in the world: Those who understand binary, and those who don't...
agent_stewie
Posts: 7
Joined: Sat Jun 25, 2005 3:35 am

Post by agent_stewie »

I have 4,313 c++ files. how the hell would i compile all of these with a shell prompt?
\
___________________________________________
Don't Get Hooked on Drugs Get Hooked on Phonics
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

agent_stewie wrote:I have 4,313 c++ files. how the hell would i compile all of these with a shell prompt?
\
psp-g++ -c *.cpp
Lego of my Ago!
Post Reply